NIHVIVO-2411 Create a TemplateUtils class to slightly simplify the browse templates.
This commit is contained in:
parent
af3ca17ef1
commit
b688d6f1c6
2 changed files with 54 additions and 5 deletions
|
@ -17,11 +17,7 @@
|
|||
</h1>
|
||||
</#if>
|
||||
|
||||
<#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
Add a link
Reference in a new issue