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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

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] and 1 guest