I opened a separate bug report on this issue (bug
1613374) before realizing
bug
1306666 was reported. This commit creates a new 'Canceled Transit' status
that signals to staff what happened to an item when a transit is aborted/canceled.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
return $e->die_event unless $e->allowed('ABORT_REMOTE_TRANSIT', $e->requestor->ws_ou);
}
- # recover the copy status
- $copy->status( $transit->copy_status );
+ # set the copy status to "Canceled Transit"
+ $copy->status( OILS_COPY_STATUS_CANCELED_TRANSIT );
$copy->editor( $e->requestor->id );
$copy->edit_date('now');
my $holdtransit = $e->retrieve_action_hold_transit_copy($transit->id);
- if( $holdtransit ) {
- $logger->info("setting copy to reshelving on hold transit abort");
- $copy->status( OILS_COPY_STATUS_RESHELVING );
- }
-
return $e->die_event unless $e->delete_action_transit_copy($transit);
return $e->die_event unless $e->update_asset_copy($copy);
econst OILS_COPY_STATUS_ON_RESV_SHELF => 15;
econst OILS_COPY_STATUS_LONG_OVERDUE => 16;
econst OILS_COPY_STATUS_LOST_AND_PAID => 17;
-
+econst OILS_COPY_STATUS_CANCELED_TRANSIT => 18;
# ---------------------------------------------------------------------
# Circ defaults for pre-cataloged copies
INSERT INTO config.copy_status
(id, name, holdable, opac_visible, copy_active, restrict_copy_delete)
VALUES (17, 'Lost and Paid', FALSE, FALSE, FALSE, TRUE);
+INSERT INTO config.copy_status(id,name) VALUES (18,oils_i18n_gettext(18, 'Canceled Transit', 'ccs', 'name'));
SELECT SETVAL('config.copy_status_id_seq'::TEXT, 100);
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.copy_status (id, name) VALUES (18,oils_i18n_gettext(18, 'Canceled Transit', 'ccs', 'name'));
+
+COMMIT;