Skip to content

Commit

Permalink
Resolver::findResource(): assure resource metadata is fetched with mo…
Browse files Browse the repository at this point in the history
…de 0_0_0_0
  • Loading branch information
zozlak committed Oct 21, 2024
1 parent 0c3a41a commit 6a871cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/acdhOeaw/arche/resolver/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ private function findResource(string $resId): RepoResourceInterface {
}
$repo->setQueryLog($this->log);

$cfg = new SearchConfig();
$cfg->class = $class;
$res = $repo->getResourceById($resId, $cfg);
$cfg = new SearchConfig();
$cfg->metadataMode = '0_0_0_0';
$cfg->class = $class;
$res = $repo->getResourceById($resId, $cfg);
$this->log->info("\tresource found: " . $res->getUri());
return $res;
} catch (NotFound $e) {
Expand Down

0 comments on commit 6a871cf

Please sign in to comment.