From e65f567fce387ebf4c10b4b61c96874b5709dfab Mon Sep 17 00:00:00 2001 From: rjy7 Date: Tue, 4 Jan 2011 15:02:11 +0000 Subject: [PATCH] NIHVIVO-1491 Display person's positions at top of page --- .../freemarker/body/individual/individual.ftl | 17 ++++++++--------- .../body/partials/individual/lib-properties.ftl | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/webapp/web/templates/freemarker/body/individual/individual.ftl b/webapp/web/templates/freemarker/body/individual/individual.ftl index ca24b38a5..b8490c308 100644 --- a/webapp/web/templates/freemarker/body/individual/individual.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual.ftl @@ -84,20 +84,19 @@ annotaiton has been implemented. --> - <#-- Current positions --> - <#assign positions = propertyGroups.getProperty("${core}personInPosition")!> - <#if positions?has_content> <#-- true when the property is in the list, even if there are no statements (when editing) --> -

Current Positions

+ <#-- 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

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

${statement.value}

@@ -105,10 +104,10 @@ annotaiton has been implemented. --> <#-- Research Areas --> <#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!> - <#if researchAreas?has_content> <#-- true when the property is in the list, even if there are no statements (when editing) --> + <#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->

Research Areas

diff --git a/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl b/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl index 3fe59fedd..82d99ce72 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl @@ -22,7 +22,7 @@ -<#macro objectProperty property> +<#macro simpleObjectPropertyList property> <@objectPropertyList property.statements "propStatement-simple.ftl" />