From 94e7d06d35f5cd3bd3c762bd3edb350f6e0e15f5 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Thu, 9 Feb 2012 16:37:48 -0500 Subject: [PATCH] Support barcode autocompletion in copy buckets By request of our staff, who are lazy. Signed-off-by: Thomas Berezansky Signed-off-by: Michael Peters Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/cat/copy_buckets.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js index 47a9a28145..3e470ed4fe 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js @@ -704,6 +704,13 @@ cat.copy_buckets.prototype = { var obj = this; try { var barcode = obj.controller.view.copy_bucket_barcode_entry_textbox.value; + var barcode_object = xulG.get_barcode(window, 'asset', barcode); + // user_false means the user said "None of the above", so abort without further prompts/actions + if(barcode_object == "user_false") return; + if(barcode_object && barcode_object.barcode) { + barcode = barcode_object.barcode; + } + var copy_obj = obj.network.simple_request('FM_ACP_DETAILS_VIA_BARCODE',[ses(),barcode]); if (copy_obj == null) { throw(document.getElementById('circStrings').getString('staff.circ.copy_status.status.null_result')); -- 2.43.2