From 4cf98fd89103021a2718a75b9424f7906bbbb2ca Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 26 Jul 2005 20:36:22 +0000 Subject: [PATCH] some fixes git-svn-id: svn://svn.open-ils.org/ILS/trunk@1508 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/circ/circ_utils.js | 2 +- .../content/evergreen/circ/hold_capture.js | 2 +- .../evergreen/patron/patron_display.js | 22 +++++-------------- 3 files changed, 7 insertions(+), 19 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 ce45d1a86b..c9594440f8 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js @@ -150,7 +150,7 @@ function checkin_by_copy_barcode(barcode, backdate, f) { 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.card().barcode() + ' ' + patron.family_name() + ', ' + patron.first_given_name() + '
\r\n' ); 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 faa0db0459..b5eca1e9f4 100755 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js @@ -66,7 +66,7 @@ function hold_capture_hold_capture_items_init(p) { 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() + + ' Patron: ' + patron.card().barcode() + ' ' + patron.family_name() + ', ' + patron.first_given_name() + '
\r\n' ); tb.value = ''; diff --git a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js index 1c6e07b5f7..d7b1981171 100755 --- a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js +++ b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js @@ -215,14 +215,8 @@ function patron_display_patron_items_init(p) { var idx = patron_items[i].getAttribute('record_id'); var copy = p._patron.checkouts()[ idx ].copy; var check = checkin_by_copy_barcode( copy.barcode(), null ); - if (check != null) { - if (parseInt(check.route_to)) { - try { - check.route_to = mw.G.org_tree_hash[check.route_to].shortname(); - } catch(E) { - sdump('D_ERROR',js2JSON(E) + '\n'); - } - } + if (check != null && check.status == 0) { + check.route_to = mw.G.org_tree_hash[check.route_to].shortname(); alert('Check In: ' + check.text + ' Route To: ' + check.route_to); } p.refresh(); @@ -415,17 +409,11 @@ function patron_display_patron_checkout_items_init(p) { var check = checkin_by_copy_barcode( copy.barcode(), null ); if (check == null) { // change this to whatever it takes keep_these.push( checkouts[ idx ] ); - } else { - if (parseInt(check.route_to)) { - try { - check.route_to = mw.G.org_tree_hash[check.route_to].shortname(); - } catch(E) { - sdump('D_ERROR',js2JSON(E) + '\n'); - } - } + } + if (check != null && check.status == 0) { + check.route_to = mw.G.org_tree_hash[check.route_to].shortname(); alert('Check In: ' + check.text + ' Route To: ' + check.route_to); } - checkouts = keep_these; p.refresh(); } catch(E) { -- 2.43.2