πŸ“š Allows you to display the books in your Google Books Library.
Branch: master
Clone or download
Latest commit a1bf5e4 Mar 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bower_components Install dependencies with bower Jan 30, 2015
images Add default images for books with no cover Jun 2, 2014
layouts Fix th ecss Jan 30, 2015
bower.json Update bower.json Mar 1, 2018
google-bookshelves.js Fix th ecss Jan 30, 2015
google_bookshelves_styles.css
index.html Pass in full path Jan 30, 2015
license Add MIT license Jul 14, 2017
readme.md Update readme Jul 14, 2017

readme.md

Google Bookshelves Widget

This plugin allows you to display the books in your Google Books Library

Description

With this plugin you can add show off your books from any of the shelves on your Google Books Library. It uses the Google Boooks API to show your Reading Now, Favorites, Have Read, To Read, or your custom shelves. You can also choose the maximum number of books that you want to display.

In order to find your idNumber, visit books.google.com and click "My library". Then look in the address bar and it should look something like this:

http://books.google.com/books?uid=113720634485746776434

Everything after uid= is your idNumber.

To find the shelfNumber for a particular shelf, click on the name of the shelf. The address should look something like this:

http://books.google.com/books?as_coll=3&num=10&uid=113720634485746776434&source=gbs_slider_cls_metadata_3_mylibrary_title

The number after as_col= is your shelfNumber. Note that you have to make sure that you make the shelf public for this to work. To do this, click on the settings button (looks like a gear), click "Edit properties", and next to visibility, click "Make public" if it isn't already public.

Example Usage

The required options are idNumber, shelfNumber, container. Everything else will default to what is shown below.

limit is the maximum number of books to show pageCurl is whether or not to show a page curl on the image imageSize is the size of the image retrieved. Possible options are thumb or smallThumb layout is the template to use to display the books. It can be any file name that is contined in layouts. The included templates are grid, description, and column

googleBookshelves.showShelf({
  idNumber: "113720634485746776434",
  shelfNumber: 3,
  container: "#readingNow",
  limit: 10,
  pageCurl: false,
  imageSize: "thumb",
  layout: "grid"
});

Dependencies

It requires jquery for the ajax call, and handlebars for the templating.