Skip to content

Commit

Permalink
pkp/pkp-lib#10174 Included ORCID ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 9, 2024
1 parent b80f157 commit 445c833
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ 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 445c833

Please sign in to comment.