Here, you can fetch and find information about ISBN hyphenation and book covers. I have built this page for people needing to convert between ISBN-10 and ISBN-13, hyphenize ISBN’s (that is put dashes at the right place between the digits), interpret the different parts of an ISBN, get a cover thumbnail, or find links to book cover images (if available on the Internet).
You can also HTTP GET
JSONP-formatted information (via JavaScript, for example) directly, GET
ting an URI such as https://www.academiccomputerclub.se/~saasha/getcover/?isbn=0-674-29874-8&format=svg&callback=my_jsonp_callback&propsep=LF or https://www.academiccomputerclub.se/~saasha/getcover/?isbn=87-88209-00-8&format=jsonp&callback=my_jsonp_callback&propsep=LF4 or https://www.academiccomputerclub.se/~saasha/getcover/?isbn=978-0-674-89645-1&format=xhtml
(for example) where propsep=LF4
is a JSON-property separator consisting of one line-feed (LF
) followed by four spaces (4). You can also try propsep=2
or propsep=LF
etc. If no propsep
is given, it defaults to propsep=1
.
The JSON, JSONP, MODS and SVG formats provide conversion information between ISBN-10 and ISBN-13. The XHTML format provides a table with ISBN interpretation.
Here are some answers to a few questions you may wonder about when using this web page:
prototype
” is not a reserved word in JavaScript, but using such a word as a callback name is at the very least confusing and therefore excluded, for example. Likewise every word begining with “get
” is excluded, etc. Short words are also excluded. If you choose a name which is not a reserved word in JavaScript, has many letters, is not likely to become a reserved word and does not begin with a prefix (such as “get
”), which is common in JavaScript names, everything should work fine! If the web site where your JavaScript code is to be put is called www.example.org/mypage
then you can try with a callback named “org_example_mypage
”, for example.echo '9780674896451\n0674298748\n0131103628' | sed -e 's/^/https:\/\/www.academiccomputerclub.se\/home\/saasha\/getcover\/?propsep=LF4\&format=json\&isbn=/' | wget -i - -O - -o /dev/null | egrep hyphenizedISBN13 | sed -e 's/ *"hyphenizedISBN13": "//' -e 's/",//'
echo '9780674896451 0674298748 0131103628' | sed -e 's/\(^\| \)/&https:\/\/www.academiccomputerclub.se\/home\/saasha\/getcover\/?propsep=LF\&format=json\&isbn=/g' | sed -e 's/ /\n/g' | wget -qi - -O - | perl -ne 'print if s/"hyphenizedISBN10": "([-\d]+)",/$1/'
On line since 2012. Last modified by Saašha Metsärantala ( saasha@academiccomputerclub.se ) on Thursday, 2022-09-29.