From e60193f15209b81a687097ba0d2630f555730ef1 Mon Sep 17 00:00:00 2001 From: Bozana Bokan Date: Tue, 19 Mar 2024 12:19:01 +0100 Subject: [PATCH] pkp/medra#23 fix ArticleCitation key attribute, use the correct getDoi() function --- filter/ArticleMedraXmlFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/ArticleMedraXmlFilter.php b/filter/ArticleMedraXmlFilter.php index 3b52fe7..640586e 100644 --- a/filter/ArticleMedraXmlFilter.php +++ b/filter/ArticleMedraXmlFilter.php @@ -538,7 +538,7 @@ function appendCitationListNodes(DOMDocument $doc, DOMElement $contentItemNode, $citationListNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:cl', $medraCitationNamespace); foreach($parsedCitations as $citation) { $articleCitationNode = $doc->createElementNS($medraCitationNamespace, 'ArticleCitation'); - $articleCitationNode->setAttribute('key', $article->getCurrentPublication()->getData('pub-id::doi') . '_ref' . $citation->getData('seq')); + $articleCitationNode->setAttribute('key', $article->getCurrentPublication()->getDoi() . '_ref' . $citation->getData('seq')); $unstructuredCitationNode = $doc->createElementNS($medraCitationNamespace, 'UnstructuredCitation'); $unstructuredCitationNode->appendChild($doc->createTextNode($citation->getData('rawCitation'))); $articleCitationNode->appendChild($unstructuredCitationNode);