diff --git a/webapp/src/main/webapp/themes/tenderfoot/css/tenderfoot.css b/webapp/src/main/webapp/themes/tenderfoot/css/tenderfoot.css index cfb95c98..ca0e0a12 100644 --- a/webapp/src/main/webapp/themes/tenderfoot/css/tenderfoot.css +++ b/webapp/src/main/webapp/themes/tenderfoot/css/tenderfoot.css @@ -42,7 +42,10 @@ body { } #property-tabs { + /* + padding-left: 0px; padding-right: 0px; + */ } .row { diff --git a/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl b/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl index d14c6981..23ac3b7a 100644 --- a/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl +++ b/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl @@ -108,15 +108,21 @@ <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!> -
- <#include "individual-property-group-tabs.ftl"> -
+
+
+ <#include "individual-property-group-tabs.ftl"> +
+
+ <#include "individual-visualizationFoafPerson.ftl"> + + + <#include "individual-webpage.ftl"> +
+
- <#include "individual-visualizationFoafPerson.ftl"> -
@@ -129,10 +135,7 @@
- <#include "individual-contactInfo.ftl"> - - - <#include "individual-webpage.ftl"> + <#include "individual-contactInfo.ftl">
diff --git a/webapp/src/main/webapp/themes/tenderfoot/templates/body/partials/individual/individual-visualizationFoafPerson.ftl b/webapp/src/main/webapp/themes/tenderfoot/templates/body/partials/individual/individual-visualizationFoafPerson.ftl new file mode 100644 index 00000000..1af7cad3 --- /dev/null +++ b/webapp/src/main/webapp/themes/tenderfoot/templates/body/partials/individual/individual-visualizationFoafPerson.ftl @@ -0,0 +1,67 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for sparkline visualization on individual profile page --> + +<#-- Determine whether this person is an author --> +<#assign isAuthor = p.hasVisualizationStatements(propertyGroups, "${core}relatedBy", "${core}Authorship") /> + +<#-- Determine whether this person is involved in any grants --> +<#assign obo_RO53 = "http://purl.obolibrary.org/obo/RO_0000053"> + +<#assign isInvestigator = ( p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}InvestigatorRole") || + p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}PrincipalInvestigatorRole") || + p.hasVisualizationStatements(propertyGroups, "${obo_RO53}", "${core}CoPrincipalInvestigatorRole") ) > + +<#if (isAuthor || isInvestigator)> + + ${stylesheets.add('')} + <#assign standardVisualizationURLRoot ="/visualization"> + + <#if isAuthor> + <#assign coAuthorIcon = "${urls.images}/visualization/coauthorship/co_author_icon.png"> + <#assign mapOfScienceIcon = "${urls.images}/visualization/mapofscience/scimap_icon.png"> + <#assign coAuthorVisUrl = individual.coAuthorVisUrl()> + <#assign mapOfScienceVisUrl = individual.mapOfScienceUrl()> + + <#assign googleJSAPI = "https://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%22imagesparkline%22%5D%7D%5D%7D"> + + ${i18n().publications_in_vivo} + +
 
+ + + + + + ${scripts.add('', + '', + '')} + + + + + <#if isInvestigator> + <#assign coInvestigatorVisUrl = individual.coInvestigatorVisUrl()> + <#assign coInvestigatorIcon = "${urls.images}/visualization/coauthorship/co_investigator_icon.png"> + + + +