From 5dd0bcc515f391fe3798263b9e6a004c8e2a15c2 Mon Sep 17 00:00:00 2001 From: pjohans Date: Fri, 27 May 2016 13:31:33 +0200 Subject: [PATCH] Issue 1698: Do an OR search if namespace is local --- lib/request/TingClientCollectionRequest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/request/TingClientCollectionRequest.php b/lib/request/TingClientCollectionRequest.php index 50855c9..af5f5a5 100644 --- a/lib/request/TingClientCollectionRequest.php +++ b/lib/request/TingClientCollectionRequest.php @@ -21,7 +21,15 @@ public function setAgency($agency) { } public function getRequest() { - $this->setQuery('rec.id=' . $this->id); + $id_array[] = $this->id; + if(strpos($this->id, $this->agency.'-katalog') !== FALSE) { + list($owner, $id) = explode(':', $this->id); + $this->setQuery('rec.id=870970-basis:' . $id . ' OR rec.id=' . $this->id); + } + else{ + $this->setQuery('rec.id=' . $this->id); + } + $this->setAgency($this->agency); $this->setAllObjects(true); $this->setNumResults(1);