ISBN-13 conversion tool written in PHP

Posted on June 30, 2004
Filed Under Web ideas |

At work today I wrote a conversion tool to translate 10 digit ISBNs into 13 digit ISBNs. Jessica Kingsley Publishers have given me permission to share it with the world here.

I first wrote about ISBN-13 back in January 2003 and now I’m in a company that needs to contend with it.

The idea is to make the ISBN longer to allow for more of them. The clever bit about the initial move is that the ISBN-13s match the barcode EAMs, so the conversion work is relatively trivial. Having said that, I couldn’t find any code like the code below, when I went looking this week. I hope you find it useful.

You can read more online at the following places


Here’s the code.

Comments

3 Responses to “ISBN-13 conversion tool written in PHP”

  1. PH on November 22nd, 2004 2:45 pm

    The hyphenate_isbn13 is far from complete. Most contries have 2+ numbers as country code and the publisher ranges vary within for each country.
    See the country/publisher range list here: http://www.isbn-international.org/en/identifiers/List-of-Ranges.pdf

  2. Jemima on November 22nd, 2004 3:12 pm

    Aha. Thank you very much for that. I suspected I was missing some obvious stuff (apart from the slightly scrappy code).

  3. Lucien on July 12th, 2005 6:15 pm

    You will find a fully functional free converter here:
    http://www.isbn-international.org/converter/converter.html

Comments are closed.