hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Val MVP: Create Hyrax::FileSet as a valkyrie resource through UI

Open elrayle opened this issue 3 years ago • 4 comments

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

  1. Login to nurax-pg
  2. Dashboard -> Works -> Add new work
  3. Select any Work Type (They are all Valkyrie Resources on nurax-pg.)
  4. Fill in required metadata
  5. Add a file
  6. 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

elrayle avatar Sep 23 '21 14:09 elrayle

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.

MPLSFedResearchTZ avatar Nov 02 '21 14:11 MPLSFedResearchTZ

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 nofiles

rjkati avatar Nov 05 '21 17:11 rjkati

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 file_sets

rjkati avatar Feb 21 '22 19:02 rjkati

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

downloadImage

hyraxdownloadscontroller

rjkati avatar Mar 21 '22 19:03 rjkati

Closing this epic issue to focus on the smaller issues that remain to complete the FileSet work.

jlhardes avatar Aug 12 '22 14:08 jlhardes