Skip to content

Commit

Permalink
LiveCmdiMetadata: support templates without changing resource (closes #3
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zozlak committed Jul 9, 2021
1 parent a8bb821 commit 2e27090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/acdhOeaw/arche/oaipmh/metadata/LiveCmdiMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ private function insertCmdiComponents(DOMElement $el, Resource $meta,

$resources = [];
foreach ($meta->all($prop) as $i) {
if (count($i->propertyUris()) === 0) {
if ($i instanceof Literal) {
$resources[] = $this->res;
} elseif (count($i->propertyUris()) === 0) {
$resources[] = $this->res->getRepo()->getResourceById($i);
} else {
$resTmp = new RepoResourceDb($i->getUri(), $this->res->getRepo());
Expand Down

0 comments on commit 2e27090

Please sign in to comment.