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:
parent
bf10a0fadd
commit
83d0056263
1 changed files with 39 additions and 33 deletions
|
@ -29,35 +29,35 @@
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<#-- Email -->
|
<#-- Email -->
|
||||||
<#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!>
|
<#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!>
|
||||||
<#if email?has_content>
|
<#if email?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||||
<#-- Show property label if we can add one
|
<@p.showLabelAndAddLink email showEditingLinks />
|
||||||
<#assign addUrl = email.addUrl>
|
<#if email.statements?has_content> <#-- if there are any statements -->
|
||||||
<#if addUrl??>
|
<ul id="individual-email" role="list">
|
||||||
<h3>email.name</h3> <@addLink >
|
<#list email.statements as statement>
|
||||||
</#if>-->
|
<li role="listitem">
|
||||||
|
<@p.editingLinks statement showEditingLinks />
|
||||||
<ul id="individual-email" role="list">
|
<a class="email" href="#"><span class ="picto-font picto-email">M</span> ${statement.value}</a>
|
||||||
<#list email.statements as statement>
|
</li>
|
||||||
<li role="listitem">
|
</#list>
|
||||||
<@p.editingLinks statement showEditingLinks />
|
</ul>
|
||||||
<a class="email" href="#"><span class ="picto-font picto-email">M</span> ${statement.value}</a>
|
</#if>
|
||||||
</li>
|
|
||||||
</#list>
|
|
||||||
</ul>
|
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#-- Phone -->
|
<#-- Phone -->
|
||||||
<#assign phone = propertyGroups.getPropertyAndRemoveFromList("${core}phoneNumber")!>
|
<#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) -->
|
||||||
<ul id="individual-phone" role="list">
|
<@p.showLabelAndAddLink phone showEditingLinks />
|
||||||
<#list phone.statements as statement>
|
<#if phone.statements?has_content> <#-- if there are any statements -->
|
||||||
<li role="listitem">
|
<ul id="individual-phone" role="list">
|
||||||
<@p.editingLinks statement showEditingLinks />
|
<#list phone.statements as statement>
|
||||||
<a class="tel" href="#"><img class ="icon-phone" src="${urls.images}/individual/phone-icon.gif" alt="phone icon" />${statement.value}</a>
|
<li role="listitem">
|
||||||
</li>
|
<@p.editingLinks statement showEditingLinks />
|
||||||
</#list>
|
<a class="tel" href="#"><img class ="icon-phone" src="${urls.images}/individual/phone-icon.gif" alt="phone icon" />${statement.value}</a>
|
||||||
</ul>
|
</li>
|
||||||
|
</#list>
|
||||||
|
</ul>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#-- Links -->
|
<#-- Links -->
|
||||||
|
@ -90,16 +90,19 @@
|
||||||
<#-- Positions -->
|
<#-- Positions -->
|
||||||
<#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!>
|
<#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!>
|
||||||
<#if positions?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
<#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>
|
||||||
<ul id ="individual-positions" role="list">
|
<#if positions.statements?has_content> <#-- if there are any statements -->
|
||||||
<@p.objectPropertyList positions.statements positions.template showEditingLinks />
|
<ul id ="individual-positions" role="list">
|
||||||
</ul>
|
<@p.objectPropertyList positions.statements positions.template showEditingLinks />
|
||||||
|
</ul>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<#-- Overview -->
|
<#-- Overview -->
|
||||||
<#assign overview = propertyGroups.getPropertyAndRemoveFromList("${core}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) -->
|
<#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>
|
<#list overview.statements as statement>
|
||||||
<p class="individual-overview">
|
<p class="individual-overview">
|
||||||
<@p.editingLinks statement showEditingLinks />
|
<@p.editingLinks statement showEditingLinks />
|
||||||
|
@ -111,10 +114,13 @@
|
||||||
<#-- Research Areas -->
|
<#-- Research Areas -->
|
||||||
<#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!>
|
<#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!>
|
||||||
<#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
<#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> -->
|
||||||
<ul id="individual-areas" role="list">
|
<@p.showLabelAndAddLink researchAreas showEditingLinks />
|
||||||
<@p.simpleObjectPropertyList researchAreas showEditingLinks/>
|
<#if researchAreas.statements?has_content> <#-- if there are any statements -->
|
||||||
</ul>
|
<ul id="individual-areas" role="list">
|
||||||
|
<@p.simpleObjectPropertyList researchAreas showEditingLinks/>
|
||||||
|
</ul>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Reference in a new issue