We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 5500 - OAI plugins do not appear to be loading
OAI plugins do not appear to be loading
Status: RESOLVED FIXED
Product: OJS
Classification: Unclassified
Component: OAI
2.3.3
PC Linux
: P5 enhancement
Assigned To: jerico
Depends on:
Blocks: 4965
  Show dependency treegraph
 
Reported: 2010-06-13 03:18 PDT by Alec Smecher
Modified: 2010-06-16 15:12 PDT (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments
adds the oai plug-in category (378 bytes, patch)
2010-06-16 02:31 PDT, jerico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2010-06-13 03:18:18 PDT
OAI plugins do not appear to be loading. Querying ListMetadataFormats, for example, doesn't return any results. Probably related to recent plugin optimization changes. Test URL is e.g.:

http://url/to/ojs/index.php/index/oai?verb=ListMetadataFormats
Comment 1 jerico 2010-06-16 02:27:20 PDT
Hi Alec,

the reason for this problem is that 'oaiMetadataFormats' is not listed as a plugin category in Application::getPluginCategories(). Adding the category seems to correct the issue.

I've not yet committed the patch, wanted to be sure that there wasn't a good reason for the category being missing from the method. Can you see any reason why getPluginCategories() should not return oaiMetadataFormats?

Florian
Comment 2 jerico 2010-06-16 02:31:42 PDT
Created attachment 3111 [details]
adds the oai plug-in category
Comment 3 Alec Smecher 2010-06-16 08:10:22 PDT
Yes, that category should be listed -- thanks for tracking it down!
Comment 5 jerico 2010-06-16 15:12:47 PDT
BTW: This changes requires an upgrade so that the OAI plug-ins will be inserted into the versions table. The upgrade is idempotent and should execute without error even when it's been executed before.