hide past positions in 'research area of' list view
This commit is contained in:
parent
6aeccfffbb
commit
39b7d7bdfb
2 changed files with 28 additions and 10 deletions
|
@ -22,6 +22,7 @@
|
||||||
?org
|
?org
|
||||||
?orgLabel
|
?orgLabel
|
||||||
?title
|
?title
|
||||||
|
?dateTimeEnd
|
||||||
WHERE {
|
WHERE {
|
||||||
?subject ?property ?person .
|
?subject ?property ?person .
|
||||||
OPTIONAL { ?person core:relatedBy ?position .
|
OPTIONAL { ?person core:relatedBy ?position .
|
||||||
|
@ -42,8 +43,13 @@
|
||||||
?org a foaf:Organization .
|
?org a foaf:Organization .
|
||||||
?org rdfs:label ?orgLabel
|
?org rdfs:label ?orgLabel
|
||||||
}
|
}
|
||||||
|
OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval .
|
||||||
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
||||||
|
?dateTimeEndValue core:dateTime ?dateTimeEnd .
|
||||||
|
FILTER ( ?dateTimeEnd < now() )
|
||||||
}
|
}
|
||||||
ORDER BY (fn:lower-case(?personName))
|
}
|
||||||
|
ORDER BY (fn:lower-case(?personName)) (bound(?dateTimeEnd)) desc(?dateTimeEnd)
|
||||||
</query-select>
|
</query-select>
|
||||||
|
|
||||||
<query-construct>
|
<query-construct>
|
||||||
|
@ -59,6 +65,9 @@
|
||||||
?position core:relates ?org .
|
?position core:relates ?org .
|
||||||
?org a foaf:Organization .
|
?org a foaf:Organization .
|
||||||
?org rdfs:label ?orgName .
|
?org rdfs:label ?orgName .
|
||||||
|
?position core:dateTimeInterval ?dateTimeInterval .
|
||||||
|
?dateTimeInterval core:end ?endDate .
|
||||||
|
?endDate core:dateTime ?endDateValue .
|
||||||
} WHERE {
|
} WHERE {
|
||||||
{
|
{
|
||||||
?subject ?property ?person
|
?subject ?property ?person
|
||||||
|
@ -84,6 +93,13 @@
|
||||||
?position core:relates ?org .
|
?position core:relates ?org .
|
||||||
?org a foaf:Organization .
|
?org a foaf:Organization .
|
||||||
?org rdfs:label ?orgName
|
?org rdfs:label ?orgName
|
||||||
|
} UNION {
|
||||||
|
?subject ?property ?person .
|
||||||
|
?person core:relatedBy ?position .
|
||||||
|
?position a core:Position .
|
||||||
|
?position core:dateTimeInterval ?dateTimeInterval .
|
||||||
|
?dateTimeInterval core:end ?endDate .
|
||||||
|
?endDate core:dateTime ?endDateValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</query-construct>
|
</query-construct>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
<#local linkedIndividual>
|
<#local linkedIndividual>
|
||||||
<a href="${profileUrl(statement.uri("person"))}" title="${i18n().person_name}">${statement.personName!}</a>
|
<a href="${profileUrl(statement.uri("person"))}" title="${i18n().person_name}">${statement.personName!}</a>
|
||||||
</#local>
|
</#local>
|
||||||
|
<#if !(statement.dateTimeEnd?has_content)>
|
||||||
<#if statement.title?has_content >
|
<#if statement.title?has_content >
|
||||||
<#local posnTitle = statement.title>
|
<#local posnTitle = statement.title>
|
||||||
<#elseif statement.posnLabel?has_content>
|
<#elseif statement.posnLabel?has_content>
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
<a href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgLabel!""}</a>
|
<a href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgLabel!""}</a>
|
||||||
</#local>
|
</#local>
|
||||||
</#if>
|
</#if>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<@s.join [ linkedIndividual, posnTitle!, orgString! ] />
|
<@s.join [ linkedIndividual, posnTitle!, orgString! ] />
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
Loading…
Add table
Reference in a new issue