Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable identifier_field analagous to existing timestamp_field. #76

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

jrochkind
Copy link
Collaborator

@jrochkind jrochkind commented Aug 26, 2019

You may not always want it to be assumed to be id. Now it's customizable, like timestamp_field is.

And the ActiveRecordWrapper is enhanced to use it properly, so you can use a field other than your primary key for what gets turned into the oai-pmh identifier.

There is a limited tests of ActiveRecordWrapper using this new func with GetRecord. More tests would be good, but it's challenging with the current test architecture. Note that custom timestamp_field also has limited (possibly no?) testing, either in general or with ActiveRecordWrapper.

This change should be entirely backwards compatible.

@jrochkind did need this for his use case.

Ref #61

To be used for a feature I actually need in the ActiveRecordWrapper, and will implement there next.

Sorry, haven't figured out how to test this at present. The customizable timestamp_field does not seem to be tested either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant