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

Mirador Test Previewer #2550

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

0einstein0
Copy link
Member

@0einstein0 0einstein0 commented Dec 11, 2023

❤️ Thank you for your contribution!

Description

Testing integration of Mirador Previewer

  • Needs updates - Do not merge

Closes Issue zenodo/zenodo-rdm#819

Depends on: #2652

Screenshot 2024-04-18 at 11 30 59

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

Copy link
Contributor

@ntarocco ntarocco left a comment

Choose a reason for hiding this comment

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

Was it a deliberate choice to add the Mirador previewer here, and not in invenio-previewer? Is it because it requires the IIIF endpoints?

I added a few comments ☺️

invenio_app_rdm/records_ui/previewer/mirador.py Outdated Show resolved Hide resolved
invenio_app_rdm/records_ui/previewer/mirador.py Outdated Show resolved Hide resolved
@@ -10,7 +10,7 @@
#}


{%- macro preview_file(preview_endpoint, pid_value, filename, is_preview, include_deleted, id='preview-iframe', width='100%', height='400' ) %}
{%- macro preview_file(preview_endpoint, pid_value, filename, is_preview, include_deleted, id='preview-iframe', width='100%', height='800' ) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

we are changing the default height for all previewers here, not only Mirador. Is this what we want?

Copy link
Member

Choose a reason for hiding this comment

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

400px is pretty small, so making it bigger for everyone might be something desirable. See e.g. https://new-cds.cern.ch/records/fp18d-jc149:

image

We have to be a bit careful on mobile though, it's a bit difficult to touch/scroll at the right place to get past the previewer:

image

We should probably rewrite to use CSS classes for styling, with 80vh or similar (that way anyone can override also on their instance).

README.rst Outdated Show resolved Hide resolved
Copy link
Contributor

This PR was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Feb 13, 2024
@0einstein0 0einstein0 added enhancement New feature or request and removed stale No activity for more than 60 days. labels Apr 18, 2024
@0einstein0 0einstein0 linked an issue Apr 18, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finalize Mirador 3 JS distribution
5 participants