emory-libraries / dlp-curate

Digital curation and preservation workbench for the Emory Preservation Repository.
11 stars 4 forks source link

View Fileset: blank or incomplete listing of files attached; pres. master file doesn't download #1755

Closed eporter23 closed 2 years ago

eporter23 commented 2 years ago

Describe the bug Our customized Files list showing all files attached to a fileset is not fully populated.

To Reproduce Steps to reproduce the behavior:

  1. Go to a fileset page, e.g. https://curate-arch.library.emory.edu/concern/parent/426m0cfxr5-cor/file_sets/054kkwh71x-cor
  2. Look at the Files section at the top right of the page
  3. See blank space or incomplete listing of files in the file list table. In this case, Intermediate File is listed but Preservation Master File is not populated. The preservation events listing, however, shows 2 files are attached to this set.
  4. Fileset thumbnail shows no preview available; download link doesn't work
  5. A user also cannot download the pres. master file from the View Work > Items list.

Expected behavior A table showing all the attached filenames, file use, etc should display. A preservation master file should display for all filesets unless there is a problem with ingest. A user should be able to see a preview of and download the preservation master file.

Same example in production: https://curate.library.emory.edu/concern/parent/238w9ghx6d-cor/file_sets/0106wwpzkf-cor

Screenshots If applicable, add screenshots to help explain your problem.

Arch

Screen Shot 2022-02-03 at 9.28.27 AM.png

Prod

Screen Shot 2022-02-03 at 9.31.17 AM.png

Additional context There have been discussions about the PCDM use vocabulary deprecating the term "preservation master file" - is this occurring here?

eporter23 commented 2 years ago

This issue seems to recur in 3.1, but on existing works created before the upgrade. Newly created works do show the preservation master file in the files table, and the file can be downloaded. Example of newly created work fileset: https://curate-test.library.emory.edu/concern/parent/095j9kd5b0-cor/file_sets/979h44j18r-cor

eporter23 commented 2 years ago

Example of fileset created in 2020 - shows 2 out of 3 files attached but not the preservation master file: https://curate-test.library.emory.edu/concern/parent/4300zpc8g9-cor/file_sets/713905qg5d-cor

eporter23 commented 2 years ago

Also, the same image noted in arch and prod above, in test with 3.1 shows no preservation master file: https://curate-test.library.emory.edu/concern/parent/238w9ghx6d-cor/file_sets/0106wwpzkf-cor

eporter23 commented 2 years ago

Checking the original example in Fedora at the file-level shows the file use is: http://pcdm.org/use#PreservationMasterFile. Newly created files have a use in Fedora called http://pcdm.org/use#PreservationFile.

eporter23 commented 2 years ago

Update: after discussion in Slack, I deleted and recreated the fileset in arch, but the files did not attach. This is probably a separate issue but wanted to note the original fileset link won't function in Curate. There are many other examples if needed.

eporter23 commented 2 years ago

The filesets for the same work in test are functioning as expected now and show the Preservation master file. https://curate-test.library.emory.edu/concern/parent/238w9ghx6d-cor/file_sets/0106wwpzkf-cor

eporter23 commented 2 years ago

Note for future testing: I reingested the batch of files that was run during the original testing so that they are now using the same PCDM term as the pre-upgrade files, so all the ingests should be in synch now.