Opened 12 years ago

Closed 12 years ago

#4351 closed enhancement (fixed)

dojox.validate.isbn to validate ISBN

Reported by: guest Owned by: dante
Priority: high Milestone:
Component: Dojox Version: 0.9
Keywords: Cc: bookstack@…
Blocked By: Blocking:

Description

Attached is the isbn.js that implements dojox.validate.isValidISBN. It accepts string or number and verify whether the input is a valid ISBN-10 or ISBN-13 code. Some test cases are added in dojox.validate.tests.validate for quick-n-dirty test.

Attachments (2)

isbn.js (828 bytes) - added by guest 12 years ago.
isbn.js implements dojox.validate.isbn
isbn-test.diff (1.8 KB) - added by guest 12 years ago.
A quick-n-dirty test case for dojox.validate.isbn

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by guest

Attachment: isbn.js added

isbn.js implements dojox.validate.isbn

Changed 12 years ago by guest

Attachment: isbn-test.diff added

A quick-n-dirty test case for dojox.validate.isbn

comment:1 Changed 12 years ago by Adam Peller

Owner: changed from Tom Trenka to dante

comment:2 Changed 12 years ago by Adam Peller

Cc: bookstack@… added
Type: defectenhancement

code comes from bookstack, who must have a CLA in place

comment:3 Changed 12 years ago by dante

Status: newassigned

comment:4 Changed 12 years ago by dante

Resolution: fixed
Status: assignedclosed

(In [10414]) fixes #4351 - adding dojox.validate.isbn validation checking courtesy bookstack [cla/soc champ]. adds DOH unit tests, that may or may not be validating properly (refs #4350). tests were ported from 0.4 unit tests, and all 'passed' as expected, so didn't double check forced failure. I must have set up the tests wrong, somehow.

Note: See TracTickets for help on using tickets.