php-sru-client
php-sru-client copied to clipboard
Not existing optional record element recordPosition leads to exception
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 Do you have any public SRU URL (or better: a full request URL), to test with? KR
https://kalliope-verbund.info/sru?version=1.2&operation=searchRetrieve&query=ead.repository.isil=DE-1a&ead.modificationdate.normal%3E=20200501&recordSchema=dc