Browse Source

Merge pull request #136 from adam-vessey/6.x

6.x
pull/137/merge
Jonathan Green 13 years ago
parent
commit
3ca0bcb7cd
  1. 3
      ObjectHelper.inc

3
ObjectHelper.inc

@ -1026,12 +1026,11 @@ PREFIX rels-ext: <info:fedora/fedora-system:def/relations-external#>
SELECT ?parentObject ?title ?content SELECT ?parentObject ?title ?content
FROM <#ri> FROM <#ri>
WHERE { WHERE {
?this ?relationship ?parentObject . <info:fedora/$pid> ?relationship ?parentObject .
?parentObject fedora-model:label ?title ; ?parentObject fedora-model:label ?title ;
fedora-model:state fedora-model:Active ; fedora-model:state fedora-model:Active ;
fedora-model:hasModel ?content . fedora-model:hasModel ?content .
FILTER( FILTER(
sameTerm(?this, <info:fedora/$pid>) &&
( (
sameTerm(?relationship, rels-ext:isMemberOfCollection) || sameTerm(?relationship, rels-ext:isMemberOfCollection) ||
sameTerm(?relationship, rels-ext:isMemberOf) || sameTerm(?relationship, rels-ext:isMemberOf) ||

Loading…
Cancel
Save