Skip to content
Browse files

document option to check for ISBN-10 resp. ISBN-13 specifically

  • Loading branch information...
1 parent 3329566 commit b89bebacb32ea5ef9caec24d91c50a7d622470bf @racke racke committed Jun 27, 2009
Showing with 14 additions and 0 deletions.
  1. +14 −0 refs/isbn.ordercheck
View
14 refs/isbn.ordercheck
@@ -9,6 +9,9 @@ __END__
__NAME__ description
Verification of the form field value succeeds if
the passed value is a valid &glos-ISBN;-10/ISBN-13 code.
+</para>
+<para>
+The check can be advised to only accept ISBN-10 resp. ISBN-13 code.
__END__
__NAME__ notes
@@ -20,3 +23,14 @@ FORM_FIELD_NAME=__FILENAME__ "Not a valid ISBN code"
</programlisting>
__END__
+__NAME__ example: Verifying ISBN-13 code
+<programlisting>
+FORM_FIELD_NAME=__FILENAME__ 13 "Not a valid ISBN-13 code"
+</programlisting>
+__END__
+
+__NAME__ example: Verifying ISBN-10 code
+<programlisting>
+FORM_FIELD_NAME=__FILENAME__ 10 "Not a valid ISBN-10 code"
+</programlisting>
+__END__

0 comments on commit b89beba

Please sign in to comment.
Something went wrong with that request. Please try again.