From b7417f514ddabf8b11d8b82c82b402420a61c3dc Mon Sep 17 00:00:00 2001 From: j2blake Date: Mon, 9 Jul 2012 15:02:15 +0000 Subject: [PATCH] NIHVIVO-3881 don't show firstName and lastName on the individual Person page, unless they are editable. --- .../freemarker/body/individual/individual--foaf-person.ftl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 7021a27a..c567c688 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -126,6 +126,12 @@ <#include "individual-propertyGroupMenu.ftl"> <#-- Ontology properties --> +<#if !editable> + <#-- We don't want to see the first name and last name unless we might edit them. --> + <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/firstName")!> + <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!> + + <#include "individual-properties.ftl"> <#assign rdfUrl = individual.rdfUrl>