Adding a Book to the Database - skytreader/Librarian GitHub Wiki

The Add Book screen will be accessible from the "Manage Books" module (although, currently, the "Manage Books" navbar link directly shows the Add Book screen).

Users will input book details in a form. Every book is collated in a queue for batch insertion. The collation queue will take the form of a table. A user can delete a record in this table using a button at the end of every row. A record, once inserted, may be edited by clicking a row on the table. This will trigger a pop-up for editing records.

Validations

ISBN. Required. Check if value is valid ISBN-10 or ISBN-13.

Title. Required.

Genre. Required.

Author(s), Illustrator(s), Editor(s), Translator(s). These fields are not required but they may contain multiple names. As such, see that, when multiple values are entered, the format follows from what is expected (separators included, etc.)

Publisher. Required.

Printer. Required.

Year. Required. See to it that the year corresponds to ISBN; ISBN contains info about the year the book was published. The number of characters in the ISBN string (i.e., whether it is ISBN-10 or ISBN-13) is also affected by the publishing year.