[Web4lib] Conversion between ISBN-10 and ISBN-13

David Pattern d.c.pattern at hud.ac.uk
Tue Oct 3 11:27:08 EDT 2006


Hi folks

Here's my contribution, which is deliberately different from Casey's:

    http://wwwlibrarycat.hud.ac.uk/withnail.html

Rather than being an API, the idea is that you can either paste a list
of ISBNs into the box or upload a file of ISBNs, and then receive a file
which has the 10 digit ISBNs converted to 13 digit ones.

By default, only valid 10 digit ISBNs (i.e. ones with valid checksums)
will be converted and the rest will be untouched.  If you want to
convert anything that remotely resembles a 10 digit ISBN (regardless of
checksum), then you'll need to tick the "don't validate" checkbox before
you submit.

If all goes when, then whatever formatting you've used will be retained
in the output.

The file upload will attempt to process whatever you upload (inc. binary
files), but you're probably better off uploading plain text files.  If
you really really want to, you can try converting your favourite images
to ISBN 13!

The script uses the following modules, so you can blame them if anything
gets misconverted:
    http://www.manasystems.co.uk/isbnpm.html
    http://cpan.uwinnipeg.ca/dist/Business-ISBN

Have fun, and please send any problems & suggestions to
d.c.pattern at hud.ac.uk

regards
Dave Pattern
Library Systems Manager
Computing & Library Services
University of Huddersfield

p.s. the script is running on a test server, so there's no uptime
guarantee
p.p.s. I christened the script "Withnail" just to remind me to watch the
DVD this weekend :-)

This transmission is confidential and may be legally privileged. If you receive it in
error, please notify us immediately by e-mail and remove it from your system. If 
the content of this e-mail does not relate to the business of the University of
Huddersfield, then we do not endorse it and will accept no liability.




More information about the Web4lib mailing list