Dear Jindrich,

Jindrich Dolansky wrote:
I have a particular problem with harvesting of a specific OAI repository (http://www.vse.cz/oai/). Although I have tried to find a solution with the local administrator, the same error message reappears within the corresponding bibsched_task.err file: "Starting the harvesting session at 2010-03-30 13:47:29 --> www.vse.cz <http://www.vse.cz> - verb=ListRecords&set=100&metadataPrefix=oai_dc
200(OK) : OK : verb=ListRecords&set=100&metadataPrefix=oai_dc

An explanation can be found here:
<http://cdsware.cern.ch/lists/project-cdsware-users/archive/msg01030.shtml>

A workaround would be to modify the default behaviour of BibHarvest (or
OAI Harvest as it is called in latest versions) to use default mode GET.

For eg, edit /opt/cds-invenio/lib/python/invenio/bibharvest.py to change
default value for parameter "method" of function harvest(..) (line 154)
to be "GET" instead of "POST":

<http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blob;f=modules/bibharvest/lib/bibharvest.py;h=33bc66c557296dcf12c0972536e04a9fb29516a5;hb=c99ca13c8537a12a841b4850d0b573d4ae7a80d7#l154>

- def harvest(server, script, http_param_dict, method="POST", output="",
-            stylesheet="", sets=[]):
+ def harvest(server, script, http_param_dict, method="GET", output="",
+            stylesheet="", sets=[]):

I will add a task to add an option to choose the method when setting up
a source repository.

Best regards
--
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to