From 32a1b07599019d0a97dc511c4d2806e198d88592 Mon Sep 17 00:00:00 2001 From: Bozana Bokan Date: Mon, 15 Jul 2024 15:44:36 +0200 Subject: [PATCH] pkp/pkp-lib#9877 Provide book DOI and URN via OMP OAI --- .../dc11/filter/Dc11SchemaPublicationFormatAdapter.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/metadata/dc11/filter/Dc11SchemaPublicationFormatAdapter.php b/plugins/metadata/dc11/filter/Dc11SchemaPublicationFormatAdapter.php index 75745c570b9..7f6595943ff 100755 --- a/plugins/metadata/dc11/filter/Dc11SchemaPublicationFormatAdapter.php +++ b/plugins/metadata/dc11/filter/Dc11SchemaPublicationFormatAdapter.php @@ -164,6 +164,11 @@ public function extractMetadataFromDataObject(&$publicationFormat) if ($pubId) { $dc11Description->addStatement('dc:identifier', $pubId); } + $publicationPubId = $plugin->getPubId($publication); + if ($publicationPubId) { + $dc11Description->addStatement('dc:relation', $publicationPubId->getData('doi')); + } + } $context = $request->getContext(); if (!$context) { @@ -176,6 +181,10 @@ public function extractMetadataFromDataObject(&$publicationFormat) if ($doi) { $dc11Description->addStatement('dc:identifier', $doi); } + $publicationDoi = $publication->getData('doiObject'); + if ($publicationDoi) { + $dc11Description->addStatement('dc:relation', $publicationDoi->getData('doi')); + } } // Identifier: others