NIHVIVO-2411 Create a TemplateUtils class to slightly simplify the browse templates.

This commit is contained in:
j2blake 2012-05-01 20:40:41 +00:00
parent 02bc652996
commit bcd7673f4c

View file

@ -20,11 +20,7 @@
<#if (extra[0].pt)?? >
<span class="title">${extra[0].pt}</span>
<#else>
<#assign typesString>
[<#list individual.mostSpecificTypes as type><#if type != vclass>,"${type}"</#if></#list>]
</#assign>
<#assign cleanTypes = typesString?replace("[,", "[")?eval >
<#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) >