The BookReader will serve pages of variable widths. You can see an
example here if you flip through the book and then look at a map:
You need to click and hold to drag the oversized page if it bleeds off
the screen. If you simply click, the page will turn.
Take a look at the demo that comes with the BookReader distribution:
See how the br.getPageWidth and br.getPageHeight functions are hard
coded? You need to set them dynamically. In the Ethnographic Maps
example I gave above, our metadata contains the archival image
dimensions, so we use that to set the height and width before it gets
loaded. Are you using an image server? Djatoka has a metadata service
that you can query, which might be an alternative if you don't have
On 5/31/13 3:24 PM, Hicks, William wrote:
> We are using it in an edit app on the admin side of the digital libraries @ UNT.
> On an expanded note. Does anyone have some success they can share in regards to serving materials through bookreader where the contained pages of a single item have variable widths and/or heights? Building off the demo assumes a fixed width/height ratio, which in our experience is not always the case (consider the book with the occasional map foldout).
> In our case we do not know an image's dimensions until it has loaded so we can't construct an array on the server side to lookup against, and doing so on page load would charge us a significant penalty for large items (books with 1000s of pages). My current hack has "auto" filled to the width, which breaks centering and thumbs, but renders the odd page as legible.
> So any thoughts/ideas? Thanks in advance!
> -----Original Message-----
> From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of John Jung
> Sent: Friday, May 31, 2013 1:34 PM
> To: [log in to unmask]
> Subject: Re: [CODE4LIB] Open Library Internet Archive BookReader
> We use this software at the University of Chicago Library as well:
> John Jung
> Web Project Manager
> University of Chicago Library
>> On May 30, 2013, at 5:04 PM, "Robinson, Lakeisha"
>> <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>> Hello Everyone, is anybody using the Open Library Internet Archive
>> BookReader for page turning?