I wrote a CCK formatter that can turn a CCK field containing an ISBN number into a Google book preview (if that isbn is present in google books) that acts like this demo: http://code.google.com/apis/books/examples/previewwizard-popup.html

The version attached here does not require isbn module (just cck for 6.x), but you can use it for isbn fields by changing the 'field types' to 'isbn'. This could be adjusted into a patch for isbn.module or just use it in a custom module.

CommentFileSizeAuthor
#1 google_books.txt997 bytesjody lynn

Comments

jody lynn’s picture

StatusFileSize
new997 bytes
commanderflash’s picture

I have added the code above to the cck module file. I assume that this is where it goes. I have a field that was created and has an ISBN in it. How does one set the field to use this format?

jody lynn’s picture

You should never edit drupal modules that you didn't write yourself. This breaks your ability to upgrade them.

To use the above code you need to put it into a new custom module called isbn_google.module and create a corresponding isbn_google.info file for it.

commanderflash’s picture

I wondered about that. I am never of fan of modifying a modules files. Thanks for the quick response. I ended up just handling it in my content template file.

jon pugh’s picture

Status: Needs work » Closed (works as designed)