Bug 21109 - oai.pl returns invalid resumptionToken cursor
Summary: oai.pl returns invalid resumptionToken cursor
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: master
Hardware: All All
: P4 minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 21102
  Show dependency treegraph
 
Reported: 2018-07-24 00:20 UTC by Pablo AB
Modified: 2018-07-24 00:20 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo AB 2018-07-24 00:20:22 UTC
Tested with https://github.com/zimeon/oaipmh-validator
and curl -s "baseURL?verb=ListRecords&metadataPrefix=oai_dc" | xmllint --format - | grep resumptionToken

### Checking for correct use of resumptionToken (if used)
REQUEST: baseURL?verb=ListRecords&metadataPrefix=oai_dc GET
FAIL:    A cursor value was supplied with the resumptionToken but it did not have the correct value zero for the first response. The value was '50'.

This value is OAI-PMH:MaxCount syspref.

_cursor_ indicate the number of previous replies have already delivered: "cursor -- a count of the number of elements of the complete list thus far returned (i.e. cursor starts at 0)."
See https://www.openarchives.org/OAI/openarchivesprotocol.html#FlowControl
See https://www.openarchives.org/OAI/2.0/guidelines-harvester.htm#resumptionToken