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

New to the Open Library? — Learn how it works
Last edited by Mek
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 · 157 revisions

March 16, 2017 Edited by Mek added anchor to serving-images
November 29, 2015 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!
September 15, 2008 Created by Anand Chitipothu book reader suggestions