readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
553 stars 186 forks source link

Table of Contents (ToC) from Google Docs generated EPUB fails in Chrome Extension #543

Closed becka11y closed 8 years ago

becka11y commented 8 years ago

An EPUB that I exported from Google Docs views in the Chrome Extension but I can't navigate to a section using the table of contents. This works in the Cloud Reader from my EPUBS specified directory.

This issue is a Bug

Expected Behavior

When I open the ToC and click on an item I expect that part of the document to be loaded / brought in focus.

Observed behavior

The document is not updated and the spinner will continue to spin until I scroll the document (I have the document in continuous scroll mode so the images will view better).

Steps to reproduce

  1. Download http://www.weba11y.com/Examples/EPUBS/ReadiumAccessibility.epub locally
  2. Open the Readium Chrome Extention
  3. Click the Add to Library Toolbar button
  4. Select From Local File and use choose file to navigate to the location where you downloaded ReadiumAccessibility.epub
  5. Press Add to Library
  6. Find the Readium Accessibility book in your library and click on it to open
  7. Open the Table of Contents
  8. Click on an item - the spinner just spins but that part of the document is never made visible. FWIW I was using Continuous scroll mode so the images would display better.

I also tried unpacking the directory and using that option in the Add to Library dialog but I got the same results.

Test file(s)

http://www.weba11y.com/Examples/EPUBS/ReadiumAccessibility.epub

Product

latest official version available from the Chrome Web Store - 2.23.0 Version of the Chrome browser - Version 51.0.2704.103 (64-bit) OS and version - OS X 10.11.5 Toc Navigation WORKS in Readium cloud reader app Readium cloud reader app 2.24.0-alpha Wed, 15 Jun 2016 15:16:04 GMT readium-js-viewer@39939d8 readium-js@b32f9eb readium-shared-js@91324db readium-cfi-js@a9b07a7 Browser and version - Safari Version 9.1.1 (11601.6.17) OS and version - OS X 10.11.5

Additional information

This DOES work in a version of the Cloud Reader running on a local web server with the EPUBS directory also on my local server. I exploded the .epub and added the info to the .odps file. The Table of Contents also does NOT work in Daniel's page to load google epub docs into the firebase version of Readium. Link to starting page: https://dl.dropboxusercontent.com/u/585153/google-docs_epub-export_readium.html Linke to google doc: https://docs.google.com/document/d/1ml1YvP7DOC4AOeVhwaeWikTO7GBAAP_9FTu74ttlvo0/

becka11y commented 8 years ago

This has nothing to do with google generated EPUBS but is a bug in how items are loaded via the table of contents. I opened #549 and am closing this one.