OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OAI validation failure with OJS 1.1.9

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

OAI validation failure with OJS 1.1.9

Postby rsshaw » Fri Jul 22, 2005 9:25 pm

I attempted to register my OJS 1.1.9 system as a OAI-PMH data provider (at http://www.openarchives.org/data/regist ... vider.html ). This involves a validation test. The test failed with these errors:

Validating the ListRecords response...not OK
error response to a valid request
Request:
http://www.genlit.org/agr/oai/?verb=Lis ... fix=oai_dc
Response:

<?xml version="1.0" encoding="UTF-8"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2005-07-21T23:53:58Z</responseDate>
<request from="2005-05-13T20:19:33Z" metadataPrefix="oai_dc"
until="2005-05-13T20:19:33Z"
verb="ListRecords">http://www.genlit.org/agr/oai/</request>
<error code="noRecordsMatch">No matching records in this
repository</error></OAI-PMH>

This is the way we do the ListRecords test:
First we get an identifier from ListIdentifiers
(oai:agr.www.genlit.org:article/2);
Then we get its record via GetRecord and note its datestamp
(2005-05-13T20:19:33Z);
Finally we do a ListRecords from and until that
datestamp and expect to get at least that record.

Testing formats other than oai_dc:
oai_marc: GetRecord&identifier=oai:agr.www.genlit.org:article/2 (2)
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'leader'. One of
'{"http://www.openarchives.org/OAI/1.1/oai_marc":fixfield}' is expected.(line
21,column 19)
marcxml: GetRecord&identifier=oai:agr.www.genlit.org:article/2 (3)
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'dataField'. One of
'{"http://www.loc.gov/MARC21/slim":controlfield,
"http://www.loc.gov/MARC21/slim":datafield}' is expected.(line 23,column 50)
rfc1807: GetRecord&identifier=oai:agr.www.genlit.org:article/2
Testing other formats yielded 2 error(s)

Number of bad verb responses: 1
Number of verbs responses that validated: 5
Total number of errors: 3


Eventually I was able to track down these errors to problems in the OJS OAI files functions.inc.php, marcxml.inc.php, and oai_marc.inc.php .

I'm posting this to make sure the OJS project is aware of these things, and in case anyone else runs into this.
rsshaw
 
Posts: 7
Joined: Tue Jan 25, 2005 6:23 pm
Location: Cupertino, Calif

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest