Add epubJsViewer 1.2.0.4 for OJS and OMP 3.5 - #527
Open
edersotto wants to merge 1 commit 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 EPUB.js Viewer 1.2.0.4, a generic plugin that opens EPUB galleys (OJS) and EPUB publication formats (OMP) in the browser instead of handing the reader a download.
See it running
Editora UEMG, a live OMP 3.5 installation:
No login needed.
Credit where it belongs
This is a continuation of the original
epubViewerplugin by Lepidus Tecnologia, which served Brazilian journals for years and was discontinued in 2025 because the Bibi reader by Satoru Matsushima stopped being maintained. The idea and the OJS integration are theirs. What changed is the reading engine: epub.js by FuturePress, which is still maintained.Why this one
Without a reader, an EPUB is a download. The reader leaves the site, and whether the file opens at all depends on what happens to be installed on their device — which, for a phone, is often nothing. The gallery currently lists no EPUB reader for 3.5.
One plugin, two applications
The same code serves both, branching on
Application::get()->getName():ArticleHandler::view::galleyandIssueHandler::view::galleyCatalogBookHandler::viewBoth were verified by running the Cypress suite against a real 3.5 installation of each: an OJS 3.5.0-3 and an OMP 3.5.0-5. OPS shares the OJS code path (
PreprintHandler::view::galleyis registered), but we have not run it against an OPS installation, so it is not declared in the compatibility list here.Packaging
ApplicationPluginssuite, covering EPUB detection by mimetype and by extension on the name or the stored path — the extension has a vote because not every upload arrives with the right mimetype — and locale integrity: every locale carrying every key with no empty value, no legacy locale codes, and every key used in a template present inlocale/en.Checks run before opening this
xmllint --schema ./plugins.xsd ./plugins.xml --noout— validates.0a8d70a74e43214604abb8a8c41e9f61).epubJsViewer/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.