Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Nov 28, 2024
1 parent 27c31aa commit b52b338
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pages/article/ArticleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* @file pages/article/ArticleHandler.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Copyright (c) 2014-2024 Simon Fraser University
* Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class ArticleHandler
Expand All @@ -28,7 +28,6 @@
use APP\submission\Submission;
use APP\template\TemplateManager;
use Firebase\JWT\Key;
use PKP\citation\CitationDAO;
use PKP\config\Config;
use PKP\core\PKPApplication;
use PKP\core\PKPJwt as JWT;
Expand Down Expand Up @@ -291,10 +290,8 @@ public function view($args, $request)

// Citations
if ($publication->getData('citationsRaw')) {
$citationDao = DAORegistry::getDAO('CitationDAO'); /** @var CitationDAO $citationDao */
$parsedCitations = $citationDao->getByPublicationId($publication->getId());
$templateMgr->assign([
'parsedCitations' => $parsedCitations->toArray(),
'parsedCitations' => Repo::citation()->getByPublicationId($publication->getId()),
]);
}

Expand Down

0 comments on commit b52b338

Please sign in to comment.