NIHVIVO-2411 Modify ClassGroupPageData.java and browseByVClass.js to use the new BROWSE short view. This means that the VIVO-specific browseByVClassPeople.js and menupage--classgroup-people.ftl can be replaced by a VIVO-specific short view.

This commit is contained in:
j2blake 2012-05-01 16:29:36 +00:00
parent 47b3565e58
commit af3ca17ef1
4 changed files with 152 additions and 78 deletions

View file

@ -0,0 +1,37 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Default individual browse view -->
<#import "lib-properties.ftl" as p>
<li class="individual" role="listitem" role="navigation">
<#if (individual.thumbUrl)??>
<img src="${individual.thumbUrl}" width="90" alt="${individual.name}" />
<h1 class="thumb">
<a href="${individual.profileUrl}" title="View the profile page for ${individual.name}}">${individual.name}</a>
</h1>
<#else>
<h1>
<a href="${individual.profileUrl}" title="View the profile page for ${individual.name}}">${individual.name}</a>
</h1>
</#if>
<#assign typesString>
[<#list individual.mostSpecificTypes as type><#if type != vclass>,"${type}"</#if></#list>]
</#assign>
<#assign cleanTypes = typesString?replace("[,", "[")?eval >
<#if cleanTypes?size == 1>
<span class="title">${cleanTypes[0]}</span>
<#elseif (cleanTypes?size > 1) >
<span class="title">
<ul>
<#list cleanTypes as type>
<li>${type}</li>
</#list>
</ul>
</span>
</#if>
</li>