Skip to content

Commit

Permalink
pkp/pkp-lib#10792 Update ORCiD branding
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Jan 21, 2025
1 parent 7d9a164 commit 16e705f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pages/article/ArticleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function view($args, $request)
'pubIdPlugins' => PluginRegistry::loadCategory('pubIds', true),
'keywords' => $publication->getData('keywords'),
'orcidIcon' => OrcidManager::getIcon(),
'orcidUnauthenticatedIcon' => OrcidManager::getUnauthenticatedIcon(),
]);

// Fetch and assign the galley to the template
Expand Down
6 changes: 4 additions & 2 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@
{/if}
{if $author->getData('orcid')}
<span class="orcid">
{if $author->getData('orcidAccessToken')}
{if $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 16e705f

Please sign in to comment.