From 1a40cd2edfcecda47722001ce8e110209441c768 Mon Sep 17 00:00:00 2001 From: Bozana Bokan Date: Thu, 30 Jan 2025 15:07:15 +0100 Subject: [PATCH] ArticleHandler --- pages/article/ArticleHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/article/ArticleHandler.php b/pages/article/ArticleHandler.php index a610127c0d7..6b11528b9bd 100644 --- a/pages/article/ArticleHandler.php +++ b/pages/article/ArticleHandler.php @@ -302,6 +302,9 @@ public function view($args, $request) ]); } + $rorIconPath = Core::getBaseDir() . '/' . PKP_LIB_PATH . '/templates/images/ror.svg'; + $rorIdIcon = file_exists($rorIconPath) ? file_get_contents($rorIconPath) : ''; + // Assign deprecated values to the template manager for // compatibility with older themes $templateMgr->assign([ @@ -313,6 +316,7 @@ public function view($args, $request) 'keywords' => $publication->getData('keywords'), 'orcidIcon' => OrcidManager::getIcon(), 'orcidUnauthenticatedIcon' => OrcidManager::getUnauthenticatedIcon(), + 'rorIdIcon' => $rorIdIcon ]); // Fetch and assign the galley to the template @@ -362,10 +366,6 @@ public function view($args, $request) $templateMgr->assign('purchaseArticleEnabled', true); } - $rorIconPath = Core::getBaseDir() . '/' . PKP_LIB_PATH . '/templates/images/ror.svg'; - $rorIdIcon = file_exists($rorIconPath) ? file_get_contents($rorIconPath) : ''; - $templateMgr->assign('rorIdIcon', $rorIdIcon); - if (!Hook::call('ArticleHandler::view', [&$request, &$issue, &$article, $publication])) { $templateMgr->display('frontend/pages/article.tpl'); event(new UsageEvent(Application::ASSOC_TYPE_SUBMISSION, $context, $article, null, null, $this->issue));