Better support for ZIP and other container files#106
Open
mesemus wants to merge 2 commits intoinveniosoftware:masterfrom
Open
Better support for ZIP and other container files#106mesemus wants to merge 2 commits intoinveniosoftware:masterfrom
mesemus wants to merge 2 commits intoinveniosoftware:masterfrom
Conversation
cf15a4f to
6e4518a
Compare
6e4518a to
084fead
Compare
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.
Description
This PR proposes a way of adding support for preview/extraction of files inside ZIP and other container files.
Terminology:
Fileis reserved for files stored in Invenio, such as blah.zipContaineris a file like ZIP, TAR, HDF5 and othersContainer itemdenotes a file stored inside a container, such as an image inside a ZIP.Associated pull requests with implementation of this RFC:
Rendered markdown of this RFC
invenio-records-resources - definition of extraction interface, and REST api for container listing and container item extraction
invenio-previewer which provides the configuration of previewable items inside container files
invenio-rdm-records which provides the concrete implementation of this API for ZIP archives
invenio-app-rdm enabled support in the UI for previewing/downloading of container items (files/folders) by creating a new independent zip previewer
Sample repository
A sample repository is available at https://github.com/xsenyaaax/invenio-demo-zip
Current status
Preview of files within the ZIP archive works for all built-in previewers except of IIIF. For images, a simple image previewer might be used.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: