PKP Bugzilla – Bug 5500
OAI plugins do not appear to be loading
Last modified: 2010-06-16 15:12:47 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
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
Created attachment 3111 [details] adds the oai plug-in category
Yes, that category should be listed -- thanks for tracking it down!
fixed, see: http://github.com/pkp/ocs/commit/355f4e48e1606cf6ef78660b2fffca664ce3dae3 http://github.com/pkp/ojs/commit/0a62a4b1d341dbc6bb73ea51a705c643a3f46b6d
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.