From 5fd660947cff752cb0511ea9c90c4336009ac124 Mon Sep 17 00:00:00 2001 From: ryounes Date: Fri, 18 Mar 2011 16:15:06 +0000 Subject: [PATCH] NIHVIVO-2186 Implement one approach to hiding statements with no linked individual from non-editors, and apply it to the authorInAuthorship list view query. --- .../listViewConfig-authorInAuthorship.xml | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/productMods/config/listViewConfig-authorInAuthorship.xml b/productMods/config/listViewConfig-authorInAuthorship.xml index dd85287a..a51f1f03 100644 --- a/productMods/config/listViewConfig-authorInAuthorship.xml +++ b/productMods/config/listViewConfig-authorInAuthorship.xml @@ -13,18 +13,23 @@ ?authorship ?infoResource ?infoResourceName ?dateTime WHERE { - ?subject ?property ?authorship - OPTIONAL { ?authorship core:linkedInformationResource ?infoResource . - ?infoResource rdfs:label ?infoResourceName - - OPTIONAL { ?subclass rdfs:subClassOf core:InformationResource . - ?infoResource a ?subclass - } - - OPTIONAL { ?infoResource core:dateTimeValue ?dateTimeValue . - ?dateTimeValue core:dateTime ?dateTime - } + ?subject ?property ?authorship . + + OPTIONAL { + + ?authorship core:linkedInformationResource ?infoResource . + ?infoResource rdfs:label ?infoResourceName + + OPTIONAL { ?subclass rdfs:subClassOf core:InformationResource . + ?infoResource a ?subclass + } + + OPTIONAL { ?infoResource core:dateTimeValue ?dateTimeValue . + ?dateTimeValue core:dateTime ?dateTime + } + } + } ORDER BY ?subclass ?infoResourceName