I wanted ISBNs to display using Book Post's (http://drupal.org/project/bookpost) formatting so I added it as an option to the module. This patch checks for the existence of the bookpost module before adding its functionality to the field.

CommentFileSizeAuthor
#1 isbn.module.patch1.77 KBdworth
isbn.module.patch1.75 KBdworth

Comments

dworth’s picture

StatusFileSize
new1.77 KB

oops, regrettably already found a small bug in this implementation. Fixed (trivially) in attached patch (which replaces the originally posted one). Also fixed formatting in old version (tabs were bad, sorry about that)

jon pugh’s picture

This should really be added to the Book Post module instead, as an additional CCK display handler for the ISBN Field.

dworth’s picture

Cool, I will look into that... it sure felt kinda funny in this direction!

Matthew Davidson’s picture

I've also got an ISBN field formatter in the OpenLibrary API package, which is a more complete and abstracted interface to the OpenLibrary.org RESTful API.

jon pugh’s picture

Fantastic!

I'll add a link to your module to the field module's page.

dworth: Go ahead and update this ticket once the bookpost module supports this fieldtype and I'll add a link to that module as well.