NIHVIVO-2744 Display of mostSpecificType(s) on individual profile (in place of former moniker).

This commit is contained in:
ryounes 2011-06-23 15:00:23 +00:00
parent d74f5f3072
commit 5998f8b095
14 changed files with 95 additions and 34 deletions

View file

@ -31,10 +31,8 @@
<#-- Label -->
<@p.label individual editable />
<#-- Moniker -->
<#if individual.moniker?has_content>
<span class="preferred-title">${individual.moniker}</span>
</#if>
<#-- Most-specific types -->
<@p.mostSpecificTypes individual />
</h1>
</#if>
</header>

View file

@ -240,3 +240,11 @@ name will be used as the label. -->
<@editingLinks "label" label editable />
</#macro>
<#-- Most specific types -->
<#macro mostSpecificTypes individual>
<#local types = individual.mostSpecificTypes />
<#list types as type>
<span class="most-specific-type">${type}</span>
</#list>
</#macro>