NIHVIVO-1333 Continued work on display of object properties on individual profile, including getting sparql query and template name from a config file and using it to generate and display statements.

This commit is contained in:
rjy7 2010-12-07 21:30:13 +00:00
parent 1bad0658cb
commit e4d301cf98
18 changed files with 243 additions and 59 deletions

View file

@ -36,13 +36,16 @@
<#-- List the statements for each property -->
<#if property.type == "data"> <#-- data property -->
<#list property.statements as statement>
<div class="dataprop-value">
<div class="data-prop-stmt-value">
${statement.value}
</div> <!-- end dataprop-value -->
</div> <!-- end data-prop-stmt-value -->
</#list>
<#else> <#-- object property -->
<p>Collated? ${property.collatedBySubclass?string("yes", "no")}</p>
<#if ! property.collatedBySubclass> <#-- temporary, till we handle collated props -->
<#include "${property.template}">
</#if>
</#if>
</div> <!-- end property -->
</#list>

View file

@ -0,0 +1,10 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Default object property list template -->
<#list property.statements as statement>
<div class="obj-prop-stmt-obj">
<#-- ${statement.object.name} -->
statement ${statement_index +1}
</div> <!-- end obj-prop-stmt-obj -->
</#list>