Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Implement MIME type filtering for files in Helper class #1338

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

fschoelzel
Copy link
Contributor

  • switched from simple mime-type list to provided MimeTypeCollection list from TYPO3 Core
  • add filter method to helper class
  • custom key and category Parameter
  • add filter for images in ToolboxController and PageViewController
  • prevent download of files which are in mets:fileGrp USE="DEFAULT"

@sebastian-meyer sebastian-meyer added the ⚙ feature A new feature or enhancement. label Sep 20, 2024
Copy link
Member

@sebastian-meyer sebastian-meyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is great for the image download tool, will this still work for IIIF and IIP images? Those won't have an image/* MIME type, but something like application/*. The changes in PageView controller suggest that those images won't be displayed any more... Or am I missing something?

@sebastian-meyer sebastian-meyer marked this pull request as draft September 20, 2024 15:38
@fschoelzel fschoelzel force-pushed the helper-mimetype-filter branch 2 times, most recently from 33d0a78 to 4a61aea Compare October 11, 2024 15:22
- switched from simple mime-type list to provided MimeTypeCollection list from TYPO3 Core
- add filter method to helper class
- custom key and category Parameter
- add filter for images in ToolboxController and PageViewController
- prevent download of files which are in mets:fileGrp USE="DEFAULT"
@fschoelzel
Copy link
Contributor Author

I simplified the getImage Method and removed the redundancy.
Added Custom Dlf Mimetypes to the Helper Method.

@fschoelzel fschoelzel marked this pull request as ready for review October 15, 2024 15:51
@sebastian-meyer sebastian-meyer merged commit 2c350b2 into kitodo:master Oct 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙ feature A new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants