vivo/utilities/acceptance-tests/suites/ShortViews/view-browse-faculty.ftl

41 lines
1.2 KiB
Text
Raw Normal View History

<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#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>
<#if (extra[0].pt)?? >
<span class="title">${extra[0].pt}</span>
<#else>
<#assign cleanTypes = 'edu.cornell.mannlib.vitro.webapp.web.TemplateUtils$DropFromSequence'?new()(individual.mostSpecificTypes, vclass) />
<#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>
</#if>
<#if (details[0].deptName)?? >
<span class="title"><em>Member of</em> ${details[0].deptName}</span>
</#if>
</li>