From 96481d7b5ac88a90c9e57e540f508335f377787c Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Wed, 8 Jun 2011 21:25:18 +0000 Subject: [PATCH] Updates for menu editing using default menu individual (and model switching) for NIH-VIVO 2231 --- .../body/individual/individual-menu.ftl | 21 ++++++++++ .../freemarker/body/individual/individual.ftl | 3 +- .../individual/individual-menu-properties.ftl | 40 +++++++++++++++++++ .../individual/individual-menu-vitro.ftl | 21 ++++++++++ 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 productMods/templates/freemarker/body/individual/individual-menu.ftl create mode 100644 productMods/templates/freemarker/body/partials/individual/individual-menu-properties.ftl create mode 100644 productMods/templates/freemarker/body/partials/individual/individual-menu-vitro.ftl diff --git a/productMods/templates/freemarker/body/individual/individual-menu.ftl b/productMods/templates/freemarker/body/individual/individual-menu.ftl new file mode 100644 index 00000000..3a08c665 --- /dev/null +++ b/productMods/templates/freemarker/body/individual/individual-menu.ftl @@ -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"> + + + + +<#include "individual-menu-vitro.ftl"> + +${stylesheets.add('')} + +${headScripts.add('')} +${scripts.add('')} diff --git a/productMods/templates/freemarker/body/individual/individual.ftl b/productMods/templates/freemarker/body/individual/individual.ftl index 1ff67185..378da375 100644 --- a/productMods/templates/freemarker/body/individual/individual.ftl +++ b/productMods/templates/freemarker/body/individual/individual.ftl @@ -7,10 +7,11 @@ <#assign individualProductExtension> <#-- Include for any class specific template additions --> ${classSpecificExtension!} - + <#include "individual-overview.ftl"> + <#include "individual-vitro.ftl"> diff --git a/productMods/templates/freemarker/body/partials/individual/individual-menu-properties.ftl b/productMods/templates/freemarker/body/partials/individual/individual-menu-properties.ftl new file mode 100644 index 00000000..a6b9b6d2 --- /dev/null +++ b/productMods/templates/freemarker/body/partials/individual/individual-menu-properties.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)> +
+ + + <#-- Display the group heading --> + <#if groupName?has_content> +

${groupName?capitalize}

+ + + <#-- List the properties in the group --> + <#list group.properties as property> +
+ <#-- Property display name --> +

${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />

+ <#-- List the statements for each property --> +
    + + <#-- data property --> + <#if property.type == "data"> + <@p.dataPropertyList property editable /> + <#-- object property --> + <#else> + <@p.objectProperty property editable property.template /> + +
+
+ +
+ \ No newline at end of file diff --git a/productMods/templates/freemarker/body/partials/individual/individual-menu-vitro.ftl b/productMods/templates/freemarker/body/partials/individual/individual-menu-vitro.ftl new file mode 100644 index 00000000..18f1a82b --- /dev/null +++ b/productMods/templates/freemarker/body/partials/individual/individual-menu-vitro.ftl @@ -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('')} + +${headScripts.add('', + '', + '', + '', + '', + '', + '')} + +${scripts.add('')}