NIHVIVO-1341 Preprocessing of object property data for list views
This commit is contained in:
parent
d2d91dfe77
commit
7d23fcab5a
10 changed files with 131 additions and 89 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
<link-target>object</link-target>
|
||||
|
||||
<preprocessor></preprocessor>
|
||||
<preprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.DefaultObjectPropertyDataPreprocessor</preprocessor>
|
||||
|
||||
<template>shortView-default.ftl</template>
|
||||
</view-config>
|
|
@ -35,7 +35,7 @@
|
|||
<#-- data property -->
|
||||
<#if property.type == "data">
|
||||
<#list property.statements as statement>
|
||||
<p class="data-property-statement">${statement.value}</p>
|
||||
<li role="listitem">${statement.value}</li>
|
||||
</#list>
|
||||
|
||||
<#-- object property -->
|
||||
|
@ -45,8 +45,7 @@
|
|||
<#include "objectPropertyList-statements.ftl">
|
||||
</#if>
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
</article> <!-- end property -->
|
||||
</#list>
|
||||
</section>
|
||||
</section> <!-- end property-group -->
|
||||
</#list>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
<#-- Default object property statement short view template -->
|
||||
|
||||
<a href="${statement.objectUrl}">${statement.name!"object name here"}</a> ${statement.moniker!"moniker here"}
|
||||
<a href="${statement.objectUrl}">${statement.name!}</a> ${statement.moniker!}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue