diff --git a/webapp/web/css/individual/individual.css b/webapp/web/css/individual/individual.css index 8f5e4764f..4e22cd6ad 100644 --- a/webapp/web/css/individual/individual.css +++ b/webapp/web/css/individual/individual.css @@ -32,7 +32,7 @@ /* <------ INDIVIDUAL INTRO FOR ANY CLASS*/ #individual-intro { margin-top: 15px; - margin-bottom: 20px; + margin-bottom: 0; position: relative; overflow: hidden; } @@ -63,7 +63,7 @@ img#uriIcon { width: 166px; float: left; padding-right: 1.5em; - margin-bottom: 20px; + margin-bottom: 0; } #share-contact h3 { margin-top: 15px; diff --git a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl index 894c9cea4..5811a727f 100644 --- a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl @@ -49,10 +49,18 @@ <#assign nameForOtherGroup = "other"> <#-- used by both individual-propertyGroupMenu.ftl and individual-properties.ftl --> <#-- Property group menu --> -<#include "individual-propertyGroupMenu.ftl"> +<#-- With release 1.6 the property group is no longer used. The include statement + remains in the event a particular VIVO site still wants to use it with the new + collapsible groups. + + <#include "individual-propertyGroupMenu.ftl"> +--> <#-- Ontology properties --> <#include "individual-properties.ftl"> + <#assign rdfUrl = individual.rdfUrl> diff --git a/webapp/web/templates/freemarker/body/individual/individual.ftl b/webapp/web/templates/freemarker/body/individual/individual.ftl index 62d979b8e..c76ed4da5 100644 --- a/webapp/web/templates/freemarker/body/individual/individual.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual.ftl @@ -1,7 +1,27 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -<#-- Default individual profile page template --> +<#-- Default VIVO individual profile page template (extends individual.ftl in vitro) --> <#include "individual-setup.ftl"> +<#import "lib-vivo-properties.ftl" as vp> -<#include "individual-vitro.ftl"> \ No newline at end of file +<#assign individualProductExtension> + <#-- Include for any class specific template additions --> + ${classSpecificExtension!} + <@vp.webpages propertyGroups editable /> + + <#include "individual-overview.ftl"> + + + + + +<#include "individual-vitro.ftl"> + +${stylesheets.add('', + '')} + +${headScripts.add('', + '')} +${scripts.add('', + '')} diff --git a/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl b/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl index dd48a75ca..9f0a0e643 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl @@ -4,62 +4,81 @@ <#import "lib-properties.ftl" as p> <#assign subjectUri = individual.controlPanelUrl()?split("=") > + +<#if ( propertyGroups.all?size > 1 ) > + + expand all + +<#else> +


+ <#list propertyGroups.all as group> <#assign groupName = group.getName(nameForOtherGroup)> <#assign verbose = (verbosePropertySwitch.currentValue)!false> + <#if groupName?has_content> + <#--the function replaces spaces in the name with underscores, also called for the property group menu--> + <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) > + <#else> + <#assign groupName = "Properties"> + <#assign groupNameHtmlId = "properties" > + -
+
<#-- Display the group heading --> - <#if groupName?has_content> - <#--the function replaces spaces in the name with underscores, also called for the property group menu--> - <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >

${groupName?capitalize}

- <#else> -

Properties

- <#-- List the properties in the group --> - <#list group.properties as property> -
- <#-- Property display name --> - <#if property.localName == "authorInAuthorship" && editable > -

${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> - style="padding-top:10px" > - manage publications - -

- <#elseif property.localName == "hasResearcherRole" && editable > -

${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> - style="padding-top:10px" > - manage grants & projects - -

- <#elseif property.localName == "organizationForPosition" && editable > -

${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> - style="padding-top:10px" > - manage affiliated people - -

- <#else> -

${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 --> +
    + <#list group.properties as property> +
    + <#-- Property display name --> + <#if property.localName == "authorInAuthorship" && editable > +

    ${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> + style="padding-top:10px" > + manage publications + +

    + <#elseif property.localName == "hasResearcherRole" && editable > +

    ${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> + style="padding-top:10px" > + manage grants & projects + +

    + <#elseif property.localName == "organizationForPosition" && editable > +

    ${property.name} <@p.addLink property editable /> <@p.verboseDisplay property /> + style="padding-top:10px" > + manage affiliated people + +

    <#else> - <@p.objectProperty property editable /> +

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

    -
-
- + <#-- List the statements for each property --> + + + +
+ \ No newline at end of file