Updates for menu editing using default menu individual (and model switching) for NIH-VIVO 2231
This commit is contained in:
parent
7b31cef840
commit
96481d7b5a
4 changed files with 84 additions and 1 deletions
|
@ -0,0 +1,21 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
|
<#-- Default VIVO individual profile page template (extends individual.ftl in vitro) -->
|
||||||
|
|
||||||
|
<#include "individual-setup.ftl">
|
||||||
|
|
||||||
|
<#assign individualProductExtension>
|
||||||
|
<#-- Include for any class specific template additions -->
|
||||||
|
${classSpecificExtension!}
|
||||||
|
|
||||||
|
<#include "individual-overview.ftl">
|
||||||
|
</section> <!-- #individual-info -->
|
||||||
|
</section> <!-- #individual-intro -->
|
||||||
|
</#assign>
|
||||||
|
|
||||||
|
<#include "individual-menu-vitro.ftl">
|
||||||
|
|
||||||
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual-vivo.css" />')}
|
||||||
|
|
||||||
|
${headScripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.truncator.js"></script>')}
|
||||||
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/individualUtils.js"></script>')}
|
|
@ -7,10 +7,11 @@
|
||||||
<#assign individualProductExtension>
|
<#assign individualProductExtension>
|
||||||
<#-- Include for any class specific template additions -->
|
<#-- Include for any class specific template additions -->
|
||||||
${classSpecificExtension!}
|
${classSpecificExtension!}
|
||||||
|
<!--PREINDIVIDUAL OVERVIEW.FTL-->
|
||||||
<#include "individual-overview.ftl">
|
<#include "individual-overview.ftl">
|
||||||
</section> <!-- #individual-info -->
|
</section> <!-- #individual-info -->
|
||||||
</section> <!-- #individual-intro -->
|
</section> <!-- #individual-intro -->
|
||||||
|
<!--postindiviudal overiew tfl-->
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
<#include "individual-vitro.ftl">
|
<#include "individual-vitro.ftl">
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
|
<#-- Template for property listing on individual profile page -->
|
||||||
|
|
||||||
|
<#import "lib-properties.ftl" as p>
|
||||||
|
<#list propertyGroups.all as group>
|
||||||
|
|
||||||
|
<#assign groupName = group.getName(nameForOtherGroup)>
|
||||||
|
<section class="property-group" role="region">
|
||||||
|
<nav class="scroll-up" role="navigation">
|
||||||
|
<a href="#branding">
|
||||||
|
<img src="${urls.images}/individual/scroll-up.gif" alt="scroll to property group menus" />
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<#-- Display the group heading -->
|
||||||
|
<#if groupName?has_content>
|
||||||
|
<h2 id="${groupName}">${groupName?capitalize}</h2>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<#-- List the properties in the group -->
|
||||||
|
<#list group.properties as property>
|
||||||
|
<article class="property" role="article">
|
||||||
|
<#-- Property display name -->
|
||||||
|
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /></h3>
|
||||||
|
<#-- List the statements for each property -->
|
||||||
|
<ul class="property-list" role="list">
|
||||||
|
|
||||||
|
<#-- data property -->
|
||||||
|
<#if property.type == "data">
|
||||||
|
<@p.dataPropertyList property editable />
|
||||||
|
<#-- object property -->
|
||||||
|
<#else>
|
||||||
|
<@p.objectProperty property editable property.template />
|
||||||
|
</#if>
|
||||||
|
</ul>
|
||||||
|
</article> <!-- end property -->
|
||||||
|
</#list>
|
||||||
|
</section> <!-- end property-group -->
|
||||||
|
</#list>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
|
<#-- Default individual profile page template -->
|
||||||
|
<#--@dumpAll /-->
|
||||||
|
|
||||||
|
<#assign nameForOtherGroup = "other"> <#-- used by both individual-propertyGroupMenu.ftl and individual-properties.ftl -->
|
||||||
|
|
||||||
|
<#-- Menu Ontology properties -->
|
||||||
|
<#include "individual-menu-properties.ftl">
|
||||||
|
|
||||||
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual.css" />')}
|
||||||
|
|
||||||
|
${headScripts.add('<script type="text/javascript" src="${urls.base}/js/jquery_plugins/getURLParam.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/colorAnimations.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.form.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/controls.js"></script>',
|
||||||
|
'<script type="text/javascript" src="${urls.base}/js/toggle.js"></script>')}
|
||||||
|
|
||||||
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
|
Loading…
Add table
Add a link
Reference in a new issue