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

Rick Mason rcmason at rsproductions.net
Sun Oct 1 14:41:42 EDT 2006


Rick Mason also wrote something similar...

Thanks for correcting my (our) error!

Rick

Paul F. Schaffner wrote:
> Patricial Anderson wrote:
>
>> To go from 13 to 10 is easy -- the isbn-10 is the last 10 digits of 
>> the isbn-13.
>
> No it's not. As long as we are still within the 978- range of ISBN-13s,
> the first nine digits of the ISBN-10 and the penultimate nine
> digits of the ISBN 13 should match, but the final digit (the check
> digit) will normally *not* be the same.
>
> Below are some crude perl scripts I wrote to convert lists of ISBN-10s to
> ISBN-13 and 978-prefixed ISBN-13s to ISBN-10. My apologies for the 
> crudity of the perl--it was just for fun, in the interests of 
> understanding (and making some marginal improvements in my perl skills).
> However, their very verbosity may make the basics of the conversion 
> clear.
> pfs
> ---------------------------------------------------------------------
> Paul Schaffner | pfs at umich.edu | http://www-personal.umich.edu/~pfs/
> Digital Library Production Service, University of Michigan Libraries
> -------------------------------------------------------------------- 


More information about the Web4lib mailing list