From 55c2f8f21362936666814d8e19b45aae6e135143 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Thu, 23 Jun 2011 14:41:42 +0000 Subject: [PATCH] NIHVIVO-2584: Added core:primaryEmail to individual foaf person template --- .../individual/individual-contactInfo.ftl | 20 +++++++++++++++++-- themes/wilma/css/wilma.css | 7 ++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl index 892538ed..d50e8af8 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl @@ -2,12 +2,28 @@ <#-- Contact info on individual profile page --> -<#-- Email --> +<#-- Primary Email --> +<#assign primaryEmail = propertyGroups.getPropertyAndRemoveFromList("${core}primaryEmail")!> +<#if primaryEmail?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.addLinkWithLabel primaryEmail editable /> + <#if primaryEmail.statements?has_content> <#-- if there are any statements --> + + + + +<#-- Additional Emails --> <#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.addLinkWithLabel email editable /> <#if email.statements?has_content> <#-- if there are any statements --> -