From 53ad28c7704f89f35b0fbf419d469193633f1b03 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 21 Jan 2011 17:39:03 +0000 Subject: [PATCH] Changes to individual templates and associated queries --- .../individual/individual--foaf-person.ftl | 26 +++++++------------ .../freemarker/body/individual/individual.ftl | 1 + 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 25185cd7..c0cd4ac0 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -7,17 +7,13 @@
- <#-- Image --> - <@p.imageLinks individual propertyGroups editable "${urls.images}/placeholders/person.thumbnail.jpg" /> - + <@p.imageLinks individual propertyGroups namespaces editable "${urls.images}/placeholders/person.thumbnail.jpg" /> +
- +
<#if individual.showAdminPanel> <#include "individual-adminPanel.ftl"> @@ -73,9 +69,7 @@ <#else>

<#-- Label --> - <#assign label = individual.nameStatement> - ${label.value} - <#-- <@p.editingLinks label label editable /> --> + <@p.label individual editable /> <#-- Moniker --> <#if individual.moniker?has_content> @@ -87,7 +81,7 @@ <#-- 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 <@p.addLink positions editable />

+

${positions.name?capitalize} <@p.addLink positions editable />

<#if positions.statements?has_content> <#-- if there are any statements -->
    <@p.objectPropertyList positions positions.statements positions.template editable /> @@ -102,9 +96,7 @@ <#-- 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 <@p.addLink researchAreas editable />

    - - <#--<@p.addLinkWithLabel researchAreas editable />--> +

    ${researchAreas.name?capitalize} <@p.addLink researchAreas editable />

    <#if researchAreas.statements?has_content> <#-- if there are any statements -->
      <@p.simpleObjectPropertyList researchAreas editable/> diff --git a/productMods/templates/freemarker/body/individual/individual.ftl b/productMods/templates/freemarker/body/individual/individual.ftl index 9ac67718..46dab407 100644 --- a/productMods/templates/freemarker/body/individual/individual.ftl +++ b/productMods/templates/freemarker/body/individual/individual.ftl @@ -1,6 +1,7 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- Default VIVO individual profile page template (extends individual.ftl in vitro) --> + <#include "individual-setup.ftl"> <#assign individualProductExtension>