NIHVIVO-2411 Create a TemplateUtils class to slightly simplify the browse templates.
This commit is contained in:
parent
02bc652996
commit
bcd7673f4c
1 changed files with 1 additions and 5 deletions
|
@ -20,11 +20,7 @@
|
||||||
<#if (extra[0].pt)?? >
|
<#if (extra[0].pt)?? >
|
||||||
<span class="title">${extra[0].pt}</span>
|
<span class="title">${extra[0].pt}</span>
|
||||||
<#else>
|
<#else>
|
||||||
<#assign typesString>
|
<#assign cleanTypes = 'edu.cornell.mannlib.vitro.webapp.web.TemplateUtils$DropFromSequence'?new()(individual.mostSpecificTypes, vclass) />
|
||||||
[<#list individual.mostSpecificTypes as type><#if type != vclass>,"${type}"</#if></#list>]
|
|
||||||
</#assign>
|
|
||||||
<#assign cleanTypes = typesString?replace("[,", "[")?eval >
|
|
||||||
|
|
||||||
<#if cleanTypes?size == 1>
|
<#if cleanTypes?size == 1>
|
||||||
<span class="title">${cleanTypes[0]}</span>
|
<span class="title">${cleanTypes[0]}</span>
|
||||||
<#elseif (cleanTypes?size > 1) >
|
<#elseif (cleanTypes?size > 1) >
|
||||||
|
|
Loading…
Add table
Reference in a new issue