Skip to content

Releases: internetarchive/bookreader

3.0.6

09 Mar 02:19
Compare
Choose a tag to compare

Another fix for plugin.search.js. The path GET param should not have a trailing slash.

3.0.5

08 Mar 07:56
Compare
Choose a tag to compare

Fixes issue where search results were not rendered on page flip.

3.0.4

06 Mar 02:20
Compare
Choose a tag to compare
  • Hotfix for plugin.search.js. Fixes fulltext search for some books on Archive.org

3.0.3

03 Mar 00:41
Compare
Choose a tag to compare
  • Add options: showToolbar, showLogo
  • Add this.options field, which stores the options last used in setup call
  • Improve _getDataFlattened to have simple cache breaker
  • Fix: don't show search UI if this.enableSearch is false
  • Fix: add missing 'defaults' option to search plugin
  • Move constants out of instance, and into class (eg BookReader.constMode1up)

3.0.2

02 Mar 02:09
Compare
Choose a tag to compare

3.0.2

In the process of upgrading IA, to use the new BookReader API, more changes/fixes were made.

  • Separate default options into BookReader.defaultOptions. Also add BookReader.optionOverrides. These allow clients which use Internet Archive's JSIA endpoint (see demo-ia-plato.html) to have hooks into changing options. Also update plugins, to extend defaultOptions instead of modifying options in setup functions.
  • Add BookReader.version, which helps IA support older versions in the JSIA endpoint (eg https://archive.org/bookreader/BookReaderJSLocate.php?id=theworksofplato01platiala&subPrefix=theworksofplato01platiala).
  • Bring some IA-specific code into plugin.chapters.js
  • Add more options that were previously missed (protected, olHost, subPrefix, bookPath, zip, imageFormat, bookId). These are mostly for plugins. If you intend on using any of the plugins, you can see the full config options there.

3.0.1

01 Mar 01:51
Compare
Choose a tag to compare
  • Fixes issue setting info and share dialogs

3.0.0 - Major Release

01 Mar 01:13
Compare
Choose a tag to compare

Version 3.0.0 is an effort to make BookReader more modular, extensible, and easier to use.

Changes include:

  • Make BookReader easier to use, by adding options to the constructor, and adding new options.data option. The old way of overriding properties should still work, but it is deprecated. With options.data, all BookReader needs is the image URLs and dimensions. To have dynamic image URLs (eg for scaling), omit the URL from options.data, and include options.getPageURI.
  • Factor out extra features into plugins. See plugins directory. Example plugins include:
    • plugins.chapters.js - render chapter markers
    • plugins.search.js - add search ui, and callbacks
    • plugins.tts.js - add tts (read aloud) ui, sound library, and callbacks
    • plugins.url.js - automatically updates the browser url
    • plugins.resume.js - uses cookies to remember the current page
    • plugins.mobile_nav.js - adds responsive mobile nav to BookReader
      Note that there is minor overhead added when loading multiple script tags. If this is a concern, a build step, can be used to concatenate the files into a single JS file.
  • Clean up code: Remove a lot of commented-out code. Remove some unused methods.
  • Change some, but not all, CSS ids to classes.
  • DEPRECATED: Use options to configure BookReader. It is now deprecated to change properties directly.
  • DEPRECATED: CSS ids are being removed, (eg #BookReader is now .BookReader), with the goal to entirely use classes instead. This is in progress, but it is considered deprecated to use the ids directly. We would like to remove all ids for the next major release.
  • BREAKING: If features that are now in plugins were used, the plugin's JS file will need to be included as well. Note, we would also like to separate the CSS into a separate file for the next major release.

2.1.0

20 Feb 20:19
Compare
Choose a tag to compare

2.1.0

  • Add auto mode to 1up autosize (in addition to height and width)
  • Remove the old responsiveAutofit (which is not needed anymore)

2.0.2

01 Feb 22:55
Compare
Choose a tag to compare

2.0.2

  • Fix regex issue when searching
  • Make the search api endpoint configurable

2.0.1

04 Aug 01:03
Compare
Choose a tag to compare
Merge pull request #54 from internetarchive/npm-package

Npm package