Print

Print


Hi Tim,

I think this proposal suffers from the same shortcoming as
LibraryThing's widgets, which is that only one per page is allowed. A
better way may be to use spans and classes and keep the JavaScript in
a library.
I've attached the resulting HTML below; see http://libx.org/gbs/ for a demo.

 - Godmar

--- index.html:
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!cript src="http://libx.org/gbs/gbsclasses.js"
type="text/javascript"> </script>
<title>Simple Demo for Google Book Classes</title>
</head>

<body>
  <span title="ISBN:0743226720" class="gbs-thumbnail"></span>
  <span title="ISBN:0061234001" class="gbs-thumbnail"></span>
  <span title="ISBN:1931798230" class="gbs-thumbnail"></span>

  <span title="ISBN:0596000278" class="gbs-thumbnail"></span>
  <span title="0439554934"      class="gbs-thumbnail"></span>
  <span title="OCLC:60348769"   class="gbs-thumbnail"></span>
  <span title="LCCN:2004022563" class="gbs-thumbnail"></span>
</body>
</html>

On Sat, Mar 15, 2008 at 2:04 AM, Tim Spalding <[log in to unmask]> wrote:
> (Apologies for cross-posting)
>
>  I just posted a simple way to get free book covers into your OPAC. It
>  uses the new Google Book Search API.
>
>  http://www.librarything.com/thingology/2008/03/free-covers-for-your-library-from.php
>
>  I think Google has as much cover coverage as anyone. The API is free.
>  Most libraries pay. I'm thinking this is a big deal?
>
>  We'll probably fancy it up a bit as an add-on to our LibraryThing for
>  Libraries service, but the core idea can be implemented by anyone.
>
>  I look forward to refinements.
>
>  Tim
>
>  --
>  Check out my library at http://www.librarything.com/profile/timspalding
>