Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using Google Book Classes in Mashups Excerpt from talk given at IUG 2008 in Washington, D.C Annette Bailey University Libraries Virginia Tech April 29,

Similar presentations


Presentation on theme: "Using Google Book Classes in Mashups Excerpt from talk given at IUG 2008 in Washington, D.C Annette Bailey University Libraries Virginia Tech April 29,"— Presentation transcript:

1 Using Google Book Classes in Mashups Excerpt from talk given at IUG 2008 in Washington, D.C Annette Bailey University Libraries Virginia Tech April 29, 2008

2 Part 2 Google Book Classes

3 Mashing a Service into the III Catalog Display MAJAX mashes catalog data into other web pages Now well mash data from another service into the library catalog

4 Google Book Search Book Viewability API Programmatic client-side access to small set of Google Book Search information Provides thumbnails of book covers Provides link to Googles book information, preview, or full text pages Provides information on whether Google has full text, partial preview, or no preview Indexed by ISBN#, OCLC#, LCCN# Released March 2008

5 Goals We want to incorporate information from Google Book Search into our catalog E.g., allow users to see a preview of a book if one is available from Google Or use Googles book covers Without JavaScript coding (even though Googles API requires JavaScript coding as it is)

6 Google Book Classes Demo

7 Google Books Demo Buttons appear if Google Book Search has a partial preview of book

8 Google Books Demo (2) Buttons appears if Google has a partial preview of book

9 Google Book Classes A JavaScript library and set of classes that simplify using the Google Book Search Book Viewability API Can be used on any web page, including inside the Millennium system Usage is much like MAJAX Available from libx.org/gbs

10 Using Google Book Classes (on general web server) Upload a copy of gbsclasses.js to your server Include gbsclasses.js in a tag in the target page Include the class(es) in tags <script type="text/javascript" src="http://yourserver/yourpath/gbsclasses.js"> <script type="text/javascript" src="http://yourserver/yourpath/gbsclasses.js">

11 GBS Identifiers IDENTIFIER can refer to ISBN #, OCLC #, or LCCN# Alternate syntax: use * as IDENTIFIER ISBN ISBN:006073132X OCLC OCLC:57207630 LCCN LCCN:2004022563

12 Using Google Book Classes in Millennium 1.Include gbsclasses.js in HTML template file via tag E.g. toplogo.html 2.Use III fieldspec token to insert HTML that includes the Google Book Classes into the briefcit.html file

13 briefcit.html briefCitPub

14 A Google Preview Button Inside Publisher boxInsert 1x2 HTML table260 Field goes in left columnhide span initiallyLink to info page – but only if Google has a partial view Remove span if Google does not index this ISBN III will put first 020 Field here briefcit.html

15 Currently Supported Google Book Classes Thumbnails Image gbs-thumbnail Wrap span in a hyperlink gbs-link-to-preview gbs-link-to-info gbs-link-to-thumbnail Conditionals: only keep span if … gbs-if-noview gbs-if-partial-or-full gbs-if-partial gbs-if-full Remove if Google does not index book gbs-remove-on-failure Multiple classes can be combined

16 Google Book Classes: Summary Google Book Classes allows the use of the Google Book Viewability API in mashups Without requiring any JavaScript or AJAX knowledge Allows integration in places (such as III briefcit.html) where control of a page is limited

17 Acknowledgements Dr. Godmar Back Assistant Professor Computer Science

18 Questions? Thank you! http://libx.org/gbs Contact us: libx.org@gmail.com


Download ppt "Using Google Book Classes in Mashups Excerpt from talk given at IUG 2008 in Washington, D.C Annette Bailey University Libraries Virginia Tech April 29,"

Similar presentations


Ads by Google