Skip to content

πŸ“š Allows you to display the books in your Google Books Library.

License

Notifications You must be signed in to change notification settings

agarrharr/google-bookshelves-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

πŸ“š Allows you to display the books in your Google Books Library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published