OAI-PMH 2.0 problem on OJS 3.4.0.9

Hello,

Help sought. I am getting similar issues (reported at OAI-PMH 2.0 check problem ) on all Journals on the platform. Below are the details from my test.

Version: OJS 3.4.0.9

OAI endpoint: https://www.sajas.co.za/oai

Testing on https://oval.base-search.net/ I get the following

  • ERROR: Identify response contained a link to an invalid schemaLocation: http://oai.dlib.vt.edu/OAI/metadata/toolkit.xsd
  • ERROR: No incremental (full granularity) harvesting of ListRecords. Harvest for reference date 2023-10-23T13:22:17Z returned record with date 2023-10-23T13:20:04Z.

Validating using https://validator.oaipmh.com/ I get one warning

  • Content type text/xml;charset=utf-8

Doing curl https://www.sajas.co.za/oai?verb=ListRecords&metadataPrefix=oai_dc I get

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.sajas.co.za/lib/pkp/xml/oai2.xsl" ?>
2025-08-06T21:41:04Zhttps://www.sajas.co.za/oaiMissing metadataPrefix parameter

Thanks,
Nason

Hi @Nason_Bimbe,

You probably just need to quote the URL in the call to curl. I suspect the & is getting interpreted by the shell.

Regards,
Alec Smecher
Public Knowledge Project Team

The OVAL validator probably used https instead of http in http://oai.dlib.vt.edu/OAI/metadata/toolkit.xsd . The http link resolves correctly.

Thank you @asmecher and @mpbraendle for checking.

Nason

2 Likes

Hello,

Just want to report that we managed to resolve the problem. Background is that BASE were being blocked, something I could not work out. However adding to VirtualHost

<Location "/oai"> Require all granted </Location>

Seems to have solved the problem but not convinced though that this was what solved it.

Thanks,

Nason

1 Like

This topic was automatically closed after 11 days. New replies are no longer allowed.