Google Book Search Link Juice Extension

Extension Information
Extension File Name: 
GBS.js
Author: 
Richard Wallis
Extension Class Name: 
GBSJuice
Function Parameters: 
GBS(ju,src,text,defPanel,launchType,insert1,insert2) 
  • ju - instance of juice
  • src - url to logo to display in selection panel
  • text - text to display in selection panel
  • launchType - type of widow to launch "new"(default) | "overlay" | "iframe" | "current" - optional
  • insert1 - option for launch window - optional
  • insert2 - option for launch window - optional
Dependencies: 

Extension is dependent on one or more ISBN values being stored in a Juice Meta definition named "isbns". This extension will not display in a selection panel if this value is not present.

Example Code: 
new GBSJuice( juice,
   'http://books.google.com/intl/en/googlebooks/images/gbs_preview_button1.gif',
   'Preview at Google Books'
);

Extension to launch a display of books from Google Book Search based on meta value of 'isbns'. This extension does a pre-search of Google Book Search, and only is enabled if Google has a full or partial preview available. Can be launched from either text or image based selection panels.

Upon construction this extension performs a search via the Google Book Search API. If a full or partial preview is available for any of the passed ISBNs, the css classes for the extension logo and text are changed to 'juiceXActiveIcon' and 'juiceXActiveText', and they become clickable. If no previews are available the css classes remain as 'juiceXInactiveIcon' and 'juiceXInactiveText' with no click function enabled.

AttachmentSize
GBS.js.txt2.3 KB