From 1beb26c1a611fa64946e416fa41fcb799a92b6f2 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Thu, 17 Nov 2011 19:01:28 +0000 Subject: [PATCH] NIHVIVO-3335: Relocated RDF link for individual pages under popup for sharing URI profile --- productMods/js/individual/individualUtils.js | 6 +++--- .../individual/individual--foaf-person.ftl | 19 ++++++++++++------- themes/wilma/css/wilma.css | 4 ++++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/productMods/js/individual/individualUtils.js b/productMods/js/individual/individualUtils.js index a1e5e566..5c2d9b8c 100644 --- a/productMods/js/individual/individualUtils.js +++ b/productMods/js/individual/individualUtils.js @@ -108,7 +108,7 @@ $(document).ready(function(){ { content: { prerender: true, // We need this for the .click() event listener on 'a.close' - text: '
share the URI for this profile
close' + text: '
share the URI for this profile
view profile in RDF format
close' }, position: { corner: { @@ -127,8 +127,8 @@ $(document).ready(function(){ } }, style: { - padding: '6px', - width: 380, + padding: '1em', + width: 400, backgroundColor: '#f1f2ee' } }); diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 91cbf14c..be85d83d 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -29,11 +29,6 @@ @@ -117,6 +112,14 @@ <#-- Ontology properties --> <#include "individual-properties.ftl"> +<#assign rdfUrl = individual.rdfUrl> + +<#if rdfUrl??> + + + ${stylesheets.add('', '', '')} @@ -125,5 +128,7 @@ ${headScripts.add('', '')} -${scripts.add('', - '')} +${scripts.add('', + '', + '')} + diff --git a/themes/wilma/css/wilma.css b/themes/wilma/css/wilma.css index 64a1d5f1..843251e6 100644 --- a/themes/wilma/css/wilma.css +++ b/themes/wilma/css/wilma.css @@ -1251,6 +1251,10 @@ h2#mainImage, #share-contact h2 { img.individual-photo { border: 7px solid #ebebeb; } +.rdf-url { + padding-top: .8em; + display: block; +} ul#individual-tools-people { border-bottom: 1px solid #e8ece9; color: #b2d15a;