Skip to content

Commit

Permalink
Merge pull request #14 from ajnyga/master
Browse files Browse the repository at this point in the history
Fix broken Gateway Plugin
  • Loading branch information
ajnyga authored Feb 27, 2024
2 parents d61ece7 + 4520168 commit f584c45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions OpenAIREGatewayPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand All @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<version>
<application>openAIRE</application>
<type>plugins.generic</type>
<release>3.4.0.1</release>
<date>2024-02-22</date>
<release>3.4.0.2</release>
<date>2024-02-27</date>
<lazy-load>1</lazy-load>
<class>OpenAIREPlugin</class>
</version>

0 comments on commit f584c45

Please sign in to comment.