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 8d57fd4 commit 0cb7ea6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pages/catalog/CatalogBookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion templates/frontend/components/authors.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@
{/if}
{if $author->getOrcid()}
<span class="orcid">
{if $author->hasVerifiedOrcid()}
{$orcidIcon}
{else}
{$orcidUnauthenticatedIcon}
{/if}
<a href="{$author->getOrcid()|escape}" target="_blank">
{$author->getOrcid()|escape}
{$author->getOrcidDisplayValue()|escape}
</a>
</span>
{/if}
Expand Down

0 comments on commit 0cb7ea6

Please sign in to comment.