Required Validations for Add Book Form - skytreader/Librarian GitHub Wiki
A list of required validations when adding books.
Book Information
- ISBN
- Required.
- Must be a valid ISBN number. See check digits.
- Title
- Required.
- #notavalidationbut Smart post-processing. Inputs "The Hobbit" and "Hobbit, The" must appear similarly in the database, namely, as "Hobbit, The".
- Genre
- Required
- #notavalidationbut Auto complete from a list of genres already in the. database.
Content Creators
All fields in the "Content Creators" part will be validated that the data input is valid, i.e., they should have names in the form "Lastname[name-separator] Firstname" where [name-separator] is an app setting. Multiple names should be separated by person separator, another app-setting. They should also accept uncommon cases such as "Rumi" and "why the lucky stiff".
Publishing Information
- Publisher
- Required.
- #notavalidationbut Auto complete from a list of publishers already in the database.
- Printers
- Required.
- #notavalidationbut Auto complete from a list of printers already in the database.
- Publishing Year
- Required.
- Must be numeric.
- Must be a valid year: on or before current year (take from database server).