NIHVIVO-1510 Collated custom list views

This commit is contained in:
rjy7 2010-12-22 23:10:13 +00:00
parent 0a28fc7db1
commit bf9b23b331
3 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
SELECT DISTINCT ?subClass ?authorship (afn:localname(?authorship) AS ?authorshipName)
SELECT DISTINCT ?subclass ?authorship (afn:localname(?authorship) AS ?authorshipName)
?infoResource ?infoResourceName ?dateTime WHERE {
GRAPH ?g1 { ?subject ?property ?authorship }
GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource }
@ -37,7 +37,7 @@
GRAPH ?g5 { ?infoResource a ?subclass } }
OPTIONAL { GRAPH ?g6 { ?infoResource core:hasDateTimeValue ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime . } }
} ORDER BY ?subClass DESC(?dateTime) ?infoResourceName
} ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
</query>
<template>propStatement-authorInAuthorship.ftl</template>

View file

@ -10,7 +10,7 @@
<a href="${url(statement.infoResource)}">${statement.infoResourceName}</a>
<#else>
<#-- This shouldn't happen, but we must provide for it -->
<a href="${url(statement.authorship)}">(no linked publication) ${statement.authorshipName}</a>
<a href="${url(statement.authorship)}">${statement.authorshipName}</a> (no linked information resource)
</#if>
</#assign>

View file

@ -16,7 +16,7 @@
<a href="${url(statement.org)}">${statement.orgName}</a>
<#else>
<#-- This shouldn't happen, but we must provide for it -->
<a href="${url(statement.edTraining)}">(no linked organization) ${statement.edTrainingName}</a>
<a href="${url(statement.edTraining)}">${statement.edTrainingName}</a> (no linked organization)
</#if>
</#assign>