Moved property group menu to a separate template. Some code cleanup.
This commit is contained in:
parent
9118452d4f
commit
758c8761ea
4 changed files with 22 additions and 22 deletions
|
@ -18,7 +18,6 @@ public abstract class BaseObjectPropertyDataPreprocessor implements
|
|||
this.wdf = wdf;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void process(List<Map<String, String>> data) {
|
||||
for (Map<String, String> map : data) {
|
||||
|
|
|
@ -25,12 +25,6 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
|||
|
||||
private static final Log log = LogFactory.getLog(ObjectPropertyTemplateModel.class);
|
||||
private static final String TYPE = "object";
|
||||
/* NB The default preprocessor is not the same as the preprocessor for the default view. The latter
|
||||
* actually defines its own preprocessor, whereas the default preprocessor is used for custom views
|
||||
* that don't define a preprocessor.
|
||||
*/
|
||||
private static final String DEFAULT_PREPROCESSOR =
|
||||
"edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.BaseObjectPropertyDataPreprocessor";
|
||||
|
||||
private PropertyListConfig config;
|
||||
|
||||
|
|
|
@ -114,19 +114,9 @@
|
|||
</section>
|
||||
</section>
|
||||
|
||||
<#-- Property group menu -->
|
||||
<#assign nameForOtherGroup = "other">
|
||||
<nav id="property-group-menus" role="navigation">
|
||||
<ul role="list">
|
||||
<#list propertyGroups as group>
|
||||
<#assign groupname = group.name(nameForOtherGroup)>
|
||||
<#if groupname?has_content>
|
||||
<#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom
|
||||
function to capitalize all except function words. -->
|
||||
<li role="listitem"><a href="#${groupname}">${groupname?capitalize}</a></li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ul>
|
||||
</nav>
|
||||
<#include "individual-propertyGroupMenu.ftl">
|
||||
|
||||
<#-- Ontology properties -->
|
||||
<#include "individual-properties.ftl">
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for property group menu on individual profile page -->
|
||||
|
||||
<#assign nameForOtherGroup = nameForOtherGroup!"other">
|
||||
<nav id="property-group-menus" role="navigation">
|
||||
<ul role="list">
|
||||
<#list propertyGroups as group>
|
||||
<#assign groupname = group.name(nameForOtherGroup)>
|
||||
<#if groupname?has_content>
|
||||
<#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom
|
||||
function to capitalize all except function words. -->
|
||||
<li role="listitem"><a href="#${groupname}">${groupname?capitalize}</a></li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ul>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue