inveniosoftware / invenio-app-rdm

Turn-key research data management platform.
https://inveniordm.docs.cern.ch
MIT License
100 stars 144 forks source link

OAI doesn't respect `from` parameter #2153

Closed tmorrell closed 10 months ago

tmorrell commented 1 year ago

Package version (if known): v9-11

Describe the bug

The OAI-PMH endpoint ignores the from parameter

Steps to Reproduce

  1. Go to https://inveniordm.web.cern.ch/oai2d?verb=ListIdentifiers&metadataPrefix=oai_dc&from=2023-03-10&until=2023-03-20
  2. See that the first record is from January (outside of the expected range). Also note that from doesn't appear in the request line

The until parameter works as expected, and the same link works as expected in zenodo https://zenodo.org/oai2d?verb=ListIdentifiers&metadataPrefix=oai_dc&from=2023-03-10&until=2023-03-20

Expected behavior

from should filter the results

github-actions[bot] commented 1 year ago

This issue was automatically marked as stale.

tmorrell commented 10 months ago

Should be fixed with https://github.com/inveniosoftware/invenio-oaiserver/pull/235#event-10889377571