Browse Source

Speed up breadcrumb query.

... Guess it doesn't really do much towards optimization server-side.
pull/136/head^2
Adam Vessey 12 years ago
parent
commit
08e0c679b3
  1. 3
      ObjectHelper.inc

3
ObjectHelper.inc

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

Loading…
Cancel
Save