Closed iisa closed 9 months ago
It's caused by the page number not being set (currentIndexL) prior to making the call. then it gets an NaN for indexing an array and we see this issue. It looks like either there needs to be a default value, this initial case has to be accounted for, or the order of the operations need to change ... I'll see if I can find a really low impact fix for this.
https://github.com/internetarchive/bookreader/commit/f2c52671be541b4ef5828133a65059971582dc08 is the last working commit for IIIF demo
https://github.com/internetarchive/bookreader/commit/03c10ef1162995821c1c1cba195533171e8e37dc IIIF demo does not work, but the error is not shown either
https://github.com/internetarchive/bookreader/commit/d7335d4710f26df24b078c29ae10908db10de2b0 first commit in which IIIF demo shows the error
(these 3 commits are sequential)
Most likely already known but the IIIFBookReader.js
as it stands uses IIIF 1.0 full/full/0/native.jpg
versus the default.jpg
which would be a quick fix.
Also, thanks a TON.
@iisa Can I work on this issue?
Problem:
The IIIF demo page in ./BookReaderDemo/demo-iiif.html throws an error as follows:
Task: