Releases: OJSBR/epubJsViewer
Releases · OJSBR/epubJsViewer
Release list
epubJsViewer 1.2.0.4
Added
- Unit tests (
tests/EpubJsViewerPluginTest.php): EPUB detection by mimetype and
by file extension, rejection of every other format, and locale integrity —
all 38 locales carry every key with no empty value, no legacy locale code is
present, and every key used in a template exists inlocale/en. - Cypress specs (
cypress/tests/functional/EpubJsViewer.cy.js): enabling the
plugin, an EPUB opening in the reader instead of downloading, and paging, zoom
and the way back. The specs discover the content instead of hard-coding an id,
so the same file runs on OJS, OPS and OMP; they were executed against both an
OJS 3.5 and an OMP 3.5 installation. - A live demo link in the README.
Changed
- The rule that decides whether the plugin takes over a file was extracted into
EpubJsViewerPlugin::isEpubFile(), a pure static that takes the mimetype, the
name and the path. Behaviour is unchanged; it is now coverable without booting
the application.
1.2.0.3
1.1.0.1
Add the 38-locale PKP standard set and fix legacy locale codes
1.1.0.0
EPUB.js Viewer 1.1.0.0 — embedded EPUB galley reader for OJS 3.5 Continues the epubViewer plugin by Lepidus Tecnologia, discontinued in 2025 because the Bibi reader was no longer maintained. The reading engine is replaced by epub.js (FuturePress), which is actively maintained; the idea and the OJS integration follow the original. Built because journals that already had published EPUB galleys and upgraded to OJS 3.5 were left with no embedded reader at all. Published for the whole community, since any OJS 3.5 journal with EPUB galleys has the same problem. - article, issue and preprint galley hooks (OJS and OPS) - text zoom 70-250 percent, reflowing rather than scaling pixels - table of contents read from the EPUB itself - reading modes: two pages, single page, continuous scroll - zoom and reading mode remembered across articles and visits - epub.js 0.3.93 and JSZip 3.10.1 vendored, no CDN - EPUB rendered with allowScriptedContent disabled - locales: de, en, es, fr_FR, it, pt, pt_BR