KMAIN-1345: Remove Copy Note column from left pane
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:10:26 +0000 (17:10 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: a82839c

Open-ILS/xul/staff_client/server/cat/update_items.js

index 0037d7c..270ec35 100644 (file)
@@ -493,9 +493,6 @@ g.render_loaded_lineitem = function(){
                 x = document.createElement('label'); r.appendChild(x);
                     x.setAttribute('value',$("catStrings").getString('staff.cat.copy_editor.status'));
                     x.setAttribute('style','font-weight: bold');
-                x = document.createElement('label'); r.appendChild(x);
-                    x.setAttribute('value',$("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.notes'));
-                    x.setAttribute('style','font-weight: bold');
 
 
                 var row = document.createElement('row');
@@ -569,13 +566,11 @@ g.render_barcode = function(
     if (status_column_box){
 
         // This will throw an error if status_column_box doesn't exist
-        var note_column_box = status_column_box.nextSibling;
 
         while (barcode_column_box.childNodes.length > Number(number_of_copies_textbox.value)) {
 
             barcode_column_box.removeChild( barcode_column_box.lastChild );
             status_column_box.removeChild( status_column_box.lastChild );
-            note_column_box.removeChild( note_column_box.lastChild );
         }
     }
 
@@ -678,8 +673,6 @@ g.render_callnumber_copy_count_entry = function(rows,row,ou_id,isFirst,vol_id){
     r.appendChild(status_column_box);
 
     /**** NOTE COLUMN ****/
-    var note_column_box = document.createElement('vbox');
-    r.appendChild(note_column_box);
 
     try {
 
@@ -733,7 +726,6 @@ g.render_volume_copies = function(barcode_column,acn_id,count,ou_id,row) {
         // Add the status and note boxes
         var status_column = barcode_column.nextSibling;
 
-        var note_column = status_column.nextSibling;
 
         // For each copy
         for (var i = 0; i < count; i++) {
@@ -771,7 +763,6 @@ g.render_volume_copies = function(barcode_column,acn_id,count,ou_id,row) {
 
                 // Make notes
                 note_node = document.createElement('hbox');
-                note_column.appendChild(note_node);
 
                 note_textbox = document.createElement('textbox');
 
@@ -976,7 +967,7 @@ g.gather_copies = function() {
 
             copy_map[acp_id] = {"ou_id" : ou_id, "barcode" : barcode, "acn_id" : acn_id }
 
-            var note = notes[i].value;
+            var note = null;
 
             if (note !== null && note.length > 0 && barcode !== null && barcode.length > 0){