diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/DataPropertyTemplateModel.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/DataPropertyTemplateModel.java index 17ba27135..3f48c021d 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/DataPropertyTemplateModel.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/DataPropertyTemplateModel.java @@ -64,10 +64,4 @@ public class DataPropertyTemplateModel extends PropertyTemplateModel { return statements; } - // Allows the template to display a data value for a single property, when there is expected to be - // only a single value for the property. - public String getValue() { - return statements.get(0).getValue(); - } - } diff --git a/webapp/web/templates/freemarker/body/individual/individual.ftl b/webapp/web/templates/freemarker/body/individual/individual.ftl index 73a55f6ea..ca24b38a5 100644 --- a/webapp/web/templates/freemarker/body/individual/individual.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual.ftl @@ -2,7 +2,12 @@ <#-- Template for individual profile page --> +<#-- RY This is actually the person profile page, but we cannot move it to its proper location until selection of template by +annotaiton has been implemented. --> + <#import "lib-list.ftl" as l> +<#import "lib-properties.ftl" as p> +<#assign core = "http://vivoweb.org/ontology/core#"> <#assign editingClass> <#if editStatus.showEditLinks>editing<#else> @@ -17,11 +22,11 @@
<#-- Thumbnail --> - <#if individual.thumbUrl??> - ${individual.name} - <#elseif individual.person> - placeholder image - + <#if individual.thumbUrl??> + ${individual.name} + <#elseif individual.person> + placeholder image + - - phone icon555 567 7878 - + + <#-- Email --> + <#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!> + <#if email?has_content> + + + + <#-- Phone --> + <#assign phone = propertyGroups.getPropertyAndRemoveFromList("${core}phoneNumber")!> + <#if phone?has_content> + + + <#-- Links -->
@@ -51,34 +72,46 @@ <#if relatedSubject??>

${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}

← return to ${relatedSubject.name}

- <#else> - <#-- Label --> -

${individual.name} + <#else> +

+ <#-- Label --> + ${individual.name} - <#-- Moniker --> - <#if individual.moniker?has_content> + <#-- Moniker --> + <#if individual.moniker?has_content> ${individual.moniker} - +

-

Current Positions

- - - - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed est erat, tristique non bibendum eu, mollis non est. Cras vehicula velit quis elit porta vel molestie tellus blandit. Donec eget magna dolor. Phasellus faucibus mollis lorem at dapibus. Sed ultricies lobortis mauris in volutpat. Cras mattis neque ut sapien pellentesque fringilla. Mauris posuere dui quis massa mattis id mollis nibh accumsan. [+]

- -

Research Areas

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

+ + - + + + <#-- 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) --> + <#list overview.statements as statement> +

${statement.value}

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

Research Areas

+ + +
@@ -86,6 +119,7 @@
<#include "individual-sparklineVisualization.ftl"> + <#-- RY Move out of this template when it's converted to individual--foaf-person.ftl. Will we have an organization-specific individual template? --> <#if individual.organization >
@@ -93,12 +127,6 @@
<#--
VISMODE: ${individual.moniker}
--> - - <#--
-

2 publications within the last 10 years

-
- -

All VIVO publications & co-author network.

-->