Filter non-displayable file sets from v3 manifests#7349
Open
Filter non-displayable file sets from v3 manifests#7349
Conversation
This commit will adjust `IiifManifestPresenter#file_set_presenters` to only send IIIF resources to the IIIF Manifest gem. So now, for example, if there's a work with an image file set and a text file set, the IIIF Manifest gem won't try and make a canvas for the text file. The other option was to make a commit to the IIIF Manifest gem to check if the resource responds to #display_image or #display_content but I figure catching it early is not a bad idea. Additionally, `IiifManifestPresenter#sequence_rendering` now looks up file sets from `member_presenters` instead of `file_set_presenters`, since rendering/downloads should be available for all file sets, not just IIIF-displayable ones.
Test Results 13 files ±0 13 suites ±0 2h 50m 48s ⏱️ - 5m 8s Results for commit 722e8b8. ± Comparison against base commit 18f4997. This pull request removes 367 and adds 368 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screenshots
Before
After
Summary
Fix IIIF V3 Manifest with mix media (IIIF-displayable and non-IIIF-displayable).
Guidance for testing, such as acceptance criteria or new user interface behaviors:
Since V3 Manifests is not configured on nurax we can trigger a V3 manifest with a video work
Type of change (for release notes)
notes-bugfixBug FixesDetailed Description
Filter non-displayable file sets from v3 manifests
722e8b8
This commit will adjust
IiifManifestPresenter#file_set_presenterstoonly send IIIF resources to the IIIF Manifest gem. So now, for example,
if there's a work with an image file set and a text file set, the IIIF
Manifest gem won't try and make a canvas for the text file. The other
option was to make a commit to the IIIF Manifest gem to check if the
resource responds to #display_image or #display_content but I figure
catching it early is not a bad idea.
Additionally,
IiifManifestPresenter#sequence_renderingnow looks upfile sets from
member_presentersinstead offile_set_presenters,since rendering/downloads should be available for all file sets, not
just IIIF-displayable ones.
Changes proposed in this pull request:
IiifManifestPresenter#file_set_presentersto only send IIIF resources to the IIIF Manifest gem@samvera/hyrax-code-reviewers