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

IIIF: config changes #2360

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions invenio_app_rdm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,12 +914,12 @@ def github_link_render(record):

PREVIEWER_PREFERENCE = [
"csv_dthreejs",
"pdfjs",
"iiif_simple",
"simple_image",
"json_prismjs",
"xml_prismjs",
"mistune",
"pdfjs",
"ipynb",
"zip",
"txt",
Expand Down Expand Up @@ -947,12 +947,14 @@ def github_link_render(record):
"jp2": "jpeg2000",
"jpeg": "jpeg",
"jpg": "jpeg",
"pdf": "pdf",
"png": "png",
"tif": "tiff",
"tiff": "tiff",
}

RECORDS_RESOURCES_IMAGE_FORMATS = ["." + ext for ext in IIIF_FORMATS.keys()]
"""RECORDS_RESOURCES_IMAGE_FORMATS must contain all possible IIIF formats to ensure their metadata is extracted."""

# Invenio-Pages
# =============
# See https://invenio-pages.readthedocs.io/en/latest/configuration.html
Expand Down