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);