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)?? >
|
||||
<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) >
|
||||
|
|
Loading…
Add table
Reference in a new issue