Open amyehodge opened 3 years ago
A few notes on this issue:
The content type determines the type of viewer that gets displayed on the purl, and that instruction (to display the viewer) is followed even if the chosen viewer doesn't support the file formats contained in the object. For example, the image viewer will display for content type image regardless of whether an object has any image files that the viewer supports. If the format isn't supported, the user will see an error in the viewer.[1]
Even with supported file formats, there are complications around mixed media content: text and images, text and video, etc. In some cases, one file format will display in the viewer and the others will be available using the download button. There may not be an indication that the download-only files exist outside of the display that you see when clicking on the download button.
Ideally, to make content type support work for self-deposit we need:
[1] Note that SDR does support creating derivative JP2 image files that will work in the viewer. This takes place in the assemblyWF, which the SDR API currently skips. Derivative creation can run into errors, especially with files that weren't created to the specs used in the imaging lab, so there's a risk that sending self-deposit files through jp2-create will delay deposits while someone tries to work out the errors.
@hannahfrost I wanted to be sure you saw @andrewjbtw 's comments above.
@amyehodge the item https://sul-h2-qa.stanford.edu/works/42 (as well as https://sul-h2-qa.stanford.edu/works/43) was given the type "data", so it gets a file type for display purposes.
ww = Work.find(42)
ww.work_type
# => "data"
I suspect if you set the type to "Media" you'll get the display you're looking for.
Thanks, @amyehodge and @andrewjbtw. As I suggested in the H2 planning meeting today, let's plan to revisit this requirement down the road a piece, after Hydrus migration to H2.
kj651xq2913 (https://sul-h2-qa.stanford.edu/works/42) was deposited with an image file, but it displays as a normal file on the purl, not as an image. See https://sul-purl-stage.stanford.edu/kj651xq2913. Metadata matches with this behavior. See https://argo-qa.stanford.edu/view/druid:kj651xq2913
`
`
I also tested one with video: nf978bf5719 (https://sul-h2-qa.stanford.edu/works/43). Displays as file on PURL: https://sul-purl-stage.stanford.edu/nf978bf5719 Similar to metadata as the one above: https://argo-qa.stanford.edu/view/druid:nf978bf5719
`
`
Background: I have a note that Justin indicated at our meeting on the 24th when we were reviewing the Hydrus feature list that I should test to see if image/video/audio files are being treated like they are in other workflows — in other words, not just as files.