set imported_as / import_time on import items after successful import
authorberick <berick@esilibrary.com>
Mon, 23 May 2011 18:16:32 +0000 (14:16 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 6 Jul 2011 18:50:54 +0000 (14:50 -0400)
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index c4ca18c..b3e516b 100644 (file)
@@ -1550,6 +1550,16 @@ sub import_record_asset_list_impl {
                 next;
             }
 
+            # set the import data on the import item
+            $item->imported_as($copy->id); # $copy->id is set by create_copy() ^--
+            $item->import_time('now');
+
+            unless($e->update_vandelay_import_item($item)) {
+                $$report_args{evt} = $e->die_event;
+                respond_with_status($report_args);
+                next;
+            }
+
             # --------------------------------------------------------------------------------
             # Item import succeeded
             # --------------------------------------------------------------------------------