Oh yes, you're right. My point was to illustrate the point with a
small piece of code, not to write the perfect implementation. Multiple
covers is one improvement you'd want.
I think the main problem is getting the identifiers off of the OPAC
and putting them back in the page where they're useful. If you've got
lots of control, it's easy. If you're using WebPac and all you can do
is add a single line of JS in the footer, it gets trickier.
Tim
On 3/15/08, Godmar Back <[log in to unmask]> wrote:
> 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>
> <script 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
> >
>
--
Check out my library at http://www.librarything.com/profile/timspalding
|