Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
function isbn10_to_13(isbn) {
// sum the digits with their weights and add the checksum for the 978 prefix
// divide the sum_of_digits by the modulus number (10) to find the remainder
// return isbn with check_digit
Now the problem is %s. This function above has dependency with %s... :( |
|
|
Hi, First, thank you for refactoring. This dramatically reduces the work of cracking 'the code'. I am working on fetching Taiwanese local bookstore data (e.g. http://www.eslitebooks.com/Program/Object/BookC...), but have the problem on %s. %s means ISBN-10, not EAN-13 / ISBN-13, whereas most of Taiwanese / Chinese bookstores use EAN-13 / ISBN-13. I did some research on internet but only found perl / cgi /python implementation for two-ways convert. Any tips? Thanks zh |
|
|
Fair, but I don't think I can do them myself due to non-competition clauses in my employment contract these days. Feel free to track down a scriptwright to do it for you, though; the script is easy to add sites to and maintain old sites covered (in case they break). |
|
|
Fantastic script - tack så mycket! What are the chances of incorporating amazon.co.uk, abebooks.co.uk, bookkoob.co.uk, play.com, bookdepository.co.uk, quartermelon.co.uk - booksites for the UK reader. CHeers |
|
|
I have updated it, added some bookstores, and bookstores country flags. http://userscripts.org/scripts/show/6079 |
|
|
Where would you pick up ASINs and what sites would you feed them to? |
|
|
Awesome script :) I just wish it worked for ASINs (like ISBNs, but for things other than books) too... I also wish it would include inter-library catalog systems such as MINERVA (the system for libraries in Maine.) |
|
|
Added. I think the comment system here at userscripts.org broke the ajaxPrice regexp of that one; I had to rewrite it to get it to work. |
|
|
Here is how to add bookpool.com to the list: { name: 'Bookpool.com', id: 'bookpool', hostname: /\bbookpool.com$/i,
|