Menu

#14 isbn validation

open
nobody
None
2
2005-08-31
2004-04-14
Anonymous
No

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.

Discussion

  • Stuart Johnston

    Stuart Johnston - 2004-04-18

    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.

     
  • Stuart Johnston

    Stuart Johnston - 2004-04-18
    • priority: 5 --> 2
    • assigned_to: stuartj --> nobody
     
  • Stuart Johnston

    Stuart Johnston - 2005-08-31
    • labels: 341906 -->
     
  • Stuart Johnston

    Stuart Johnston - 2005-08-31

    Logged In: YES
    user_id=143553

    moved to RFE.

     

Log in to post a comment.

MongoDB Logo MongoDB