Skip to content

Commit

Permalink
pkp/pkp-lib#10792 Update ORCiD brand guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Jan 21, 2025
1 parent b31e76e commit 6e83443
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pages/preprint/PreprintHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public function view($args, $request)
'fileId' => $this->submissionFileId, // DEPRECATED in 3.4.0: https://github.com/pkp/pkp-lib/issues/6545
'submissionFileId' => $this->submissionFileId,
'orcidIcon' => OrcidManager::getIcon(),
'orcidUnauthenticatedIcon' => OrcidManager::getUnauthenticatedIcon(),
]);
$this->setupTemplate($request);

Expand Down
6 changes: 4 additions & 2 deletions templates/frontend/objects/preprint_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@
{/if}
{if $author->getData('orcid')}
<span class="orcid">
{if $author->getData('orcidAccessToken')}
{if $author->getData('orcidAccessToken') && $author->hasVerifiedOrcid()}
{$orcidIcon}
{else}
{$orcidUnauthenticatedIcon}
{/if}
<a href="{$author->getData('orcid')|escape}" target="_blank">
{$author->getData('orcid')|escape}
{$author->getOrcidDisplayValue()|escape}
</a>
</span>
{/if}
Expand Down

0 comments on commit 6e83443

Please sign in to comment.