Skip to content

Commit

Permalink
ArticleHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Jan 31, 2025
1 parent 2a37483 commit 7e87006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/article/ArticleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 7e87006

Please sign in to comment.