From 375ee68d30018e7822aebac5f790137bed9f6357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marie-H=C3=A9l=C3=A8ne=20V=C3=A9zina?= Date: Tue, 6 Aug 2024 13:52:45 -0400 Subject: [PATCH] Display ORCID Icon only when authenticated (#223) * Display ORCID Icon only when authenticated * orcid icon styles --------- Co-authored-by: Kaitlin Newson --- styles/bootstrap.less | 8 ++++++++ templates/frontend/objects/article_details.tpl | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap.less b/styles/bootstrap.less index 0bb42ed..21efd1b 100644 --- a/styles/bootstrap.less +++ b/styles/bootstrap.less @@ -77,6 +77,14 @@ margin-bottom: 2em; } + .orcid_icon { + display: inline-block; + margin-right: 0.25em; + width: 24px; + height: 24px; + vertical-align: middle; + } + .author + .author { margin-top: 0.5em; } diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index c43cc2f..60a23ac 100644 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -180,7 +180,9 @@ {/if} {if $author->getOrcid()}
- {$orcidIcon} + {if $author->getData('orcidAccessToken')} + {$orcidIcon} + {/if} {$author->getOrcid()|escape}