Skip to content

Commit

Permalink
Merge pull request #55 from kaitlinnewson/10796-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10796 indicate if orcid is authenticated
  • Loading branch information
bozana authored Jan 17, 2025
2 parents 298444f + e8f4c07 commit 42cc2e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion filter/ArticleCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ public function createJournalArticleNode($doc, $submission)
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'surname', htmlspecialchars(ucfirst($familyNames[$locale]), ENT_COMPAT, 'UTF-8')));

if ($author->getData('orcid')) {
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'ORCID', $author->getData('orcid')));
$orcidNode = $doc->createElementNS($deployment->getNamespace(), 'ORCID', $author->getData('orcid'));
$orcidAuthenticated = $author->getData('orcidAccessToken') ? 'true' : 'false';
$orcidNode->setAttribute('authenticated', $orcidAuthenticated);
$personNameNode->appendChild($orcidNode);
}

$hasAltName = false;
Expand Down

0 comments on commit 42cc2e9

Please sign in to comment.