NIHVIVO-1333 Handle property group for unassigned properties, and case where no property groups are defined
This commit is contained in:
parent
61bc9486fb
commit
f6ff54120d
15 changed files with 155 additions and 109 deletions
|
@ -2,4 +2,28 @@
|
|||
|
||||
<#-- Template for property listing on individual profile page -->
|
||||
|
||||
<#assign properties = individual.propertyList>
|
||||
<#assign propertyGroups = individual.propertyList>
|
||||
|
||||
<#list propertyGroups as group>
|
||||
|
||||
<#-- Display the group heading -->
|
||||
<#-- If there are no groups, a dummy group has been created with a null name. -->
|
||||
<#if ! group.name??>
|
||||
<#-- Here you might just do nothing and proceed to list the properties as in the grouped case,
|
||||
or you might choose different markup for the groupless case. -->
|
||||
<#-- This is the group for properties not assigned to any group. It has an empty name. -->
|
||||
<#elseif group.name?length == 0>
|
||||
<h3>other</h3>
|
||||
<#else>
|
||||
<h3>${group.name}</h3>
|
||||
</#if>
|
||||
|
||||
<#-- Now list the properties in the group -->
|
||||
<p>Number of properties in group: ${group.propertyList?size}</p> <#-- testing -->
|
||||
<#--
|
||||
<#list group.properties as property>
|
||||
|
||||
</#list>
|
||||
-->
|
||||
|
||||
</#list>
|
|
@ -72,7 +72,8 @@
|
|||
</div>
|
||||
</#if>
|
||||
|
||||
<#-- <#include "individual-properties.ftl"> -->
|
||||
<#-- Ontology properties -->
|
||||
<#include "individual-properties.ftl">
|
||||
|
||||
<#-- Keywords -->
|
||||
<#if individual.keywords?has_content>
|
||||
|
@ -187,8 +188,7 @@
|
|||
${stylesheets.addFromTheme("/css/entity.css")}
|
||||
|
||||
<#-- RY Figure out which of these scripts really need to go into the head, and which are needed at all (e.g., tinyMCE??) -->
|
||||
${headScripts.add("/js/jquery.js",
|
||||
"/js/jquery_plugins/getUrlParam.js",
|
||||
${headScripts.add("/js/jquery_plugins/getUrlParam.js",
|
||||
"/js/jquery_plugins/colorAnimations.js",
|
||||
"/js/propertyGroupSwitcher.js",
|
||||
"/js/jquery_plugins/jquery.form.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue