NIHVIVO-2733 Adapt core:relatedRole list view for core:linkedRole
This commit is contained in:
parent
4aec3159d5
commit
7a23fe0201
3 changed files with 18 additions and 2 deletions
|
@ -119,6 +119,10 @@
|
|||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#relatedRole">
|
||||
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-relatedRole.xml</display:listViewConfigFile>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#linkedRole">
|
||||
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-relatedRole.xml</display:listViewConfigFile>
|
||||
</rdf:Description>
|
||||
|
||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#dateTimeInterval">
|
||||
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-dateTimeInterval.xml</display:listViewConfigFile>
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
<!-- See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
|
||||
|
||||
<!-- List view config for http://vivoweb.org/ontology/core#relatedRole and
|
||||
http://vivoweb.org/ontology/core#linkedRole -->
|
||||
|
||||
<list-view-config>
|
||||
<query-select>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
@ -10,6 +13,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT <collated>?subclass</collated>
|
||||
?property
|
||||
?role
|
||||
?roleLabel ?roleTypeLabel
|
||||
?indivInRole (afn:localname(?indivInRole) AS ?indivName)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Custom object property statement view for http://vivoweb.org/ontology/core#relatedRole.
|
||||
<#-- Custom object property statement view for http://vivoweb.org/ontology/core#relatedRole and
|
||||
http://vivoweb.org/ontology/core#linkedRole.
|
||||
|
||||
This template must be self-contained and not rely on other variables set for the individual page, because it
|
||||
is also used to generate the property statement during a deletion.
|
||||
|
@ -26,6 +27,13 @@
|
|||
|
||||
<#-- Generally roles are assigned a label when entered through a custom form. Investigator and its subclasses do not,
|
||||
so use the type label instead. -->
|
||||
${linkedIndividual} ${statement.roleLabel!statement.roleTypeLabel!} <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
<#local roleLabel>
|
||||
<#if statement.roleLabel?has_content>${statement.roleLabel}
|
||||
<#-- Display, e.g., "Principal Investigator" for "Principal Investigator Role" -->
|
||||
<#elseif statement.roleTypeLabel?has_content>${statement.roleTypeLabel?replace(" Role", "")}
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
${linkedIndividual} ${roleLabel!} <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
|
||||
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue