thinkos and debugging remnants
authorJason Etheridge <jason@esilibrary.com>
Fri, 11 Mar 2011 17:43:46 +0000 (12:43 -0500)
committerJason Etheridge <jason@esilibrary.com>
Fri, 11 Mar 2011 17:43:46 +0000 (12:43 -0500)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index 4436289..71796ef 100644 (file)
@@ -360,8 +360,8 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) {
 
         _call_number_column_textbox.setAttribute('callkey',callnumber_composite_key);
         _call_number_column_textbox.setAttribute('acnc_id',acnc_id);
-        _call_number_column_textbox.setAttribute('acnp_id',acnc_id);
-        _call_number_column_textbox.setAttribute('acns_id',acnc_id);
+        _call_number_column_textbox.setAttribute('acnp_id',acnp_id);
+        _call_number_column_textbox.setAttribute('acns_id',acns_id);
 
         handle_change_precipitating_barcode_rendering(
             callnumber_composite_key,
@@ -822,7 +822,7 @@ g.gather_copies = function() {
                 var composite_key = acnc_id + ':' + acnp_id + ':' + callnumber + ':' + acns_id;
                 if (typeof g.volumes_scaffold[ou_id][composite_key] == 'undefined') {
                     g.volumes_scaffold[ou_id][composite_key] = {
-                        'node' : nl[i],
+                        //'node' : nl[i],
                         'callnumber_data' : {
                             'acn_id' : acn_id,
                             'acn_label' : callnumber,
@@ -832,10 +832,12 @@ g.gather_copies = function() {
                         },
                         'barcode_data' : []
                     }
+                    dump('fleshing volumes scaffold with ou_id = ' + ou_id + ' composite_key = ' + composite_key + ' acn_id = ' + acn_id + '\n');
                 }
             }
         };
         dump('volume_copy_creator: processed ' + nl.length + ' textbox nodes, consisting of ' + barcodes.length + ' barcodes and ' + v_count + 'volumes\n');
+        dump('volume scaffold = ' + js2JSON(g.volumes_scaffold) + '\n');
 
         for (var i = 0; i < barcodes.length; i++) {
             var acp_id = barcodes[i].getAttribute('acp_id') || g.new_acp_id--;
@@ -844,7 +846,7 @@ g.gather_copies = function() {
             var barcode = barcodes[i].value;
             var bmp_id = barcodes[i].getAttribute('bmp_id');
 
-            dump('placing ' + barcode + ' into composite_key bin ' + callnumber_composite_key + '\n');
+            dump('placing ' + barcode + ' for ou = ' + ou_id + ' into composite_key bin ' + callnumber_composite_key + '\n');
 
             if (typeof g.volumes_scaffold[ou_id] == 'undefined') {
                 dump('1: I want to remove this soon, so alert me if it is getting used, ou_id = ' + ou_id + '\n');