Skip to content

Commit

Permalink
pkp#23 fix ArticleCitation key attribute, use the correct getDoi() fu…
Browse files Browse the repository at this point in the history
…nction
  • Loading branch information
bozana committed Mar 19, 2024
1 parent a578201 commit e60193f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/ArticleMedraXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e60193f

Please sign in to comment.