NIHVIVO-1709 Now using preferred title (if populated) next to person's name at the top of the page in lieu of the moniker
This commit is contained in:
parent
91c22de27e
commit
d1776d766c
1 changed files with 13 additions and 4 deletions
|
@ -95,15 +95,24 @@
|
||||||
<header>
|
<header>
|
||||||
<#if relatedSubject??>
|
<#if relatedSubject??>
|
||||||
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
||||||
<p><a href="${relatedSubject.url}">← return to ${relatedSubject.name}</a></p>
|
<p><a href="${relatedSubject.url}">← return to ${relatedSubject.name}</a></p>
|
||||||
<#else>
|
<#else>
|
||||||
<h1 class="fn foaf-person">
|
<h1 class="fn foaf-person">
|
||||||
<#-- Label -->
|
<#-- Label -->
|
||||||
<@p.label individual editable />
|
<@p.label individual editable />
|
||||||
|
|
||||||
<#-- Moniker -->
|
<#-- Moniker / Preferred Title -->
|
||||||
<#if individual.moniker?has_content>
|
<#-- Use Preferred Title over Moniker if it is populated -->
|
||||||
<span class="preferred-title">${individual.moniker}</span>
|
<#assign hasPreferredTitle = p.hasStatements(propertyGroups, "${core}preferredTitle") />
|
||||||
|
<#if hasPreferredTitle || individual.moniker?has_content>
|
||||||
|
<span class="preferred-title">
|
||||||
|
<#if hasPreferredTitle>
|
||||||
|
<#assign preferredTitle = propertyGroups.getProperty("${core}preferredTitle")! />
|
||||||
|
${preferredTitle.statements[0].value}
|
||||||
|
<#else>
|
||||||
|
${individual.moniker}
|
||||||
|
</#if>
|
||||||
|
</span>
|
||||||
</#if>
|
</#if>
|
||||||
</h1>
|
</h1>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
Loading…
Add table
Reference in a new issue