multiple updates and new files to support multiple foaf person profile pages
This commit is contained in:
parent
3b051ecffd
commit
9cde935cc7
50 changed files with 2005 additions and 249 deletions
|
@ -1284,9 +1284,10 @@ img.individual-photo {
|
|||
padding-top: .8em;
|
||||
display: block;
|
||||
}
|
||||
ul#individual-tools-people {
|
||||
border-bottom: 1px solid #e8ece9;
|
||||
div#individual-tools-people {
|
||||
border-bottom: 1px dotted #A6B1B0; /* #e8ece9; */
|
||||
color: #b2d15a;
|
||||
text-align:right;
|
||||
}
|
||||
ul#individual-tools-people li a {
|
||||
color: #b2d15a;
|
||||
|
@ -1306,14 +1307,6 @@ ul#individual-tools li a {
|
|||
ul.individual-urls {
|
||||
list-style: url(../../../images/individual/arrow-grey.gif);
|
||||
}
|
||||
|
||||
ul#individual-phone {
|
||||
list-style-type: none;
|
||||
}
|
||||
ul#individual-phone li {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
ul.individual-urls li {
|
||||
font-size: .875em;
|
||||
line-height: 1.6em;
|
||||
|
@ -1379,7 +1372,7 @@ ul#individual-hasResearchArea li a {
|
|||
color: #2485ae;
|
||||
}
|
||||
/* INDIVIDUAL VISUALIZATION ------> */
|
||||
#visualization h3 {
|
||||
#right-hand-column h3 {
|
||||
font-size: 1.25em;
|
||||
color: #2485ae;
|
||||
}
|
||||
|
@ -1395,12 +1388,14 @@ a.all-vivo-publications {
|
|||
color: #2485AE;
|
||||
font-size: .8em !important;
|
||||
text-decoration: underline;
|
||||
vertical-align:text-top;
|
||||
}
|
||||
/* <------ MAP O' SCIENCE */
|
||||
#map-of-science h3 a {
|
||||
color: #2485AE;
|
||||
font-size: .8em !important;
|
||||
text-decoration: underline;
|
||||
vertical-align:text-top;
|
||||
}
|
||||
/* COAUTHORS ------> */
|
||||
img.co-author {
|
||||
|
|
133
themes/wilma/templates/individual--foaf-person.ftl
Normal file
133
themes/wilma/templates/individual--foaf-person.ftl
Normal file
|
@ -0,0 +1,133 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--
|
||||
Individual profile page template for foaf:Person individuals. This is the default template for foaf persons
|
||||
in the Wilma theme and should reside in the themes/wilma/templates directory.
|
||||
-->
|
||||
|
||||
<#include "individual-setup.ftl">
|
||||
<#import "individual-qrCodeGenerator.ftl" as qr>
|
||||
<#import "lib-vivo-properties.ftl" as vp>
|
||||
<#if !labelCount??>
|
||||
<#assign labelCount = 0 >
|
||||
</#if>
|
||||
<section id="individual-intro" class="vcard person" role="region">
|
||||
|
||||
<section id="share-contact" role="region">
|
||||
<!-- Image -->
|
||||
<#assign individualImage>
|
||||
<@p.image individual=individual
|
||||
propertyGroups=propertyGroups
|
||||
namespaces=namespaces
|
||||
editable=editable
|
||||
showPlaceholder="always" />
|
||||
</#assign>
|
||||
|
||||
<#if ( individualImage?contains('<img class="individual-photo"') )>
|
||||
<#assign infoClass = 'class="withThumb"'/>
|
||||
</#if>
|
||||
|
||||
<div id="photo-wrapper">${individualImage}</div>
|
||||
<!-- Contact Info -->
|
||||
<#include "individual-contactInfo.ftl">
|
||||
|
||||
<!-- Websites -->
|
||||
<#include "individual-webpage.ftl">
|
||||
</section>
|
||||
|
||||
<section id="individual-info" ${infoClass!} role="region">
|
||||
<section id="right-hand-column" role="region">
|
||||
<div id="individual-tools-people">
|
||||
<img id="uriIcon" title="${individual.uri}" src="${urls.images}/individual/share-uri-icon.png" alt="uri icon"/>
|
||||
<@qr.renderCode />
|
||||
</div>
|
||||
<#include "individual-visualizationFoafPerson.ftl">
|
||||
</section>
|
||||
<#include "individual-adminPanel.ftl">
|
||||
|
||||
<header>
|
||||
<#if relatedSubject??>
|
||||
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
||||
<p><a href="${relatedSubject.url}" title="return to">← return to ${relatedSubject.name}</a></p>
|
||||
<#else>
|
||||
<h1 class="vcard foaf-person">
|
||||
<#-- Label -->
|
||||
<span class="fn"><@p.label individual editable labelCount/></span>
|
||||
|
||||
<#-- Display preferredTitle if it exists; otherwise mostSpecificTypes -->
|
||||
<#assign title = propertyGroups.pullProperty("${core}preferredTitle")!>
|
||||
<#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||
<@p.addLinkWithLabel title editable />
|
||||
<#list title.statements as statement>
|
||||
<span class="display-title">${statement.value}</span>
|
||||
<@p.editingLinks "${title.name}" statement editable />
|
||||
</#list>
|
||||
</#if>
|
||||
<#-- If preferredTitle is unpopulated, display mostSpecificTypes -->
|
||||
<#if ! (title.statements)?has_content>
|
||||
<@p.mostSpecificTypes individual />
|
||||
</#if>
|
||||
</h1>
|
||||
</#if>
|
||||
<!-- Positions -->
|
||||
<#include "individual-positions.ftl">
|
||||
</header>
|
||||
|
||||
<!-- Overview -->
|
||||
<#include "individual-overview.ftl">
|
||||
|
||||
<!-- Research Areas -->
|
||||
<#include "individual-researchAreas.ftl">
|
||||
|
||||
<#include "individual-openSocial.ftl">
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<#assign nameForOtherGroup = "other"> <#-- used by both individual-propertyGroupMenu.ftl and individual-properties.ftl -->
|
||||
|
||||
<#-- Ontology properties -->
|
||||
<#if !editable>
|
||||
<#-- We don't want to see the first name and last name unless we might edit them. -->
|
||||
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/firstName")!>
|
||||
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!>
|
||||
</#if>
|
||||
|
||||
<!-- Property group menu or tabs -->
|
||||
<#--
|
||||
With release 1.6 there are now two types of property group displays: the original property group
|
||||
menu and the horizontal tab display, which is the default. If you prefer to use the property
|
||||
group menu, simply substitute the include statement below with the one that appears after this
|
||||
comment section.
|
||||
|
||||
<#include "individual-property-group-menus.ftl">
|
||||
-->
|
||||
|
||||
<#include "individual-property-group-tabs.ftl">
|
||||
|
||||
<#assign rdfUrl = individual.rdfUrl>
|
||||
|
||||
<#if rdfUrl??>
|
||||
<script>
|
||||
var individualRdfUrl = '${rdfUrl}';
|
||||
</script>
|
||||
</#if>
|
||||
<script>
|
||||
var individualLocalName = "${individual.localName}";
|
||||
var imagesPath = '${urls.images}';
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual.css" />',
|
||||
'<link rel="stylesheet" href="${urls.base}/css/individual/individual-vivo.css" />',
|
||||
'<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
|
||||
${headScripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.truncator.js"></script>')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/individualUtils.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/individual/individualQtipBubble.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/individual/individualUriRdf.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/imageUpload/imageUploadUtils.js"></script>')}
|
||||
|
18
themes/wilma/templates/individual-openSocial.ftl
Normal file
18
themes/wilma/templates/individual-openSocial.ftl
Normal file
|
@ -0,0 +1,18 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Open Social Gadgets -->
|
||||
<#-- VIVO OpenSocial Extension by UCSF -->
|
||||
<#if openSocial??>
|
||||
<#if openSocial.visible>
|
||||
<div id="openSocial">
|
||||
<h2>OpenSocial</h2>
|
||||
<#-- It would likely make sense to remove the #if logic as it is safe and -->
|
||||
<#-- arguably better to just have both divs in all conditions -->
|
||||
<#if editable>
|
||||
<div id="gadgets-edit" class="gadgets-gadget-parent"></div>
|
||||
<#else>
|
||||
<div id="gadgets-view" class="gadgets-gadget-parent" ></div>
|
||||
</#if>
|
||||
</div>
|
||||
</#if>
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue