From dedd0e3874fd73ead601b9c89e35c19227f637e7 Mon Sep 17 00:00:00 2001 From: GaziYucel <84437883+GaziYucel@users.noreply.github.com> Date: Fri, 14 Feb 2025 10:48:38 +0100 Subject: [PATCH] pkp/pkp-lib#10692 structured citations --- GoogleScholarPlugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GoogleScholarPlugin.php b/GoogleScholarPlugin.php index 561a055..de1125f 100644 --- a/GoogleScholarPlugin.php +++ b/GoogleScholarPlugin.php @@ -21,7 +21,6 @@ use APP\facades\Repo; use APP\submission\Submission; use APP\template\TemplateManager; -use PKP\citation\CitationDAO; use PKP\core\PKPApplication; use PKP\db\DAORegistry; use PKP\plugins\GenericPlugin; @@ -213,9 +212,7 @@ public function submissionView($hookName, $args) // Citations $outputReferences = []; - $citationDao = DAORegistry::getDAO('CitationDAO'); /** @var CitationDAO $citationDao */ - $parsedCitations = $citationDao->getByPublicationId($publication->getId()); - while ($citation = $parsedCitations->next()) { + foreach (Repo::citation()->getByPublicationId($publication->getId()) as $i => $citation) { $outputReferences[] = $citation->getRawCitation(); } Hook::call('GoogleScholarPlugin::references', [&$outputReferences, $submission->getId()]);