OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



The OAI verbs GetRecord and ListRecords give Error

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John

Forum rules
Feel free to post general inquiries about the PKP Here. We'll also post notes of interest from time to time. You may also want to check out the PKP blog.

The OAI verbs GetRecord and ListRecords give Error

Postby singhkarki » Thu Jan 09, 2014 2:32 am

hello,
Before harvesting the archive when i check the output of the oai verbs ListRecord and GetRecord, both give error:

parser error : PCDATA invalid Char value 31

Could you guide how can i give some instruction to PKP harvester's parser to ignore this character at this location.
singhkarki
 
Posts: 38
Joined: Fri Nov 29, 2013 3:28 pm

Re: The OAI verbs GetRecord and ListRecords give Error

Postby asmecher » Thu Jan 09, 2014 2:03 pm

Hi singhkarki,

You'd need to modify OHS to pre-filter the XML for invalid characters; better, I suspect, to see if it's possible to correct the data at the source.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8581
Joined: Wed Aug 10, 2005 12:56 pm

Re: The OAI verbs GetRecord and ListRecords give Error

Postby singhkarki » Wed Jan 15, 2014 8:21 am

hi Alec,
the PCDATA invalid char value 31 was for the hexadecimal character 001f .This hexadecimal character was enclosed within a square box.The php parser was not parsing it.
So i simply ran a sql query and replaced every instance of this hexadecimal character with ' ' . The ohs harvested the archive as soon as the character was replaced.
thanks for replying.

regards,

Vijay
singhkarki
 
Posts: 38
Joined: Fri Nov 29, 2013 3:28 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests