VIVO-904: the display limit annotation on data and faux properties now determines when the more... link is employed for one of these properties. Regular object properties will have a default limit of 5. Also, the add statement link is no longer suppressed when the display limit is reached.

This commit is contained in:
Tim Worrall 2015-02-09 15:54:11 -05:00
parent ed9b82258d
commit b21cd24489
4 changed files with 35 additions and 6 deletions

View file

@ -42,7 +42,11 @@
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> </h3>
</#if>
<#-- List the statements for each property -->
<ul class="property-list" role="list" id="${property.localName}-${rangeClass}-List">
<#assign limit = property.getDisplayLimit()!5 />
<#if limit == -1 || limit == 0 >
<#assign limit = 5 />
</#if>
<ul class="property-list" role="list" id="${property.localName}-${rangeClass}-List" displayLimit="${limit}">
<#-- data property -->
<#if property.type == "data">
<@p.dataPropertyList property editable />