From 08e0c679b3998092ff09f49896fafc5e017ee388 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Mon, 18 Jun 2012 21:43:48 +0200 Subject: [PATCH] Speed up breadcrumb query. ... Guess it doesn't really do much towards optimization server-side. --- ObjectHelper.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ObjectHelper.inc b/ObjectHelper.inc index 564c451e..396505d4 100644 --- a/ObjectHelper.inc +++ b/ObjectHelper.inc @@ -1047,12 +1047,11 @@ PREFIX rels-ext: SELECT ?parentObject ?title ?content FROM <#ri> WHERE { - ?this ?relationship ?parentObject . + ?relationship ?parentObject . ?parentObject fedora-model:label ?title ; fedora-model:state fedora-model:Active ; fedora-model:hasModel ?content . FILTER( - sameTerm(?this, ) && ( sameTerm(?relationship, rels-ext:isMemberOfCollection) || sameTerm(?relationship, rels-ext:isMemberOf) ||