equal
deleted
inserted
replaced
131 protected function mapCollections($res) { |
131 protected function mapCollections($res) { |
132 $collections = $res->all('dc:isPartOf'); |
132 $collections = $res->all('dc:isPartOf'); |
133 foreach($collections as $coll) { |
133 foreach($collections as $coll) { |
134 if($coll instanceof Resource) { |
134 if($coll instanceof Resource) { |
135 $collUri = $coll->getUri(); |
135 $collUri = $coll->getUri(); |
136 if(strpos(strtolower($collUri), "collection", strlen(config('cocoon_doc_id_base_uri'))) !== FALSE) { |
136 if(strpos(strtolower($collUri), "collection", strlen(config('corpusparole.cocoon_doc_id_base_uri'))) !== FALSE) { |
137 $collectionGraph = new Graph($collUri); |
137 $collectionGraph = new Graph($collUri); |
138 $this->outputGraphes[$collUri] = $collectionGraph; |
138 $this->outputGraphes[$collUri] = $collectionGraph; |
139 $collectionGraph->resource($collUri, 'edm:Collection'); |
139 $collectionGraph->resource($collUri, 'edm:Collection'); |
140 } |
140 } |
141 } |
141 } |