miku / metha

Command line OAI-PMH harvester and client with built-in cache.
http://web.archive.org/web/20230324034632/https://lab.ub.uni-leipzig.de/en/metha/
GNU General Public License v3.0
118 stars 13 forks source link

Urlencode resuptionToken #23

Closed justinkelly closed 2 years ago

justinkelly commented 2 years ago

Firstly, thanks for the amazing project!!

1 issue I have is that 1 of the OAI feeds includes un-escaped characters in the resumptionToken

Unescaped + - this url doesn't work

https://rosetta.slv.vic.gov.au/oaiprovider/request?resumptionToken=20210901000000@20210926235959@Primo@oai_dc@AAAWxpABYAAALK+AAU&verb=ListRecords

Escaped + - this url does work

https://rosetta.slv.vic.gov.au/oaiprovider/request?resumptionToken=20210901000000@20210926235959@Primo@oai_dc@AAAWxpABYAAALK%2BAAU&verb=ListRecords

Is there a way to escape the resumptionToken with metha ?

Cheers

Justin Kelly

justinkelly commented 2 years ago

patch to fix this problem has been submitted in pull request #24

miku commented 2 years ago

Thanks for the report - and fix!