This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git


The following commit(s) were added to refs/heads/master by this push:
     new 66376f8  ISBNValidator Javadoc updated with 979 prefix explanation
     new 1094b90  Merge pull request #30 from 
alcole/Alcole/VALIDATOR-447/ISBN-979-prefix-docs
66376f8 is described below

commit 66376f85a43ec653ca73b244545e91dfc7958142
Author: alex-cole <alexjcol...@gmail.com>
AuthorDate: Tue Sep 18 11:20:32 2018 -0500

    ISBNValidator Javadoc updated with 979 prefix explanation
---
 .../org/apache/commons/validator/routines/ISBNValidator.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git 
a/src/main/java/org/apache/commons/validator/routines/ISBNValidator.java 
b/src/main/java/org/apache/commons/validator/routines/ISBNValidator.java
index 7b56fe6..8c759c0 100644
--- a/src/main/java/org/apache/commons/validator/routines/ISBNValidator.java
+++ b/src/main/java/org/apache/commons/validator/routines/ISBNValidator.java
@@ -50,6 +50,17 @@ import 
org.apache.commons.validator.routines.checkdigit.CheckDigitException;
  *       Transition details</a>.</li>
  * </ul>
  *
+ * <p>ISBN-13s are either prefixed with 978 or 979. 978 prefixes are only 
assigned
+ * to the ISBN agency. 979 prefixes may be assigned to ISBNs or ISMNs
+ * (<a href="https://www.ismn-international.org/";>International
+ * Standard Music Numbers</a>).
+ * <ul>
+ *     <li>979-0 are assigned to the ISMN agency</li>
+ *     <li>979-10, 979-11, 979-12 are assigned to the ISBN agency</li>
+ * </ul>
+ * All other 979 prefixed EAN-13 numbers have not yet been assigned to an 
agency. The
+ * validator validates all 13 digit codes with 978 or 979 prefixes.</p>
+ *
  * @version $Revision$
  * @since Validator 1.4
  */

Reply via email to