Skip to content

Commit

Permalink
pkp/pkp-lib#10796 indicate if orcid is authenticated (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson authored Jan 22, 2025
1 parent be50e3c commit e2afb64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion filter/PreprintCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ public function createPostedContentNode($doc, $publication, $submission)
$personNameNode->appendChild($doc->createElementNS($deployment->getNamespace(), 'surname', htmlspecialchars(ucfirst($familyNames[$locale]), ENT_COMPAT, 'UTF-8')));

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

$hasAltName = false;
Expand Down

0 comments on commit e2afb64

Please sign in to comment.