Granular invalid data detection for Vandelay item import user/berick/vandelay-item-import-error-detail
authorBill Erickson <berick@esilibrary.com>
Mon, 8 Aug 2011 19:05:47 +0000 (15:05 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 8 Aug 2011 19:05:47 +0000 (15:05 -0400)
commit5f24260a3dbb83ee7be7c1bc0bf00fc4936436da
treec815e4b28a0bf1d6babc642275a3c337a99a5f38
parent04008a5bece9c12d2e6ce48ed7ed11eb5d537289
Granular invalid data detection for Vandelay item import

When an import item contains any data for a field, the code now verifies
the data is valid for the selected field.  When the data is not valid,
we capture information on which field is invalid and what data was used
for the field (import_error, error_detail) so it can be reported in the
interface.

This adds new import_errors:

import.item.invalid.status
import.item.invalid.price
import.item.invalid.deposit_amount
import.item.invalid.owning_lib
import.item.invalid.circ_lib
import.item.invalid.copy_number
import.item.invalid.circ_as_type

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay-item-import-error-detail.sql.sql [new file with mode: 0644]