id => 'Item Information: check information for item on hold',
msg => "1720060110 215612AO$instid|AB$item2_on_hold_barcode|",
pat => qr/^18100201$datepat/, # status of 'in transit between library locations'
+ #^01^other
+ #|02|on order
+ # 03 available
+ # 04 charged
+ # 05 charged; not to be recalled until earliest recall date
+ # 06 in process
+ # 07 recalled
+ # 08 waiting on hold shelf
+ # 09 waiting to be re-shelved
+ # 10 in transit between library locations
+ # 11 claimed returned
+ # 12 lost
+ # 13 missing
fields => [
{ field => FID_ITEM_ID,
pat => qr/^$item2_on_hold_barcode$/,
$test->{id} = "Item Info destination location extension";
push @{$test->{fields}}, {
field => FID_DESTINATION_LOCATION,
- pat => qr/^BM1$/o,
+ pat => qr/^BR4$/o,
just_warn => 1, required => 1, };
push @tests, $test;
# No need to check this out; we should have a transit for it
push @{$test->{fields}}, {
field => FID_DESTINATION_LOCATION,
- pat => qr/^BM1$/o,
+ pat => qr/^BR4$/o,
just_warn => 1, required => 1, };
push @tests, $test;
INSERT INTO asset.stat_cat_entry_copy_map (stat_cat, stat_cat_entry, owning_copy)
VALUES (1, 2, 2003);
-INSERT INTO action.hold_transit_copy (source_send_time, target_copy, source, dest, copy_status, persistant_transfer, hold)
- VALUES (NOW(), 317, 4, 9, 0, 'f', 158);
+INSERT INTO action.transit_copy (source_send_time, target_copy, source, dest, copy_status, persistant_transfer)
+ VALUES (NOW(), 317, 4, 7, 0, 'f');
-UPDATE action.hold_request SET phone_notify = '555-5555', pickup_lib = 4, request_lib = 4, selection_ou = 4 WHERE id = 254;
-UPDATE asset.copy SET circ_lib = 4 WHERE id = 485;
-INSERT INTO action.hold_copy_map (hold, target_copy, proximity) VALUES (254, 485, 0);
+UPDATE action.hold_request SET phone_notify = '555-5555', pickup_lib = 7, request_lib = 7, selection_ou = 7 WHERE id = 254;
+UPDATE asset.copy SET status = 6, circ_lib = 7 WHERE id = 317; -- in transit
+
+INSERT INTO action.hold_copy_map (hold, target_copy, proximity) VALUES (254, 485, 0); -- item3_on_hold_barcode
+INSERT INTO action.hold_copy_map (hold, target_copy, proximity) values (158, 317, 0); -- item2_on_hold_barcode
+INSERT INTO action.hold_copy_map (hold, target_copy, proximity) values (154, 310, 0); -- item on_hold_barcode
COMMIT;