Tag Archive for 'wordpress'

WorldCat Wordpress Plugin

!!! WARNING !!!
January 6, 2008 — This takes any 10 or 13 digit number and URLs it.  It broke my flickr links for a few days there.  So if you’re using this with QuickPost, maybe don’t use this.  I will work on a better solution in the coming days and weeks.

We now return you to the original pitch.  -B.
Ever wanted to blog about books, but not interested in giving any money to The Website That Sells Everything?

I work in a library and I want to encourage the borrowing of books through my library and others like it. I am not the only one. It will take a little time to develop or cobble together something that will serve as a versatile and media-rich alternative to the plugins that stick splashy ads for The World’s Biggest Bookstore all over your blog. I hope to explore that in 2008.

Today, though, I got all inspired by Banas’ adaptation of his favorite WP theme to include 2.0 widgets:

If you entertain fantasies of there lurking somewhere, somewhere, a theme, widget, or addon that will spontaneously uncork the fountain of wisdom you’ve been waiting to pour out onto the internet - well, please don’t stop fantasizing on my account - but the only thing that’s going to uncork that fountain is you.

And Banas was right. So I started small, by bastardizing Daniel Coe’s ISBN to Amazon Link WP plugin. Daniel’s well-formatted code made it rather simple to change the Amazon URL his script creates to a simple WorldCat link, like the one you see here to my favorite book, Nick Hornby’s “About a Boy”: 0575061596.

It will do this with any 10 or 13-digit number. That means if you put a ten digit [i.e. US or Canadian] phone number in a blog post, it will turn it into a WorldCat link unless you put the area code in (parentheses) or something. It also means that if leading zeroes cause the number to be other than 10 or 13 digits it will probably be hosed, so count the digits.

Unfortunately, right now, this only makes links to WorldCat, a database of OCLC member libraries. WorldCat, by its membership nature, doesn’t index all the world’s libraries, but it’s a start. You could print the resulting page and take it to your local library, where a staff member will glean the knowledge they need to get the book to you.

Thanks, Daniel, for making your plugin available under the GPL.

Download it here: WorldCat Wordpress Plugin [16K ZIP file, should work OK with OneClick Install]