hyrax
hyrax copied to clipboard
batch add new works doesn't add new works
Descriptive summary
On nurax-pg, I can complete the process to create a batch of works, but works do not display in my works list. It is not clear to me whether the deposit process has completed.
Acceptance Criteria
Make https://github.com/samvera/hyrax/pull/6266 pass tests.
Expected behavior
After creating a batch of works, each work should display in my works list on the dashboard. This should function for all work types.
Actual behavior
After creating a batch of works, works in the batch do not display in the works list on my dashboard
Steps to reproduce the behavior
- Make sure that "batch upload" is enabled on nurax-pg.
- Navigate to the Works page on the dashboard. Make note of the number of works on your dashboard
- Click the "Create batch of works" button and select "generic work" or "monograph"
- Upload several files and fill out the required metadata
- Check the deposit agreement box and click Save.
- Observe that the number of works that are listed on your dashboard has not changed and the works added via batch don't appear.
This issue is still present on pg.nurax (Hyrax 4.0.0.rc2)
We're working on trying to get instructions on enabling bulk upload.
Note: BatchCreateJob calls CreateWorkJob which creates non-Valkyrie works.
Probably need a new job and switch between the two. Something like:
if ActiveFedora::Base
CreateWorkJob.perform
else
CreateValkyrieWorkJob.perform
end
I am able to batch create GenericWorks in koppie, but this seems to not function for Monographs. I noticed the form shown does not match the regular monograph form and so the required field "Record Info" cannot be filled.