NIHVIVO-1336 Educational training list view config

This commit is contained in:
rjy7 2010-12-14 22:48:40 +00:00
parent 68087eea1d
commit 74cbc3a197
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<view-config>
<query>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
SELECT DISTINCT ?edTraining ?organization ?degree ?degreeAbbr ?majorField ?deptOrSchool ?info ?dateTime WHERE {
?subject ?property ?edTraining .
?edTraining core:trainingAtOrganization ?organization .
OPTIONAL { ?edTraining core:degreeEarned ?degree . }
OPTIONAL { ?degree rdfs:label ?degreeName . }
OPTIONAL { ?degree core:abbreviation ?degreeAbbr . }
OPTIONAL { ?degree core:majorField ?majorField . }
OPTIONAL { ?degree core:departmentOrSchool ?deptOrSchool . }
OPTIONAL { ?degree core:supplementalInformation ?info . }
OPTIONAL { ?edTraining core:dateTimeInterval ?interval . }
OPTIONAL { ?interval core:hasDateTimeValue ?dateTime . }
} ORDER BY DESC(?dateTime)
</query>
<template>objectPropertyList-educationalTraining.ftl</template>
</view-config>

View file

@ -0,0 +1,9 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Custom object property list view for http://vivoweb.org/ontology/core#educationalTraining -->
<#list property.statements as statement>
<div class="obj-prop-stmt-obj">
<a href="${statement.object.url}">${statement.object.name}</a> ${statement.object.moniker!}
</div> <!-- end obj-prop-stmt-obj -->
</#list>