From 26d8fc9b39521a45ff523bd812b2acdb0dcd74fc Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 16 Feb 2006 00:40:43 +0000 Subject: [PATCH] don't always want a dialog git-svn-id: svn://svn.open-ils.org/ILS/trunk@3081 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 6663152a44..91517e685b 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -289,6 +289,7 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) { switch(check.copy.status()) { case 0: /* AVAILABLE */ case 7: /* RESHELVING */ + if (msg) msg += 'This item needs to be routed to ' + check.route_to + '.'; break; case 8: /* ON HOLDS SHELF */ check.route_to = 'HOLDS SHELF'; @@ -309,12 +310,13 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) { break; case 11: /* CATALOGING */ check.route_to = 'CATALOGING'; + msg += 'This item needs to be routed to ' + check.route_to + '.'; break; default: msg += ("FIXME -- this case is unhandled\n"); + msg += 'This item needs to be routed to ' + check.route_to + '.'; break; } - msg += 'This item needs to be routed to ' + check.route_to + '.'; if (msg) error.yns_alert(msg,'Alert',null,'OK',null,"Check here to confirm this message"); } -- 2.43.2