Skip to content

Commit

Permalink
pkp/pkp-lib#10796 only export ORCID if verified
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Jan 27, 2025
1 parent 42f8140 commit 629f425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filter/ArticleMedraXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ public function createContributorNode(DOMDocument $doc, Author $author, array $o
$contributorNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'ContributorRole', self::O4DOI_CONTRIBUTOR_ROLE_ACTUAL_AUTHOR));

// Contributor ORCID
if (!empty($author->getOrcid())) {
$contributorNode->appendChild($this->createNameIdentifierNode($doc, self::O4DOI_NAME_IDENTIFIER_TYPE_ORCID, $author->getOrcid()));
if ($author->getData('orcid') && $author->hasVerifiedOrcid()) {
$contributorNode->appendChild($this->createNameIdentifierNode($doc, self::O4DOI_NAME_IDENTIFIER_TYPE_ORCID, $author->getData('orcid')));
}

// Person name (mandatory)
Expand Down

0 comments on commit 629f425

Please sign in to comment.