From 542c40097f81b27fd261d828e60c6fb4f30c2ade Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 25 Jul 2005 14:36:29 +0000 Subject: [PATCH] limited hint handling for other ways to check-in git-svn-id: svn://svn.open-ils.org/ILS/trunk@1419 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/patron/patron_display.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 1a7ec2576d..1a723852f1 100755 --- a/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js +++ b/Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js @@ -211,7 +211,12 @@ function patron_display_patron_items_init(p) { try { var idx = patron_items[i].getAttribute('record_id'); var copy = p._patron.checkouts()[ idx ].copy; - checkin_by_copy_barcode( copy.barcode(), null ); + var check = checkin_by_copy_barcode( copy.barcode(), null ); + if (check.status == 0) { + alert('Check In: ' + check.text + ' Route To: ' + check.route_to); + } else { + alert('Check In: ' + check.text + ' Route To: ' + mw.G.org_tree_hash[check.route_to].shortname()); + } p.refresh(); } catch(E) { alert(E); @@ -377,12 +382,16 @@ function patron_display_patron_checkout_items_init(p) { try { var idx = patron_checkout_items[i].getAttribute('record_id'); var copy = checkouts[ idx ].copy; - var status = checkin_by_copy_barcode( copy.barcode(), null ); - if (status == null) { // change this to whatever it takes + var check = checkin_by_copy_barcode( copy.barcode(), null ); + if (check == null) { // change this to whatever it takes keep_these.push( checkouts[ idx ] ); } checkouts = keep_these; - alert( js2JSON( status ) ); + if (check.status == 0) { + alert('Check In: ' + check.text + ' Route To: ' + check.route_to); + } else { + alert('Check In: ' + check.text + ' Route To: ' + mw.G.org_tree_hash[check.route_to].shortname()); + } p.refresh(); } catch(E) { alert(E); -- 2.43.2