Skip to content

Commit

Permalink
OAI-PMH: set resumptionToken as empty for completed result sets (geop…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 8, 2024
1 parent 6e468f7 commit ed8b1bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pycsw/oaipmh.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ def response(self, response, kvp, repository, server_url):
cursor = str(int(complete_list_size) - int(next_record) - 1)

resumption_token = etree.SubElement(verbnode, util.nspath_eval('oai:resumptionToken', self.namespaces),
completeListSize=complete_list_size, cursor=cursor).text = next_record
completeListSize=complete_list_size, cursor=cursor)

if int(next_record) > 0:
resumption_token.text = next_record

return node

def _get_metadata_prefix(self, prefix):
Expand Down

0 comments on commit ed8b1bc

Please sign in to comment.