miku / metha

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

introduce in metha-sync cmd the -until argument #17

Closed ACz-UniBi closed 3 years ago

ACz-UniBi commented 3 years ago

Dear,

this is my first contribution to metha, to introduce the -until argument in the metha-sync command. The OAI-PMH, some examples at https://www.hindawi.com/open-archives-initiative/ , support this.

To retrieve an abbreviated form of List Records, retrieving only headers rather than records in a specified date range
https://www.hindawi.com/oai-pmh/oai.aspx?verb=listidentifiers&metadataprefix=oai_dc&from=2007-01-01&until=2007-11-01

Best, Andreas

miku commented 3 years ago

Thanks a lot for your PR! I released 0.2.18 which includes this addition.

The lack of this flag (until now) shows what metha was originally developed for: namely to just get all data (and to do that incrementally with a local cache) - so adding an -until flag never occurred to me.

PS. I'm just curious - do you have a specific use case for metha?

ACz-UniBi commented 3 years ago

Thank you for accepting the PR. In the same cases the repository has an issue in individual months, and to identify these issues it is good to have the from and until argument.