code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 43 forks source link

oai-pmh identifiers use colon to separate namespace and id, not slash #73

Closed jrochkind closed 5 years ago

jrochkind commented 5 years ago

This is in conformance with oai-pmh non-mandatory guidelines

It also matches how sample identifier in 'Identify' was being generated before. https://github.com/code4lib/ruby-oai/blob/23e3ac83c43231fbf55f8dfb70175dbe0975b914/lib/oai/provider/response/identify.rb#L24

It was a bug that sample identifier didn't match actual identifiers. Hypothetically, it would have been less backwards-incompat to make sample identifier use slash, as the Guidelines saying to use colon are not mandatory, it is legal.

But let's use the 1.0 release to make this conform to oai-pmh guidance.

Especially becuase the majority of current users of this gem are probably using it via blacklight_oai_provider, and it was already providing runtime patches to the oai gem to get colon behavior, and had a commit message suggesting it believed it was patching an "identifier bug in oai gem." So let's fix the thing our main user thinks was a bug, for the 1.0 release!

Closes #38 Ref #61