Skip to content

Commit 18f81e1

Browse files
committed
remove collections with amsl:metadataAvailable amsl:No
1 parent 0b1c2e7 commit 18f81e1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

classes/ArticleIndexHelper.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,20 @@ public function queryMetadataCollections($metadataSource)
190190
SELECT ?collection ?usedBy ?label ?isRestricted ?permittedForLibrary WHERE {
191191
?collection a amsl:MetadataCollection .
192192
?collection amsl:includedInMetadataSource <" . $metadataSource . "> .
193-
?collection rdfs:label ?label
193+
?collection rdfs:label ?label .
194+
?collection amsl:metadataAvailable ?metadata
194195
OPTIONAL {
195-
?collection amsl:metadataUsedByLibrary ?usedBy . FILTER (?usedBy = <" . $membership . ">)
196+
?collection amsl:metadataUsedByLibrary ?usedBy .
197+
FILTER (?usedBy = <" . $membership . ">)
196198
}
197199
OPTIONAL {
198200
?collection amsl:metadataUsageRestricted ?isRestricted .
199201
}
200202
OPTIONAL {
201-
?collection amsl:metadataUsagePermittedForLibrary ?permittedForLibrary . FILTER (?permittedForLibrary = <" . $membership . ">)
203+
?collection amsl:metadataUsagePermittedForLibrary ?permittedForLibrary .
204+
FILTER (?permittedForLibrary = <" . $membership . ">)
202205
}
206+
FILTER (?metadata != amsl:No)
203207
}";
204208
$result = $this->_model->sparqlQuery($query);
205209
return $result;

0 commit comments

Comments
 (0)