Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-188

Extend ISBN validator to support smooth transition to ISBN-13 / EAN-13 standard

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0 Release
    • 1.4.0 Release
    • Routines
    • None

    Description

      Hi,

      I just revised the ISBNValidator to support ISBN-13 / EAN-13 standards, which will begin its use on 2007 (see http://www.isbn.org/standards/home/isbn/transition.asp for more information).

      To support a smooth transition, I changed the isValid(String) method so that it can validate all ISBN-10, ISBN-13 and EAN-13 codes. In addition, I created methods for validating only ISBN-10, only EAN-13, or ISBN-13 / EAN-13 codes. This way, anyone could have support for
      the new standard by just changing the .jar file.

      Please note that I've changed a few method names, and you may want to check the code style to match the existing one (however I tried to follow it whenever I could).

      Regards,
      Gabriel Belingueres

      Attachments

        1. ISBNValidator.java
          9 kB
          Gabriel Belingueres
        2. ISBNValidatorTest.java
          7 kB
          Gabriel Belingueres

        Activity

          People

            niallp Niall Pemberton
            gaby@ieee.org Gabriel Belingueres
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: