-
Notifications
You must be signed in to change notification settings - Fork 43
[BUGFIX] Move fullscreen to own section #1531
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
[BUGFIX] Move fullscreen to own section #1531
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think simply moving the zoom and rotation buttons to their own section isn't sufficient. It still means that users of Kitodo.Presentation would have to add custom CSS in order to make sure, the zoom/rotation section is not visible in MultiView mode (which isn't even documented).
Instead, the template should only render the zoom/rotation section if the MultiView mode is not active. I suggest introducing a variable in the controller which can be used in the template to distinguish between MultiView and SingleDocument view and render the buttons accordingly.
Maybe we don't even need a new variable. Isn't there an URL parameter always set if MultiView is active? |
Yes, there is the multiview parameter, which is also written to gp-multiview via Typoscript in the dfg-viewer extension: The parameter would then also have to be configured for Kitodo.presentation. Then it should also be available in the template, right? |
I tested a version with your branches of all three extensions, and the buttons are still displayed. What was the plan behind changing the fullscreen mode to a separate section without hiding the other sections?
Yes and no. Currently, the condition to show Perhaps we could unify these condition variants in the PageViewController (see here) and use a dedicated template variable from there. Maybe the existing Is it actually correct to render the single view when docArray is empty? I think not. Instead of relying on a |
bcbbe52
to
292c886
Compare
The MultiView parameter is now also available in the navigation plugin and is checked accordingly in the templates. The buttons should no longer be displayed in multi-view mode.
Does this mean that there are documents that neither contain pages nor reference documents? |
There are no documents without pages or referenced documents, but there should be a way to enable an empty multiview grid (and then add documents manually). I am not sure if that's what @markusweigelt is refering to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working on my end! I encountered an issue due to missing documents, but that has been resolved in this pull request: #1581
So if you’d like to retest, please merge the PR. The issue was caused by missing documents, which throws an exception before you can test the current PR.
Thanks for testing and the additional bugfix! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1531 +/- ##
============================
============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR to fix #1489
There are also changes in slub_digitalcollection and dfg-viewer.