- <#list deptResearchAreas as firstRow>
- <#assign raLink = "${urls.base}/individual?uri=${firstRow['raURI']}" />
-
- <#break>
- #list>
-
-
-
+ <#list deptResearchAreas as firstRow>
+ <#assign raLink = "${urls.base}/individual?uri=${firstRow['ra']}" />
+
+ <#break>
+ #list>
+
+
+
- <#list affiliatedResearchAreas as firstRow>
- <#assign firstOrgLabel = firstRow["orgLabel"]?upper_case />
- <#assign deptLink = "${urls.base}/individual?uri=${firstRow['orgURI']}" />
- <#assign i18TextString1 = "" />
- <#if ( firstOrgLabel?index_of("THE") == 0 ) >
- <#assign i18TextString1 = "${i18n().individuals_with_researh_area_one(firstRow['orgLabel'],deptLink)}" />
- <#else>
- <#assign i18TextString1 = "${i18n().individuals_with_researh_area_two(firstRow['orgLabel'],deptLink)}" />
- #if>
-
- <#break>
- #list>
-
-
-
+ <#list affiliatedResearchAreas as firstRow>
+ <#assign firstOrgLabel = firstRow["orgLabel"]?upper_case />
+ <#assign deptLink = "${urls.base}/individual?uri=${firstRow['orgURI']}" />
+ <#assign i18TextString1 = "" />
+ <#if ( firstOrgLabel?index_of("THE") == 0 ) >
+ <#assign i18TextString1 = "${i18n().individuals_with_researh_area_one(firstRow['orgLabel'],deptLink)}" />
+ <#else>
+ <#assign i18TextString1 = "${i18n().individuals_with_researh_area_two(firstRow['orgLabel'],deptLink)}" />
+ #if>
+
+ <#break>
+ #list>
+
+
+
- <#list deptResearchAreas as firstRow>
-
- <#break>
- #list>
-
-
-#if>
-
-
+<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
+<#if deptResearchAreas?has_content>
+
+ <#list deptResearchAreas as firstRow>
+
+ <#break>
+ #list>
+
+
+#if>
+
+
diff --git a/rdf/display/everytime/vivoConceptDataGetters.n3 b/rdf/display/everytime/vivoConceptDataGetters.n3
index 9f004fa0..367cc672 100644
--- a/rdf/display/everytime/vivoConceptDataGetters.n3
+++ b/rdf/display/everytime/vivoConceptDataGetters.n3
@@ -65,8 +65,8 @@ display:getDepartmentDataGetter
?person
(Str(?researchAreaLabel) AS ?raLabel)
(str(?departmentLabel) AS ?orgLabel)
- ?raURI
- ?orgURI
+ ?ra
+ ?org
WHERE {
?orgURI vivo:relatedBy ?posn .
?posn a vivo:Position .
@@ -76,6 +76,8 @@ display:getDepartmentDataGetter
?person rdfs:label ?prsnLabel .
?person vivo:hasResearchArea ?raURI .
?raURI rdfs:label ?researchAreaLabel
+ BIND(?raURI AS ?ra)
+ BIND(?orgURI AS ?org)
}
ORDER BY ?personLabel
diff --git a/rdf/display/everytime/vivoOrganizationDataGetters.n3 b/rdf/display/everytime/vivoOrganizationDataGetters.n3
index 89466c5d..581c8fb7 100644
--- a/rdf/display/everytime/vivoOrganizationDataGetters.n3
+++ b/rdf/display/everytime/vivoOrganizationDataGetters.n3
@@ -107,9 +107,8 @@ display:getResearchAreaDataGetter
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
?person
(Str(?researchAreaLabel) AS ?raLabel)
- (str(?departmentLabel) AS ?orgLabel)
- ?raURI
- ?orgURI
+ (str(?organizationLabel) AS ?orgLabel)
+ ?ra
WHERE {
?orgURI vivo:relatedBy ?posn .
?posn a vivo:Position .
@@ -119,6 +118,7 @@ display:getResearchAreaDataGetter
?person rdfs:label ?prsnLabel .
?person vivo:hasResearchArea ?raURI .
?raURI rdfs:label ?researchAreaLabel
+ BIND(?raURI AS ?ra)
}
ORDER BY ?personLabel