Skip to content

Commit

Permalink
pkp/pkp-lib#10174 Included ORCID ID
Browse files Browse the repository at this point in the history
(cherry picked from commit 3289b7f)
  • Loading branch information
jonasraoni committed Jul 9, 2024
1 parent 7e803f9 commit e0da44d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/importexport/pubmed/filter/ArticlePubMedXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ public function generateAuthorNode($doc, $journal, $issue, $submission, $author)
$authorElement->appendChild($doc->createElement('LastName'))->appendChild($doc->createTextNode(ucfirst($author->getLocalizedFamilyName())));
}
$authorElement->appendChild($doc->createElement('Affiliation'))->appendChild($doc->createTextNode($author->getLocalizedAffiliation()));
$orcidId = $author->getData('orcid');
if ($orcidId) {
$orcidNode = $authorElement->appendChild($doc->createElement('Identifier'));
$orcidNode->setAttribute('Source', 'ORCID');
$orcidNode->appendChild($doc->createTextNode($orcidId));
}

return $authorElement;
}
Expand Down

0 comments on commit e0da44d

Please sign in to comment.