NIHVIVO-2449 Display mostSpecificTypes in search results in place of moniker. Create new template model class for individual in search results, since the display increasingly diverges from the individualList display.
This commit is contained in:
parent
1d1edb17b8
commit
1c52d91b08
9 changed files with 95 additions and 41 deletions
|
@ -2,9 +2,8 @@
|
|||
|
||||
<#-- Default individual search view -->
|
||||
|
||||
<a href="${individual.profileUrl}">${individual.name}</a>
|
||||
<#-- <#if individual.moniker?has_content> | ${individual.moniker}</#if> -->
|
||||
<#import "lib-properties.ftl" as p>
|
||||
|
||||
<#if individual.description?has_content>
|
||||
<div class="searchFragment">${individual.description}</div>
|
||||
</#if>
|
||||
<a href="${individual.profileUrl}">${individual.name}</a>
|
||||
|
||||
<@p.mostSpecificTypes individual />
|
|
@ -249,8 +249,7 @@ name will be used as the label. -->
|
|||
|
||||
<#-- Most specific types -->
|
||||
<#macro mostSpecificTypes individual>
|
||||
<#local types = individual.mostSpecificTypes />
|
||||
<#list types as type>
|
||||
<#list individual.mostSpecificTypes as type>
|
||||
<span class="most-specific-type">${type}</span>
|
||||
</#list>
|
||||
</#macro>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue