php-sru-client icon indicating copy to clipboard operation
php-sru-client copied to clipboard

Not existing optional record element recordPosition leads to exception

Open cKlee opened this issue 2 years ago • 2 comments

SRU version 1.2 defines the record element recordPosition as optional.

Im my case this element is missing in the response. This leads to the exception:

Fatal error: Uncaught Scriptotek\Sru\Exceptions\InvalidResponseException: Wrong index of first record in result set. Expected: 1, got: 0

Is there a way around this? I'm not comfortable to suggest any change in your code.

Thanks!

cKlee avatar Jun 13 '23 11:06 cKlee

@cKlee Do you have any public SRU URL (or better: a full request URL), to test with? KR

sommer-gei avatar Jul 19 '23 11:07 sommer-gei

https://kalliope-verbund.info/sru?version=1.2&operation=searchRetrieve&query=ead.repository.isil=DE-1a&ead.modificationdate.normal%3E=20200501&recordSchema=dc

cKlee avatar Jul 31 '23 12:07 cKlee