Add pdfFlipbook 0.3.0.3 for OMP 3.5 - #529
Open
edersotto wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds PDF Flipbook 0.3.0.3, a generic plugin for OMP 3.5 that offers a page-turning reading mode for PDF monographs.
See it running
Editora UEMG, a live OMP 3.5 installation:
No login needed.
What it does
A Flip through button appears next to every PDF on the book page and opens a full-viewport reader: two-page spread, page-turn animation, drag and keyboard navigation, zoom from 50% to 250%, full screen, and a link back to the ordinary PDF view.
Built on StPageFlip by Nodlik (MIT) and PDF.js by Mozilla (Apache-2.0). Both are vendored in the package — no request leaves the reader's browser to a CDN.
It never replaces the native viewer, and that is deliberate
The flipbook paints pages to
canvas: there is no text selection, no search and no screen-reader access. That is exactly why it is an alternative and never the default. The ordinary PDF link stays where it was and remains the primary click; the button is added beside it, and the flipbook links back.Pages are rendered lazily around the current spread with a bounded cache, so a long monograph does not have to load in full before the first page appears.
Packaging
ApplicationPluginssuite: the dispatch rule — only PDF, only with the parameter present, never EPUB, audio or an empty type — and locale integrity, including every key used in a template being present inlocale/en.On the version number
It is released as 0.3.0.3 rather than 1.0.0.0 because it is young — it has been running on a live installation, with the tests above, but for weeks rather than years. Say the word if you would rather it declare 1.0.0.0 before being listed.
Checks run before opening this
xmllint --schema ./plugins.xsd ./plugins.xml --noout— validates.4b8b916a88b1ddc5ad239c3f0dff546f).pdfFlipbook/directory.Notes
Submitted as
reviewed, following what other third-party plugins declare here. Happy to adjust anything in the entry if you would like it different.Updated to 0.3.0.3
The entry points at 0.3.0.3. Two rendering fixes since the version first submitted, both found while testing on a press whose books have chapters:
Templates::Catalog::Book::Details, and OMP callsTemplates::Catalog::Chapter::*there instead. Both are now registered..pub_format_*but not in a chapter list. It now copies the class list of the PDF link beside it, so it matches that link in any context and under any theme.