]> git.evergreen-ils.org Git - Evergreen.git/commit
Granular invalid data detection for Vandelay item import
authorBill Erickson <berick@esilibrary.com>
Mon, 8 Aug 2011 19:05:47 +0000 (15:05 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 9 Aug 2011 20:15:33 +0000 (16:15 -0400)
commitbfceae7dfe2d8bb3dcd37e56b541a69b9a99738c
tree9f70b85463e3e3cf81a1205bc3d7dd5b0464dbe4
parentb6d197000576d45d9acbb63509ee85f092acf6ad
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>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Open-ILS/src/sql/Pg/002.schema.config.sql
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/0596.schema.vandelay-item-import-error-detail.sql [new file with mode: 0644]