Skip to content

Commit

Permalink
pkp/pkp-lib#9877 Provide book DOI and URN via OMP OAI
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Jul 15, 2024
1 parent ed93c3b commit b517058
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ public function extractMetadataFromDataObject(&$publicationFormat)
if ($pubId) {
$dc11Description->addStatement('dc:identifier', $pubId);
}
$publicationPubId = $plugin->getPubId($publication);
if ($publicationPubId) {
$dc11Description->addStatement('dc:relation', $publicationPubId);
}
}

$context = $request->getContext();
if (!$context) {
$contextDao = Application::getContextDAO();
Expand All @@ -178,14 +183,12 @@ public function extractMetadataFromDataObject(&$publicationFormat)
if ($doi) {
$dc11Description->addStatement('dc:identifier', $doi);
}
}
if ($context->areDoisEnabled()) {
$doi = $publication->getData('doiObject');
if ($doi) {
$dc11Description->addStatement('dc:relation', $doi->getData('doi'));
$publicationDoi = $publication->getData('doiObject');
if ($publicationDoi) {
$dc11Description->addStatement('dc:relation', $publicationDoi->getData('doi'));
}
}

// Identifier: others
$identificationCodeFactory = $publicationFormat->getIdentificationCodes();
while ($identificationCode = $identificationCodeFactory->next()) {
Expand Down

0 comments on commit b517058

Please sign in to comment.