hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

batch add new works doesn't add new works

Open rjkati opened this issue 3 years ago • 4 comments

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

  1. Make sure that "batch upload" is enabled on nurax-pg.
  2. Navigate to the Works page on the dashboard. Make note of the number of works on your dashboard
  3. Click the "Create batch of works" button and select "generic work" or "monograph"
  4. Upload several files and fill out the required metadata
  5. Check the deposit agreement box and click Save.
  6. Observe that the number of works that are listed on your dashboard has not changed and the works added via batch don't appear.

rjkati avatar Feb 22 '22 20:02 rjkati

This issue is still present on pg.nurax (Hyrax 4.0.0.rc2)

rjkati avatar May 24 '23 12:05 rjkati

We're working on trying to get instructions on enabling bulk upload.

tpendragon avatar Aug 21 '23 17:08 tpendragon

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

eliotjordan avatar Sep 07 '23 20:09 eliotjordan

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.

dlpierce avatar Sep 14 '23 23:09 dlpierce