Click here to skip to this page's main content.

 Hello!   Open Library is participating in our eBook lending program. Browse the growing lending library of over 250,000 eBooks!

Site Search

Site Search
Last edited by Jessamyn West
September 15, 2008 | History

Book Reader

Requested Features

  • Ability to work with non-archive books (which means the bookreader should not expect data in any format)
  • Ability to embed into any webpage with ease
  • Possibility of keeping multiple books in the same page (no global state)

To make is it easier to work with other sources, the bookreader can expect a book interface with the following functions from the client.


The book reader can have optional functionality which is enabled only when the book implementation has the required method defined.
For example, bookmarks functionality can be enabled only when the book interface has getBookmarks method defined.


Typical usage:

<script src="/js/bookreader.js" type="text/javascript"/>
<script src="/js/archivebook.js" type="text/javascript"/>
<div id="book1"></div>
    document.onload = function() {
        var b = bookreader("book1", ArchiveBook("tomsayer"));

History Created September 15, 2008 · 156 revisions

1 day ago Edited by Jessamyn West rm lists that don't work
October 24, 2015 Edited by Jessamyn West https
February 14, 2015 Edited by Jessamyn West added new example!
November 21, 2013 Edited by Anand Chitipothu Fixed the link to download source code.
September 15, 2008 Created by Anand Chitipothu book reader suggestions