From 83d0056263bf12cdd421d28f1a8b798ac8caf1f6 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Tue, 11 Jan 2011 20:54:15 +0000 Subject: [PATCH] NIHVIVO-1332 Display property title on untitled properties like phone, email if there is an add link to display. Changed a Java class name. --- .../individual/individual--foaf-person.ftl | 72 ++++++++++--------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 2686b639..69e8fecc 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -29,35 +29,35 @@ <#-- Email --> - <#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!> - <#if email?has_content> - <#-- Show property label if we can add one - <#assign addUrl = email.addUrl> - <#if addUrl??> -

email.name

<@addLink > - --> - - + <#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!> + <#if email?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.showLabelAndAddLink email showEditingLinks /> + <#if email.statements?has_content> <#-- if there are any statements --> + + <#-- Phone --> <#assign phone = propertyGroups.getPropertyAndRemoveFromList("${core}phoneNumber")!> - <#if phone?has_content> - + <#if phone?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.showLabelAndAddLink phone showEditingLinks /> + <#if phone.statements?has_content> <#-- if there are any statements --> + + <#-- Links --> @@ -90,16 +90,19 @@ <#-- Positions --> <#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!> <#if positions?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> -

Positions

- +

Positions <@p.addLink positions showEditingLinks />

+ <#if positions.statements?has_content> <#-- if there are any statements --> + + <#-- Overview --> <#assign overview = propertyGroups.getPropertyAndRemoveFromList("${core}overview")!> <#if overview?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.showLabelAndAddLink overview showEditingLinks /> <#list overview.statements as statement>

<@p.editingLinks statement showEditingLinks /> @@ -111,10 +114,13 @@ <#-- Research Areas --> <#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!> <#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> -

Research Areas

- + <#--

Research Areas <@p.addLink researchAreas showEditingLinks />

--> + <@p.showLabelAndAddLink researchAreas showEditingLinks /> + <#if researchAreas.statements?has_content> <#-- if there are any statements --> + +