Skip to content

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

@tomwrobel

Description

@tomwrobel

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)?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions