From 60b4945da4ab791b09a290b146a978f4eae7f87c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Oct 2014 17:10:26 -0400 Subject: [PATCH] KMAIN-1345: Remove Copy Note column from left pane Cross-port: a82839c --- Open-ILS/xul/staff_client/server/cat/update_items.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/update_items.js b/Open-ILS/xul/staff_client/server/cat/update_items.js index 0037d7c23e..270ec356a8 100644 --- a/Open-ILS/xul/staff_client/server/cat/update_items.js +++ b/Open-ILS/xul/staff_client/server/cat/update_items.js @@ -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){ -- 2.11.0