From 11fc05ccebe77f5e2663e169b92af8867ffc7754 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 26 Jul 2005 20:30:44 +0000 Subject: [PATCH] some transit/hold receipts and handling git-svn-id: svn://svn.open-ils.org/ILS/trunk@1506 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/circ/circ_utils.js | 29 ++++++++++++++++++- .../content/evergreen/circ/hold_capture.js | 8 +++++ 2 files changed, 36 insertions(+), 1 deletion(-) 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 067d383718..ce45d1a86b 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js @@ -146,7 +146,14 @@ function checkin_by_copy_barcode(barcode, backdate, f) { check.copy = check2.copy; check.text = check2.text; check.route_to = check2.route_to; - sPrint(check.record.title() + '
\r\n' + check.text + '\r\n
Barcode: ' + barcode + ' Route to: ' + check.route_to + '\r\n' ); + var patron = retrieve_patron_by_id( check.hold.usr() ); + sPrint(check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + + check.record.title() + ' Author: ' + check.record.author() + + '
\r\n' + 'Route To: ' + check.route_to + ' Patron: ' + + patron.barcode() + ' ' + patron.family_name() + ', ' + + patron.first_given_name() + '
\r\n' + ); + } } catch(E) { @@ -164,7 +171,27 @@ function checkin_by_copy_barcode(barcode, backdate, f) { break; } break; + case '2': case 2: /* LOST??? */ + 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 pcheck = yns_alert( + msg, + 'Alert', + 'Print Receipt', + "Don't Print", + null, + "Check here to confirm this message" + ); + if (pcheck == 0) { + sPrint(check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + + check.record.title() + ' Author: ' + check.record.author() + + '
\r\n' + 'Route To: ' + check.route_to + + '
\r\n' + ); + } + 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; diff --git a/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js b/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js index a8ee3d52ad..faa0db0459 100755 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js @@ -61,6 +61,14 @@ function hold_capture_hold_capture_items_init(p) { hold_captures.push( check ); p.hold_capture_items.add_hold_capture_items( [ hold_captures.length - 1 ] ); + var patron = retrieve_patron_by_id( check.hold.usr() ); + + sPrint(check.text + '
\r\n' + 'Barcode: ' + barcode + ' Title: ' + check.record.title() + + ' Author: ' + check.record.author() + '
\r\n' + + 'Route To: ' + check.route_to + + ' Patron: ' + patron.barcode() + ' ' + patron.family_name() + ', ' + patron.first_given_name() + + '
\r\n' + ); tb.value = ''; } } catch(E) { -- 2.43.2