[Koha-bugs] [Bug 10974] New: OAI-PMH Resumption Tokens Do Not Handle Time
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 30 07:29:45 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10974
Bug ID: 10974
Summary: OAI-PMH Resumption Tokens Do Not Handle Time
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Web services
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
Currently, it is possible to retrieve 50 or so records from Koha via OAI-PMH,
when using times in your 'from' and 'until' arguments. Here is an example that
will return a list of records (if your OAI server syspref is turned on).
http://KOHAINSTANCE/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc&from=2012-09-05T13:44:33Z&until=2014-09-05T13:44:33Z
However, if you need to retrieve the rest of the results via a resumption
token, Koha won't return your results.
http://KOHAINSTANCE/cgi-bin/koha/oai.pl?verb=ListRecords&resumptionToken=oai_dc:50:2012-09-05T13:44:33Z:2014-09-05T13:44:33Z:
This is because Koha joins and splits the resumption token using colons.
Obviously, since the timestamps use colons, the string isn't going to be split
correctly.
I propose that we change the separator colons to slashes. This is the method
that DSpace uses when serving records via OAI-PMH. You can see an example here:
http://papyrus.bib.umontreal.ca/dspace-oai/request?verb=ListRecords&metadataPrefix=oai_dc
--
Note: Koha doesn't handle times 100% correctly in master either. That's why I
opened bug 10824.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list