NIHVIVO-1332 Display property title on untitled properties like phone, email if there is an add link to display. Changed a Java class name.

This commit is contained in:
rjy7 2011-01-11 20:54:15 +00:00
parent bf10a0fadd
commit 83d0056263

View file

@ -30,13 +30,9 @@
<#-- 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??>
<h3>email.name</h3> <@addLink >
</#if>-->
<#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 -->
<ul id="individual-email" role="list">
<#list email.statements as statement>
<li role="listitem">
@ -46,10 +42,13 @@
</#list>
</ul>
</#if>
</#if>
<#-- 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 -->
<ul id="individual-phone" role="list">
<#list phone.statements as statement>
<li role="listitem">
@ -59,6 +58,7 @@
</#list>
</ul>
</#if>
</#if>
<#-- Links -->
<nav role="navigation">
@ -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) -->
<h2>Positions</h2>
<h2>Positions <@p.addLink positions showEditingLinks /></h2>
<#if positions.statements?has_content> <#-- if there are any statements -->
<ul id ="individual-positions" role="list">
<@p.objectPropertyList positions.statements positions.template showEditingLinks />
</ul>
</#if>
</#if>
</header>
<#-- 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 class="individual-overview">
<@p.editingLinks statement showEditingLinks />
@ -111,11 +114,14 @@
<#-- 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) -->
<h2>Research Areas</h2>
<#--<h2>Research Areas <@p.addLink researchAreas showEditingLinks /></h2> -->
<@p.showLabelAndAddLink researchAreas showEditingLinks />
<#if researchAreas.statements?has_content> <#-- if there are any statements -->
<ul id="individual-areas" role="list">
<@p.simpleObjectPropertyList researchAreas showEditingLinks/>
</ul>
</#if>
</#if>
</section>
</section>