From 7cd825e8b779308aa1a3afbbe4b485e5e02efde6 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 8 Mar 2011 13:03:46 -0500 Subject: [PATCH] wrong event, some debug aids, and toward setting class, prefix and suffix menus when retrieving an existing call number --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index ff5998989c..3a550de2cb 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -346,19 +346,19 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) { /**** CLASSIFICATION COLUMN revisited ****/ var classification_column_menulist = g.render_class_menu(call_number_column_textbox); - classification_column_menulist.addEventListener( 'change', g.gather_copies_soon, false); + classification_column_menulist.addEventListener( 'command', g.gather_copies_soon, false); classification_column_box.appendChild(classification_column_menulist); /**** PREFIX COLUMN revisited ****/ var prefix_column_menulist = g.render_prefix_menu(call_number_column_textbox); - prefix_column_menulist.addEventListener( 'change', g.gather_copies_soon, false); + prefix_column_menulist.addEventListener( 'command', g.gather_copies_soon, false); prefix_column_box.appendChild(prefix_column_menulist); /**** SUFFIX COLUMN ****/ var suffix_column_box = document.createElement('vbox'); r.appendChild(suffix_column_box); var suffix_column_menulist = g.render_suffix_menu(call_number_column_textbox); - suffix_column_menulist.addEventListener( 'change', g.gather_copies_soon, false); + suffix_column_menulist.addEventListener( 'command', g.gather_copies_soon, false); suffix_column_box.appendChild(suffix_column_menulist); /**** NUMBER OF COPIES COLUMN ****/ @@ -687,6 +687,7 @@ g.gather_copies = function() { if (typeof volumes_hash[ou_id][callnumber] == 'undefined') { volumes_hash[ou_id][callnumber] = { 'call_number_data' : { + 'node' : nl[i], 'acnc_id' : acnc_id, 'acnp_id' : acnp_id, 'acns_id' : acns_id @@ -705,9 +706,11 @@ g.gather_copies = function() { var bmp_id = barcodes[i].getAttribute('bmp_id'); if (typeof volumes_hash[ou_id] == 'undefined') { + alert('1: I want to remove this soon, so alert me if it is getting used'); volumes_hash[ou_id] = {} } if (typeof volumes_hash[ou_id][callnumber] == 'undefined') { + alert('2: I want to remove this soon, so alert me if it is getting used'); volumes_hash[ou_id][callnumber] = { 'call_number_data' : {}, 'barcode_data' : [] -- 2.11.0