Skip to content

Commit

Permalink
Update IIIFBookReader.js
Browse files Browse the repository at this point in the history
un-hardcode numLeafs and make it the number of canvases in manifest
  • Loading branch information
yulgit1 committed Oct 29, 2014
1 parent 8f3083e commit f5879fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/js/lib/IIIFBookReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
jQuery.each(brInstance.jsonLd.sequences, function(index, sequence) {
if (sequence['@id'] === sequenceId) {
brInstance.IIIFsequence.title = "here's a sequence";
brInstance.numLeafs = 515;
brInstance.numLeafs = this.canvases.length;
brInstance.IIIFsequence.bookUrl = "http://iiif.io";
brInstance.IIIFsequence.imagesList = getImagesList(sequence);
}
Expand Down

0 comments on commit f5879fd

Please sign in to comment.