diff --git a/OpenAIREGatewayPlugin.php b/OpenAIREGatewayPlugin.php index 1173b13..579bff2 100644 --- a/OpenAIREGatewayPlugin.php +++ b/OpenAIREGatewayPlugin.php @@ -15,6 +15,8 @@ namespace APP\plugins\generic\openAIRE; +use APP\journal\JournalDAO; +use PKP\db\DAORegistry; use PKP\core\PKPString; use PKP\plugins\GatewayPlugin; @@ -62,8 +64,8 @@ function fetch($args, $request) { return false; } - $scheme = array_shift($args); - switch ($scheme) { + $type = array_shift($args); + switch ($type) { case 'objects': $this->showObjects(); break; @@ -78,9 +80,9 @@ function fetch($args, $request) { } function showObjects() { - $journalDao = DAORegistry::getDAO('JournalDAO'); - $issueDao = DAORegistry::getDAO('IssueDAO'); - $journals = $journalDao->getAll(true); + $journalDao = DAORegistry::getDAO('JournalDAO'); /** @var JournalDAO $journalDao */ + $journals = $journalDao->getAll(true); + $request = $this->getRequest(); $dispatcher = $request->getDispatcher(); header('content-type: text/plain'); diff --git a/version.xml b/version.xml index 6619f91..d11727a 100644 --- a/version.xml +++ b/version.xml @@ -13,8 +13,8 @@ openAIRE plugins.generic - 3.4.0.1 - 2024-02-22 + 3.4.0.2 + 2024-02-27 1 OpenAIREPlugin