Matt Mitchell here at UVa just wrote a jquery plugin to access google
book covers and link to google books. I wrote up how to use it here:
http://www.ibiblio.org/bess/?p=107

We’re using it as part of Blacklight, and we’re making it
available through the Blacklight source code repository under an
Apache 2.0 license.

First, grab the plugin here: http://blacklight.rubyforge.org/svn/
javascript/gbsv-jquery.js, and download jquery here: http://
code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.3.min.js.

Now make yourself some HTML that looks like this:
<html>
  <head>
    <script type=“text/javascript”
src=“jquery-1.2.3.min.js”></script>
    <script type=“text/javascript” src=“gbsv-jquery.js”></
script>
    <script type=“text/javascript”>
        $(function(){
                $.GBSV.init();
        });
    </script>
  </head>
  <body>
        <span title=“ISBN:0743226720″ class=“gbsv-link-to-
preview”></span>
        <span title=“ISBN:0743226720″ class=“gbsv-link-to-
info”></span>
        <span title=“ISBN:0743226720″ class=“gbsv-
thumbnail”></span>
        <span title=“ISBN:0743226720″ class=“gbsv-link-to-
preview-with-thumbnail”></span>
  </body>
  </html>

Now load your page and you should see something like this: http://
blacklight.rubyforge.org/gbsv.html

If you link to a non-existent ISBN it will be silently ignored.

Give it a shot and give us some feedback!

Bess


Elizabeth (Bess) Sadler
Research and Development Librarian
Digital Scholarship Services
Box 400129
Alderman Library
University of Virginia
Charlottesville, VA 22904

[EMAIL PROTECTED]
(434) 243-2305

Reply via email to