On the search and add book page users are allowed to
enter isbn numbers that do not conform to the isbn
standard. Need to check for correct length (10). Need
to check for internal consistency: given an isbn
abcdefghij, 1*a+2*b+3*c+4*d+5*e+6*f+7*g+8*h+9*i+10*j=0
(mod 11). Note that a..i can be a digit {0..9}, but j
can be {0..9, x} where x represents 10.
Logged In: YES
user_id=143553
The code does not really do much validation, currently.
One option would be to use this perl module:
http://search.cpan.org/~bdfoy/Business-ISBN-1.72/ISBN.pm
Although, this would require an additional step at installation.
Logged In: YES
user_id=143553
moved to RFE.