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

Prevent works with 'Draft' status from appearing in OAI-PMH feed #175

Open
tomwrobel opened this issue Feb 11, 2020 · 1 comment
Open

Prevent works with 'Draft' status from appearing in OAI-PMH feed #175

tomwrobel opened this issue Feb 11, 2020 · 1 comment
Assignees
Labels

Comments

@tomwrobel
Copy link
Collaborator

tomwrobel commented Feb 11, 2020

As a result of #174 , we know that failed deposits will leave draft works in ORA4 SYMP. No link between the Oxris and Hyrax objects has yet been created as this point (this is shown by the fact that redeposit creates a new item in Hyrax).

However, if the abandoned 'Draft' object is harvested, it may well appear in the Oxris record following harvest (the metadata will, after all, be close enough for a match in most cases).

I propose that we amend the OAI-PMH feed to ignore works with only a "Draft" status? In theory, we can add a record_filter to oai_config.rb as follows

record_filters: [
  '-workflow_state_name_ssim:"draft"'
]

Question to @mrdsaunders: Will this leave any objects in the lurch (e.g. those affected by #172)?

@mrdsaunders
Copy link
Collaborator

Hi Tom

Is workflow_state_name_ssim:"draft"' related to record_review_status?

Either way I don't think it will leave any in the lurch - assuming of course that the only 'draft' objects affected are these ones that have failed deposit.

To check I understand the situation, if we were to filter out the harvest of these 'drafts':
Pros:
If it was redeposited, prevents the creation of a duplicate ORA record.
Cons:
Fails to harvest data that was entered in good faith (but deposit failed)

Correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants