Skip to content

Commit

Permalink
Merge pull request #75 from kaitlinnewson/10796-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10796 update orcidAccessToken to orcidIsVerified
  • Loading branch information
bozana authored Jan 27, 2025
2 parents f8814e0 + e7c4c6b commit 0663f08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/ArticleFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace APP\plugins\generic\jatsTemplate\classes;

use APP\author\Author;
use APP\issue\Issue;
use APP\facades\Repo;
use PKP\core\PKPString;
Expand Down Expand Up @@ -349,7 +350,7 @@ public function createArticleContribGroup(Submission $submission, Publication $p

// Include authors
$affiliations = [];
foreach ($publication->getData('authors') as $author) {
foreach ($publication->getData('authors') as $author) { /** @var Author $author */
$affiliation = $author->getLocalizedAffiliation();
$affiliationToken = array_search($affiliation, $affiliations);
if ($affiliation && !$affiliationToken) {
Expand Down Expand Up @@ -381,7 +382,7 @@ public function createArticleContribGroup(Submission $submission, Publication $p
if ($author->getOrcid()) {
$contribElement->appendChild($this->createElement('contrib-id'))
->setAttribute('contrib-id-type', 'orcid')->parentNode
->setAttribute('authenticated', $author->getData('orcidAccessToken') ? 'true' : 'false')->parentNode
->setAttribute('authenticated', $author->hasVerifiedOrcid() ? 'true' : 'false')->parentNode
->appendChild($this->createTextNode($author->getOrcid()));
}

Expand Down

0 comments on commit 0663f08

Please sign in to comment.