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 --> + +
+ +
+ \ 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('')}