diff --git a/productMods/WEB-INF/ontologies/user/vivo-core-1.2-annotations.rdf b/productMods/WEB-INF/ontologies/user/vivo-core-1.2-annotations.rdf index dd1b0319..016308fc 100644 --- a/productMods/WEB-INF/ontologies/user/vivo-core-1.2-annotations.rdf +++ b/productMods/WEB-INF/ontologies/user/vivo-core-1.2-annotations.rdf @@ -4792,4 +4792,7 @@ -1 + + individual--foaf-person.ftl + diff --git a/productMods/templates/freemarker/body/partials/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/partials/individual/individual--foaf-person.ftl new file mode 100644 index 00000000..935fc9ad --- /dev/null +++ b/productMods/templates/freemarker/body/partials/individual/individual--foaf-person.ftl @@ -0,0 +1,170 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for individual profile page --> + +<#import "lib-list.ftl" as l> +<#import "lib-properties.ftl" as p> +<#assign core = "http://vivoweb.org/ontology/core#"> + +<#assign editingClass> + <#if editStatus.showEditLinks>editing<#else> + + +<#if editStatus.showAdminPanel> + <#include "individual-adminPanel.ftl"> + + +<#assign propertyGroups = individual.propertyList> + +
+ +
+ <#-- Thumbnail --> + <#if individual.thumbUrl??> + ${individual.name} + <#elseif individual.person> + placeholder image + + + + + <#-- Email --> + <#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!> + <#if email?has_content> + + + + <#-- Phone --> + <#assign phone = propertyGroups.getPropertyAndRemoveFromList("${core}phoneNumber")!> + <#if phone?has_content> + + + + <#-- Links --> + +
+ +
+
+ <#if relatedSubject??> +

${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}

+

← return to ${relatedSubject.name}

+ <#else> +

+ <#-- Label --> + ${individual.name} + + <#-- Moniker --> + <#if individual.moniker?has_content> + ${individual.moniker} + +

+ + + <#-- Positions --> + <#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!> + <#if positions?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> +

Positions

+
    + <@p.objectPropertyList positions.statements positions.template /> +
+ +
+ + <#-- Overview --> + <#assign overview = propertyGroups.getPropertyAndRemoveFromList("${core}overview")!> + <#if overview?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <#list overview.statements as statement> +

${statement.value}

+ + + + <#-- Research Areas --> + <#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!> + <#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> +

Research Areas

+
    + <@p.simpleObjectPropertyList researchAreas /> +
+ + +
+
+ +
+
+ <#include "individual-sparklineVisualization.ftl"> + + <#-- RY Move out of this template when it's converted to individual--foaf-person.ftl. Will we have an organization-specific individual template? --> + <#if individual.organization > +
+
+

Temporal Graph
View 4

+
+ <#--
VISMODE: ${individual.moniker}
--> + +
+ +
+
+

10 Co-Authors

+
+ +
    +
  • +
  • +
  • +
  • +
  • +
  • +
+ +

View All 4

+
+
+ +<#-- Property group menu --> +<#assign nameForOtherGroup = "other"> +<#include "individual-propertyGroupMenu.ftl"> + +<#-- Ontology properties --> +<#include "individual-properties.ftl"> + +<#-- Keywords --> +<#if individual.keywords?has_content> +

Keywords: ${individual.keywordString}

+ + +${stylesheets.add("/css/individual/individual.css")} + +<#-- RY Figure out which of these scripts really need to go into the head, and which are needed at all (e.g., tinyMCE??) --> +${headScripts.add("/js/jquery_plugins/getUrlParam.js", + "/js/jquery_plugins/colorAnimations.js", + "/js/jquery_plugins/jquery.form.js", + "/js/tiny_mce/tiny_mce.js", + "/js/controls.js", + "http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22areachart%22%2C%22imagesparkline%22%5D%7D%5D%7D", + "/js/toggle.js")} + +${scripts.add("/js/imageUpload/imageUploadUtils.js")} \ No newline at end of file diff --git a/themes/vivo-basic/templates/individual-person.ftl b/themes/vivo-basic/templates/individual-person.ftl deleted file mode 100644 index 939b919e..00000000 --- a/themes/vivo-basic/templates/individual-person.ftl +++ /dev/null @@ -1,5 +0,0 @@ -<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> - -<#-- Template for profile page for individuals of class Person --> - -

This is the person profile page.

\ No newline at end of file