From 17cb48c0b1719c1bc3afd4f2cc97db1db4666a37 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 26 Jul 2005 21:30:37 +0000 Subject: [PATCH] more cases to handle git-svn-id: svn://svn.open-ils.org/ILS/trunk@1510 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/circ/circ_utils.js | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js b/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js index c9594440f8..0abf4879bc 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js @@ -175,6 +175,10 @@ function checkin_by_copy_barcode(barcode, backdate, f) { break; case '3': case 3: /* TRANSIT ELSEWHERE */ if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname(); + var msg = check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + + check.record.title() + ' Author: ' + check.record.author() + + '
\r\n' + 'Route To: ' + check.route_to + + '
\r\n'; var pcheck = yns_alert( msg, 'Alert', @@ -184,14 +188,30 @@ function checkin_by_copy_barcode(barcode, backdate, f) { "Check here to confirm this message" ); if (pcheck == 0) { - sPrint(check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + + sPrint(msg); + } + + break; + case '4': case 4: /* transit for hold is complete */ + if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname(); + var msg = check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + check.record.title() + ' Author: ' + check.record.author() + '
\r\n' + 'Route To: ' + check.route_to + - '
\r\n' - ); + '
\r\n'; + var pcheck = yns_alert( + msg, + 'Alert', + 'Print Receipt', + "Don't Print", + null, + "Check here to confirm this message" + ); + if (pcheck == 0) { + sPrint(msg); } break; + default: if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname(); var msg = check.text + '\r\nBarcode: ' + barcode + ' Route To: ' + check.route_to; @@ -208,9 +228,16 @@ function checkin_by_copy_barcode(barcode, backdate, f) { } break; } + } else { // status == 0 + if (parseInt(check.route_to)) { + if (check.route_to != mw.G.user_ou.id()) { + check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname(); + } else { + check.route_to = mw.G.acpl_hash[ check.copy.location() ].name(); + } + } } } - if (parseInt(check.route_to)) check.route_to = mw.G.org_tree_hash[ check.route_to ].shortname(); return check; } catch(E) { handle_error(E, true); -- 2.43.2