Skip to content

Commit

Permalink
LiveCmdiMetadata::insertCmdiComponents(): preserve literal datatype a…
Browse files Browse the repository at this point in the history
…nd lang
  • Loading branch information
zozlak committed Dec 15, 2022
1 parent f2e3111 commit f858555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acdhOeaw/arche/oaipmh/metadata/LiveCmdiMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private function insertCmdiComponents(DOMElement $el, Resource $meta,
$resTmp = new RepoResourceDb($meta->getUri(), $this->res->getRepo());
$metaTmp = $meta->copy();
$metaTmp->delete($prop);
$metaTmp->addLiteral($prop, (string) $i);
$metaTmp->addLiteral($prop, $i instanceof Literal ? $i : (string) $i);
$resTmp->setGraph($metaTmp);
$resources[] = $resTmp;
$cache[] = false;
Expand Down

0 comments on commit f858555

Please sign in to comment.