significant changes for VIVO-131. See Jira comment for more details
This commit is contained in:
parent
42e88d91b8
commit
7a9d46e130
11 changed files with 228 additions and 261 deletions
|
@ -1,161 +0,0 @@
|
|||
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||
|
||||
|
||||
|
||||
#### queries for departmental pages ####
|
||||
|
||||
<http://vivoweb.org/ontology/core#AcademicDepartment> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
|
||||
display:getResearchAreaDataGetter
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
display:saveToVar "researchAreaResults";
|
||||
display:query """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person vivo:hasResearchArea ?ra .
|
||||
?ra rdfs:label ?researchAreaLabel
|
||||
}
|
||||
ORDER BY ?raLabel
|
||||
""" .
|
||||
## This is a working example of another type of data getter that can be used. This one retrieves ##
|
||||
## the organizational memberships (vivo:hasMemberRole) of all the people in an academic department. ##
|
||||
## You can use this or adapt it to your needs; for example, to display clinical activities of people ##
|
||||
## in a department. The templates are available for this query and the appropriate freemarker code ##
|
||||
## is commented out in the individual.ftl and individual--foaf-organization.ftl templates. ##
|
||||
#<http://vivoweb.org/ontology/core#AcademicDepartment> display:hasDataGetter display:getMembershipsDataGetter .
|
||||
#
|
||||
#display:getMembershipsDataGetter
|
||||
# a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
# display:saveToVar "membershipResults";
|
||||
# display:query """
|
||||
# PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
# PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
# SELECT DISTINCT (str(?organizationLabel) AS ?orgLabel) ?organization
|
||||
# WHERE {
|
||||
# ?individualURI vivo:organizationForPosition ?posn .
|
||||
# ?posn vivo:positionForPerson ?person .
|
||||
# ?person vivo:hasMemberRole ?mbrRole .
|
||||
# ?mbrRole vivo:roleContributesTo ?organization.
|
||||
# ?organization rdfs:label ?organizationLabel
|
||||
# }
|
||||
# ORDER BY ?organizationLabel
|
||||
# """ .
|
||||
|
||||
#### detail pages for department links ####
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n1697>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n4170> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate>
|
||||
"individual-dept-active-grants.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title>
|
||||
"Departmental Grants" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping>
|
||||
"/deptGrants" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n4170>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
SELECT DISTINCT (str (?actLabel) AS ?activityLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?activity
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?individualURI rdfs:label ?departmentLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person ?roleProperty ?role .
|
||||
?roleProperty rdfs:subPropertyOf vivo:hasResearcherRole .
|
||||
?role vivo:roleContributesTo ?activity .
|
||||
?activity rdfs:label ?actLabel .
|
||||
?activity vivo:dateTimeInterval ?dti .
|
||||
?dti vivo:end ?end.
|
||||
?end vivo:dateTime ?dt
|
||||
FILTER (?dt > afn:now())
|
||||
}
|
||||
ORDER BY ?activityLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar>
|
||||
"deptGrants" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n5100>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n3450> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate>
|
||||
"individual-dept-res-area-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title>
|
||||
"Departmental Research Areas" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping>
|
||||
"/deptResearchAreas" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n3450>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel) ?person (Str(?researchAreaLabel) AS ?raLabel) (str(?departmentLabel) AS ?deptLabel) ?raURI
|
||||
WHERE {
|
||||
?deptURI vivo:organizationForPosition ?posn .
|
||||
?deptURI rdfs:label ?departmentLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
|
||||
}
|
||||
ORDER BY ?personLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar>
|
||||
"deptResearchAreas" .
|
||||
|
||||
|
||||
## This is another part of the departmental memberships working example. This data getter gets called ##
|
||||
## when a membership organization links is clicked on the academic department page. The template for ##
|
||||
## this data getter (individual-dept-membership-details.ftl) is included in the VIVO source code. ##
|
||||
#<http://vitro.mannlib.cornell.edu/ns/default#n1835>
|
||||
# a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
# <http://vitro.mannlib.cornell.edu/ns/default#n5312> ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate>
|
||||
# "individual-dept-membership-details.ftl" ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title>
|
||||
# "Departmental Memberships" ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping>
|
||||
# "/deptMemberships" .
|
||||
|
||||
#<http://vitro.mannlib.cornell.edu/ns/default#n5312>
|
||||
# a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
# """PREFIX vivoc: <http://vivo.library.cornell.edu/ns/0.1#>
|
||||
# PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
# PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
# SELECT DISTINCT (str (?prsnLabel) AS ?personLabel) (str (?departmentLabel) AS ?deptLabel) ?person #(str(?organizationLabel) AS ?orgLabel) ?orgURI
|
||||
# WHERE {
|
||||
# ?deptURI vivo:organizationForPosition ?posn .
|
||||
# ?deptURI rdfs:label ?departmentLabel .
|
||||
# ?posn vivo:positionForPerson ?person .
|
||||
# ?person rdfs:label ?prsnLabel .
|
||||
# ?person vivo:hasMemberRole ?role .
|
||||
# ?role vivo:roleContributesTo ?orgURI .
|
||||
# ?orgURI rdfs:label ?organizationLabel
|
||||
# }
|
||||
# ORDER BY ?personLabel
|
||||
# """ ;
|
||||
# <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar>
|
||||
# "deptMemberships" .
|
||||
#
|
|
@ -0,0 +1,144 @@
|
|||
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||
|
||||
|
||||
#### n3 for research areas ####
|
||||
|
||||
## associate the classes with the datagetter ##
|
||||
|
||||
<http://vivoweb.org/ontology/core#Department> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#Center> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#ClinicalOrganization> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#Institute> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#Laboratory> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#Library> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
<http://vivoweb.org/ontology/core#ResearchOrganization> display:hasDataGetter display:getResearchAreaDataGetter .
|
||||
|
||||
|
||||
## define the datagetter ##
|
||||
|
||||
display:getResearchAreaDataGetter
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
display:saveToVar "researchAreaResults";
|
||||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person vivo:hasResearchArea ?ra .
|
||||
?ra rdfs:label ?researchAreaLabel
|
||||
}
|
||||
ORDER BY ?raLabel
|
||||
""" .
|
||||
|
||||
## detail page for non-academic department research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55550000>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n55551111> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-affiliated-res-area-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Affiliated Research Areas" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/affiliatedResearchAreas" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55551111>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
|
||||
?person
|
||||
(str(?researchAreaLabel) AS ?raLabel)
|
||||
(str(?organizationLabel) AS ?orgLabel)
|
||||
?raURI
|
||||
WHERE {
|
||||
?orgURI vivo:organizationForPosition ?posn .
|
||||
?orgURI rdfs:label ?organizationLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
}
|
||||
ORDER BY ?personLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar> "affiliatedResearchAreas" .
|
||||
|
||||
## detail page for academic department research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n5100>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n3450> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-dept-res-area-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Departmental Research Areas" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/deptResearchAreas" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n3450>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
|
||||
?person
|
||||
(Str(?researchAreaLabel) AS ?raLabel)
|
||||
(str(?departmentLabel) AS ?orgLabel)
|
||||
?raURI
|
||||
WHERE {
|
||||
?orgURI vivo:organizationForPosition ?posn .
|
||||
?orgURI rdfs:label ?orgLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
|
||||
}
|
||||
ORDER BY ?personLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar>
|
||||
"deptResearchAreas" .
|
||||
|
||||
|
||||
|
||||
#### n3 for grants ####
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n1697>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n4170> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-dept-active-grants.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Departmental Grants" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/deptGrants" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n4170>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
SELECT DISTINCT (str (?actLabel) AS ?activityLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?activity
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?individualURI rdfs:label ?departmentLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person ?roleProperty ?role .
|
||||
?roleProperty rdfs:subPropertyOf vivo:hasResearcherRole .
|
||||
?role vivo:roleContributesTo ?activity .
|
||||
?activity rdfs:label ?actLabel .
|
||||
?activity vivo:dateTimeInterval ?dti .
|
||||
?dti vivo:end ?end.
|
||||
?end vivo:dateTime ?dt
|
||||
FILTER (?dt > afn:now())
|
||||
}
|
||||
ORDER BY ?activityLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar> "deptGrants" .
|
||||
|
|
@ -13,6 +13,10 @@
|
|||
</#assign>
|
||||
</#if>
|
||||
|
||||
<#assign affiliatedResearchAreas>
|
||||
<#include "individual-affiliated-research-areas.ftl">
|
||||
</#assign>
|
||||
|
||||
<#if individual.mostSpecificTypes?seq_contains("Academic Department")>
|
||||
<#assign departmentalGrantsExtension>
|
||||
<div id="activeGrantsLink">
|
||||
|
@ -22,14 +26,6 @@
|
|||
</a>
|
||||
</div>
|
||||
</#assign>
|
||||
|
||||
<#assign departmentalResearchAreas>
|
||||
<#include "individual-dept-research-areas.ftl">
|
||||
</#assign>
|
||||
|
||||
<#assign departmentalMemberships>
|
||||
<#include "individual-dept-memberships.ftl">
|
||||
</#assign>
|
||||
</#if>
|
||||
|
||||
<#include "individual.ftl">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<!--PREINDIVIDUAL OVERVIEW.FTL-->
|
||||
<#include "individual-webpage.ftl">
|
||||
<#include "individual-overview.ftl">
|
||||
${departmentalResearchAreas!}
|
||||
${affiliatedResearchAreas!}
|
||||
</section> <!-- #individual-info -->
|
||||
</section> <!-- #individual-intro -->
|
||||
<!--postindiviudal overiew tfl-->
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#if affiliatedResearchAreas?has_content>
|
||||
<section id="pageList">
|
||||
<#list affiliatedResearchAreas as firstRow>
|
||||
<#assign firstOrgLabel = firstRow["orgLabel"]?upper_case />
|
||||
<#assign i18TextString1 = "" />
|
||||
<#if ( firstOrgLabel?index_of("THE") == 0 ) >
|
||||
<#assign i18TextString1 = "${i18n().individuals_with_researh_area_one(firstRow['orgLabel'])}" />
|
||||
<#else>
|
||||
<#assign i18TextString1 = "${i18n().individuals_with_researh_area_two(firstRow['orgLabel'])}" />
|
||||
</#if>
|
||||
<div class="tab">
|
||||
<h2>${firstRow["raLabel"]}</h2>
|
||||
<p>${i18TextString1} <a href="${urls.base}/individual?uri=${firstRow["raURI"]}">${i18n().view_all_individuals_in_area}</a></p>
|
||||
</div>
|
||||
<#break>
|
||||
</#list>
|
||||
</section>
|
||||
|
||||
<section id="deptResearchAreas">
|
||||
<ul role="list" class="deptDetailsList">
|
||||
<#list affiliatedResearchAreas as resultRow>
|
||||
<li class="deptDetailsListItem">
|
||||
<a href="${urls.base}/individual${resultRow["person"]?substring(resultRow["person"]?last_index_of("/"))}" title="${i18n().person_name}">${resultRow["personLabel"]}</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
</#if>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#if researchAreaResults?has_content>
|
||||
<#-- If the organization is an Academic Department, we use a different datagetter and detail page. This -->
|
||||
<#-- is strictly a usability issue so we can refer accurately to "faculty members" within the dept. -->
|
||||
<#assign urlForDetailsPage = "affiliatedResearchAreas" />
|
||||
<#assign headingText = "${i18n().affiliated_research_areas}" />
|
||||
<#if individual.mostSpecificTypes?seq_contains("Academic Department")>
|
||||
<#assign urlForDetailsPage = "deptResearchAreas" />
|
||||
<#assign headingText = "${i18n().faculty_research_areas}" />
|
||||
</#if>
|
||||
<h2 id="facultyResearchAreas" class="mainPropGroup">
|
||||
${headingText}
|
||||
</h2>
|
||||
<ul id="individual-hasResearchArea" role="list">
|
||||
<#assign moreDisplayed = false>
|
||||
<#list researchAreaResults as resultRow>
|
||||
<li class="raLink">
|
||||
<a class="raLink" href="${urls.base}/${urlForDetailsPage}?orgURI=${individual.uri}&raURI=${resultRow["ra"]}" title="${i18n().research_area}">
|
||||
${resultRow["raLabel"]}
|
||||
</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
<script>
|
||||
$('a#raMore').click(function() {
|
||||
$('li.raLinkMore').each(function() {
|
||||
$(this).show();
|
||||
});
|
||||
$('li#raMoreContainer').hide();
|
||||
$('li#raLessContainer').show();
|
||||
});
|
||||
$('a#raLess').click(function() {
|
||||
$('li.raLinkMore').each(function() {
|
||||
$(this).hide();
|
||||
});
|
||||
$('li#raMoreContainer').show();
|
||||
$('li#raLessContainer').hide();
|
||||
});
|
||||
</script>
|
|
@ -1,26 +0,0 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#if deptMemberships?has_content>
|
||||
<section id="pageList">
|
||||
<#list deptMemberships as firstRow>
|
||||
<div class="tab">
|
||||
<h2>${firstRow["orgLabel"]}</h2>
|
||||
<p>${i18n().faculty_who_are_members_of_org(firstRow["deptLabel"])} <a href="${urls.base}/display${firstRow["orgURI"]?substring(firstRow["orgURI"]?last_index_of("/"))}" title="${i18n().view_all_faculty}">${i18n().view_all_members_of_org}</a></p>
|
||||
</div>
|
||||
<#break>
|
||||
</#list>
|
||||
|
||||
<section id="deptGraduateFields">
|
||||
<ul role="list" class="deptDetailsList">
|
||||
<#list deptMemberships as resultRow>
|
||||
<li class="deptDetailsListItem">
|
||||
<a href="${urls.base}/individual${resultRow["person"]?substring(resultRow["person"]?last_index_of("/"))}" title="${i18n().person_name}">${resultRow["personLabel"]}</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
</#if>
|
||||
|
||||
</section>
|
|
@ -1,15 +0,0 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#if membershipResults?has_content>
|
||||
<h2 id="facultyMemberships" class="mainPropGroup">${i18n().faculty_memberships}</h2>
|
||||
<#assign numberRows = membershipResults?size/>
|
||||
<ul id="individual-facultyMemberships" role="list">
|
||||
<#list membershipResults as resultRow>
|
||||
<li class="raLink">
|
||||
<a class="raLink" href="${urls.base}/deptGradFields?deptURI=${individual.uri}&actURI=${resultRow["activity"]}" title="${i18n().activity_name}">
|
||||
${resultRow["actLabel"]}
|
||||
</a>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
|
@ -4,7 +4,7 @@
|
|||
<#list deptResearchAreas as firstRow>
|
||||
<div class="tab">
|
||||
<h2>${firstRow["raLabel"]}</h2>
|
||||
<p>${i18n().faculty_with_researh_area(firstRow["deptLabel"])} <a href="${urls.base}/display${firstRow["raURI"]?substring(firstRow["raURI"]?last_index_of("/"))}">${i18n().view_all_faculty_in_area}</a></p>
|
||||
<p>${i18n().faculty_with_researh_area(firstRow["deptLabel"])} <a href="${urls.base}/individual?uri=${firstRow["raURI"]}">${i18n().view_all_faculty_in_area}</a></p>
|
||||
</div>
|
||||
<#break>
|
||||
</#list>
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#if researchAreaResults?has_content>
|
||||
<h2 id="facultyResearchAreas" class="mainPropGroup">
|
||||
${i18n().faculty_research_areas}
|
||||
</h2>
|
||||
|
||||
<#assign numberRows = researchAreaResults?size/>
|
||||
<ul id="individual-hasResearchArea" role="list">
|
||||
<#assign totalLength = 0 >
|
||||
<#assign moreDisplayed = false>
|
||||
<#list researchAreaResults as resultRow>
|
||||
<#if ( totalLength > 380 ) && !moreDisplayed >
|
||||
<li id="raMoreContainer" style="border:none">(...<a id="raMore" href="javascript:">${i18n().display_more}</a>)</li>
|
||||
<li class="raLinkMore" style="display:none">
|
||||
<#assign moreDisplayed = true>
|
||||
<#elseif ( totalLength > 380 ) && moreDisplayed >
|
||||
<li class="raLinkMore" style="display:none">
|
||||
<#else>
|
||||
<li class="raLink">
|
||||
</#if>
|
||||
<a class="raLink" href="${urls.base}/deptResearchAreas?deptURI=${individual.uri}&raURI=${resultRow["ra"]}" title="${i18n().research_area}">
|
||||
${resultRow["raLabel"]}
|
||||
</a>
|
||||
</li>
|
||||
<#assign totalLength = totalLength + resultRow["raLabel"]?length >
|
||||
</#list>
|
||||
<#if ( totalLength > 380 ) ><li id="raLessContainer" style="display:none">(<a id="raLess" href="javascript:">${i18n().display_less}</a>)</li></#if>
|
||||
</ul>
|
||||
</#if>
|
||||
<script>
|
||||
$('a#raMore').click(function() {
|
||||
$('li.raLinkMore').each(function() {
|
||||
$(this).show();
|
||||
});
|
||||
$('li#raMoreContainer').hide();
|
||||
$('li#raLessContainer').show();
|
||||
});
|
||||
$('a#raLess').click(function() {
|
||||
$('li.raLinkMore').each(function() {
|
||||
$(this).hide();
|
||||
});
|
||||
$('li#raMoreContainer').show();
|
||||
$('li#raLessContainer').hide();
|
||||
});
|
||||
</script>
|
|
@ -58,12 +58,15 @@ view_all_active_grants = View all active grants
|
|||
faculty_who_are_members_of_org = Here are the faculty in the {0} department who are members of this organization.
|
||||
view_all_faculty = view all faculty
|
||||
view_all_members_of_org = View all the members of this organization.
|
||||
|
||||
faculty_memberships = Faculty Memberships
|
||||
faculty_with_researh_area = Here are the faculty members in the {0} department who have an interest in this research area.
|
||||
view_all_faculty_in_area = View all faculty members with an interest in this area.
|
||||
|
||||
individuals_with_researh_area_one = Here are the individuals in {0} who have an interest in this research area.
|
||||
individuals_with_researh_area_two = Here are the individuals in the {0} who have an interest in this research area.
|
||||
faculty_with_researh_area = Here are the faculty members in the {0} department who have an interest in this research area.
|
||||
view_all_individuals_in_area = View all individuals with an interest in this area.
|
||||
view_all_faculty_in_area = View all faculty with an interest in this area.
|
||||
faculty_research_areas = Faculty Research Areas
|
||||
affiliated_research_areas = Affiliated Research Areas
|
||||
research_area = research area
|
||||
display_more = more
|
||||
display_less = less
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue