From 0cb7ea6ff6699da4444344b76b17d0a782457727 Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Tue, 21 Jan 2025 11:31:16 -0500 Subject: [PATCH] pkp/pkp-lib#10792 Update ORCiD branding --- pages/catalog/CatalogBookHandler.php | 1 + templates/frontend/components/authors.tpl | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/catalog/CatalogBookHandler.php b/pages/catalog/CatalogBookHandler.php index 30935df7fa5..bc3fb0c07e1 100755 --- a/pages/catalog/CatalogBookHandler.php +++ b/pages/catalog/CatalogBookHandler.php @@ -295,6 +295,7 @@ public function book($args, $request) // Add Orcid icon $templateMgr->assign([ 'orcidIcon' => OrcidManager::getIcon(), + 'orcidUnauthenticatedIcon' => OrcidManager::getUnauthenticatedIcon(), ]); // Ask robots not to index outdated versions and point to the canonical url for the latest version diff --git a/templates/frontend/components/authors.tpl b/templates/frontend/components/authors.tpl index 51b9dcff8ef..e89557cd254 100644 --- a/templates/frontend/components/authors.tpl +++ b/templates/frontend/components/authors.tpl @@ -43,8 +43,13 @@ {/if} {if $author->getOrcid()} + {if $author->hasVerifiedOrcid()} + {$orcidIcon} + {else} + {$orcidUnauthenticatedIcon} + {/if} - {$author->getOrcid()|escape} + {$author->getOrcidDisplayValue()|escape} {/if}