From 16e705f846ce875458de692b370995ed248fc424 Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Mon, 20 Jan 2025 19:18:52 -0500 Subject: [PATCH] pkp/pkp-lib#10792 Update ORCiD branding --- pages/article/ArticleHandler.php | 1 + templates/frontend/objects/article_details.tpl | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/article/ArticleHandler.php b/pages/article/ArticleHandler.php index 8edeea36826..fbfaa8eb28e 100644 --- a/pages/article/ArticleHandler.php +++ b/pages/article/ArticleHandler.php @@ -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 diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index bbc856a9815..698a04a2e3c 100755 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -129,11 +129,13 @@ {/if} {if $author->getData('orcid')} - {if $author->getData('orcidAccessToken')} + {if $author->hasVerifiedOrcid()} {$orcidIcon} + {else} + {$orcidUnauthenticatedIcon} {/if} - {$author->getData('orcid')|escape} + {$author->getOrcidDisplayValue()|escape} {/if}