diff --git a/HealthSciencesThemePlugin.inc.php b/HealthSciencesThemePlugin.inc.php index 37a6aa9..33aa4e0 100644 --- a/HealthSciencesThemePlugin.inc.php +++ b/HealthSciencesThemePlugin.inc.php @@ -150,7 +150,7 @@ public function getDescription() { */ public function loadTemplateData($hookName, $args) { $templateMgr = $args[0]; - $request = Application::getRequest(); + $request = Application::get()->getRequest(); $context = $request->getContext(); if (!defined('SESSION_DISABLE_INIT')) { diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index b72ba94..3277edf 100644 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -362,18 +362,18 @@ {/if} {* References *} - {if $parsedCitations->getCount() || $article->getCitations()} + {if $parsedCitations || $publication->getData('citationsRaw')}
{$parsedCitation->getCitationWithLinks()|strip_unsafe_html}
- {/iterate} + {/foreach} {elseif $article->getCitations()} - {$article->getCitations()|nl2br} + {$publication->getData('citationsRaw')|nl2br} {/if}