hyrax
hyrax copied to clipboard
Val MVP: Create Hyrax::FileSet as a valkyrie resource through UI
Descriptive summary
As part of the Valkyrization MVP, a user should be able to add a file to a work through the UI with the underlying code processing the file metadata as a Hyrax::FileSet
.
Rationale
Part of the basic Valkyrization MVP for testing the progress of the valkyrization effort.
Steps to reproduce the behavior
- Login to nurax-pg
- Dashboard -> Works -> Add new work
- Select any Work Type (They are all Valkyrie Resources on nurax-pg.)
- Fill in required metadata
- Add a file
- Save
The work should be created, the file should be added, and the show page for the work should include the file in the list of files. Clicking the title of the file should display the file set page with file metadata.
Related work
See all work tagged with Milestone Valkyrization MVP
When I create a new work and attach a file, after saving, it said "The work does not have a file" at the bottom, but actually the file is added to the work.
When testing on nurax-pg, the work is created, but the file does not appear in the file list on the work show page.
Example: https://nurax-pg.curationexperts.com/concern/generic_works/84b2019f-5a84-4e7e-b2f7-3c75b7e63a1a?locale=en
File sets now appear in the Items list, but cannot be downloaded. When I click on the fileset URL, I get a "You are not authorized to access this page" message.
Example work: https://nurax-pg.curationexperts.com/concern/images/5c2c56d1-7bf8-4299-b97f-237f8e9c989b?locale=en
Retested and download links now display on the work show page. However, thumbnails and the image viewer do not load.
Also, when I click on the "Download image" link, I get a "ActiveFedora::ObjectNotFoundError in Hyrax::DownloadsController#show" error message.
I am still unable to download files as described in https://github.com/samvera/hyrax/issues/5136#issuecomment-1047183433
Closing this epic issue to focus on the smaller issues that remain to complete the FileSet work.