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

Fix file-preview #169

Merged

Conversation

martinobersteiner
Copy link
Collaborator

No description provided.

`invenio-app-rdm` isn't a dependency of ours,
hence we can't use their `PreviewFile` class

our `PreviewFile` also needs the `.record` attribute,
as that is used in a jinja-template of the iiif-previewer
a built resource-config is similar to an unbuilt one,
but may access the flask-app for computing some configs

`IIIFResourceConfig` requires `app` for computing its `.proxy` attribute
without this, image-preview was broken

other `ResourceConfig`s don't have known-to-me issues due to this yet,
but it might eventually be needed
so I also added `.build` for resource-configs other than the `IIIF` one
@martinobersteiner martinobersteiner merged commit 8287d9d into tu-graz-library:master Oct 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants