ou may have noticed that, at various places on this website, I have a list of links to a number of different bookstores. I do this because I think it’s important for people to be given the option to purchase books from local, independent bookstores as well as major chains and massive online retailers. I like it when people sell books, and I don’t much care who the people are selling books. I think most people agree. The reason they tend to link to only one retailer is that while the spirit is willing, the flesh doesn't want to create 15 different links every time I mention a book. That's why I have written a script where all I have to do is input one ISBN, and it will automatically generate links to multiple bookstores:
I want to make this script available to everyone. This page is a work in progress: eventually, I hope to write a very robust script, as well as set up a WordPress plugin so as to encourage mass adoption. Right now, however, this page provides two things.
his form will generate links that you can copy and paste into your html or WordPress site.
Note: This script generates broken links if the ISBN is incorrect or if the book is not yet listed on the website. Also note (major note) that I have not yet set this up to use ISBN-10s. I realize that this means that older books can’t be included. I will fix this.
lternately, if you feel comfortable using PHP, feel free to use my PHP scripts directly. They are released under the GNU General Public License. They are also a marvel of hackery. I’m an author, not a web-programmer, and it shows.
Here is how you use them:
<?php $isbn='9780373774272'; include('isbngenerator.php'); ?>
Note that you must strip the ISBN of dashes for this to work, and you must use an ISBN-13. There you go. It’s that simple.