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

 Hello!   The State of California is participating in our In-Library lending program. Browse the growing lending library of over 200,000 eBooks!

Site Search
Last edited by George
December 5, 2011 | History

Developer Center


Hello! There are lots of ways you can work with the Open Library system, and the ol-tech mailing list is a great place to ask questions.

Developer Notes

Data

Infogami

Open Library is powered by Infogami, a clean, simple wiki application framework built on web.py. Unlike other wikis, Infogami has the flexibility to handle different classes of data, including structured data. That makes it the perfect platform for Open Library.

Basically, Infogami facilitates the creation of dynamic HTML templates and macros. This flexible environment enables users to create, share and build collaborative interfaces. We'd love to see more of these spring up around Open Library!

Applications are written by extending Infogami through two layers: plugins and templates. Plugins are Python modules that get loaded into Infogami through a special API. (See an overview of Infogami plugins.) They are invoked by submitting HTTP requests to the application, either HTML form posts or direct GET requests. Plugins can use any library or application code that they wish, and they create Python objects to represent results, that then get expanded to HTML by templates. Templates are a mixture of HTML text and user-written code, in the spirit of PHP templates. The user-written code is in a special-purpose scripting language that is approximately a Python subset, which runs in a hopefully-secure server-side interpreter embedded in the Python app that has limited access to system functions and resources.

Markdown

Open Library also uses a text-to-HTML formatting language Markdown, created by John Gruber. We also use the handy WMD Markdown WYSIWYG editor.

History Created October 21, 2009 · 53 revisions

December 5, 2011 Edited by George Edited without comment.
December 5, 2011 Edited by George Added link to new Ruby on Rails interface to the API
July 25, 2011 Edited by George Added a link to Mike's In-Library tech notes
June 3, 2011 Edited by George Edited without comment.
October 21, 2009 Created by George New page.