From d32fd80c204e66cd7d4b64f609f5689f532cf98b Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 27 Apr 2006 05:38:08 +0000 Subject: [PATCH] copy not found git-svn-id: svn://svn.open-ils.org/ILS/trunk@3924 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/circ/copy_status.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index 737b117004..5018bedea1 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -213,8 +213,19 @@ circ.copy_status.prototype = { throw('Something weird happened. null result'); } else if (copy.ilsevent) { switch(copy.ilsevent) { - case -1: obj.error.standard_network_error_alert(); break; - default: throw(copy); break; + case -1: + obj.error.standard_network_error_alert(); + obj.controller.view.copy_status_barcode_entry_textbox.select(); + obj.controller.view.copy_status_barcode_entry_textbox.focus(); + break; + case 1502 /* COPY_NOT_FOUND */ : + obj.error.yns_alert(barcode + ' was either mis-scanned or is not cataloged.','Not Cataloged','OK',null,null,'Check here to confirm this message'); + obj.controller.view.copy_status_barcode_entry_textbox.select(); + obj.controller.view.copy_status_barcode_entry_textbox.focus(); + break; + default: + throw(copy); + break; } } else { var my_mvr = obj.network.simple_request('MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', [ copy.id() ]); -- 2.43.2