code4lib / ruby-oai

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

Q: provider, use with ActiveRecord::Wrapper #58

Closed jrochkind closed 4 years ago

jrochkind commented 4 years ago

I see there is the convenient ActiveRecord Wrapper for providing OAI-PMH based on AR models.

But it's somewhat under-documented for my needs. It's not clear to me how I define what serialization formats are available (like even oai_dc), or how it turns an AR model into that serialization. It is not clear to me how you provide 'sets'. The ActiveRecord Wrapper isn't mentioned in the README, so it's only by looking around at all the source that I even happened to notice it was available.

If you have any hints for me, that would be helpful! Either way, I am going to try to figure it out -- and maybe submit a PR with more documentation based on what I've figured out, does that seem welcome?