curationexperts / epigaea

A MIRA replacement running on Hyrax 2.0
Other
1 stars 2 forks source link

BATCH IMPORT: Create Batch of works button fails #641

Closed mark-dce closed 6 years ago

mark-dce commented 6 years ago

STEPS TO REPRODUCE

  1. Login as an administrator
  2. Go to the admin dashboard
  3. Click on the "Works" link in the left
  4. Click on "Create batch of works" button
  5. Select "Audio" and click on "Create Work"

EXPECTED BEHAVIOR I should probably be take to the new object import page when I click "Create batch of works"

ACTUAL BEHAVIOR I get an error

little9 commented 6 years ago

@mark-dce @no-reply @bess this is because Hyrax has form class that BatchUploadForm inherits from that has its own set of metadata terms that is different from ours:

https://github.com/samvera/hyrax/blob/8e785de57f474629ce8757859628800626984bea/app/forms/hyrax/forms/work_form.rb#L24

I'm not sure the best way to override this stuff

little9 commented 6 years ago

Nevermind, I got it.

val99erie commented 6 years ago

Re-opening issue after some discussion on slack. Expect a new PR soon

no-reply commented 6 years ago

@mark-dce can you confirm that this is closed by #684?

mark-dce commented 6 years ago

Yes, this looks sufficient. As a bonus, it pretty much replaces what Tufts used to have as "Template Import" functionality - load a bunch of files as individual objects and give them the same descriptive metadata. Thanks @little9 and @no-reply