Skip to content

Commit

Permalink
pkp/pkp-lib#10692 Structured Citations
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Feb 6, 2025
1 parent fe812f5 commit 08b0251
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions GoogleScholarPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -212,9 +211,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()]);
Expand Down

0 comments on commit 08b0251

Please sign in to comment.