NIHVIVO-1333 Added some sample markup to the ontology property display template.
This commit is contained in:
parent
55eb8bece4
commit
96b10bed71
1 changed files with 40 additions and 24 deletions
|
@ -5,31 +5,47 @@
|
||||||
<#assign propertyGroups = individual.propertyList>
|
<#assign propertyGroups = individual.propertyList>
|
||||||
|
|
||||||
<#list propertyGroups as group>
|
<#list propertyGroups as group>
|
||||||
|
|
||||||
<#-- Display the group heading -->
|
<#-- Get the group name -->
|
||||||
<#-- If there are no groups, a dummy group has been created with a null name. -->
|
<#if group.name??>
|
||||||
<#if ! group.name??>
|
<#if group.name?has_content>
|
||||||
<#-- Here you might just do nothing and proceed to list the properties as in the grouped case,
|
<#assign groupName = group.name>
|
||||||
or you might choose different markup for the groupless case. -->
|
<#else>
|
||||||
<#-- This is the group for properties not assigned to any group. It has an empty name. -->
|
<#-- This is the group for properties not assigned to any group. It has an empty name. -->
|
||||||
<#elseif group.name?length == 0>
|
<#assign groupName = "other">
|
||||||
<h3>other</h3>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<h3>${group.name}</h3>
|
<#-- If there are no groups, a dummy group has been created with a null name. -->
|
||||||
</#if>
|
<#assign groupName = "">
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#-- Now list the properties in the group -->
|
<div class="property-group" id="group-${groupName}">
|
||||||
<#list group.properties as property>
|
|
||||||
<h4>${property.name}</h4>
|
<#-- Display the group heading -->
|
||||||
|
<#if groupName?has_content>
|
||||||
|
<h3>${groupName}</h3>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#-- List the statements for each property -->
|
<#-- Now list the properties in the group -->
|
||||||
<#list property.statements as statement>
|
<div class="properties">
|
||||||
<#if statement.value??> <#-- data property -->
|
<#list group.properties as property>
|
||||||
<div class="dataprop-value">
|
<div class="property" id="prop-${property.name}">
|
||||||
${statement.value}
|
<#-- Property display name -->
|
||||||
</div>
|
<h4>${property.name}</h4>
|
||||||
</#if>
|
|
||||||
</#list>
|
<#-- List the statements for each property -->
|
||||||
</#list>
|
<#if property.type == "data"> <#-- data property -->
|
||||||
|
<#list property.statements as statement>
|
||||||
|
<div class="dataprop-value">
|
||||||
|
${statement.value}
|
||||||
|
</div> <!-- end dataprop-value -->
|
||||||
|
</#list>
|
||||||
|
|
||||||
|
<#else> <#-- object property -->
|
||||||
|
|
||||||
|
</#if>
|
||||||
|
</div> <!-- end property -->
|
||||||
|
</#list>
|
||||||
|
</div> <!-- end properties -->
|
||||||
|
</div> <!-- end property-group -->
|
||||||
</#list>
|
</#list>
|
Loading…
Add table
Reference in a new issue