From 45b6c0503f2095fb5bd9e1975188c5f1b6ff5d88 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 20 May 2011 03:33:52 -0400 Subject: [PATCH] css hooks so we can hide class, affix, and part columns in volume creator/editor. can help with screen real estate with the horizontal vol/copy editor Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 7 +++++++ .../xul/staff_client/server/cat/volume_copy_creator.xul | 12 ++++++------ Open-ILS/xul/staff_client/server/cat/volume_editor.js | 12 +++++++++--- Open-ILS/xul/staff_client/server/cat/volume_editor.xul | 13 +++++++------ Open-ILS/xul/staff_client/server/skin/cat.css | 8 ++++++++ 5 files changed, 37 insertions(+), 15 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 1aea205c1..7bc79c1a6 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 @@ -297,15 +297,18 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) { var x = document.createElement('label'); r.appendChild(x); x.setAttribute('value', $("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.classification')); x.setAttribute('style','font-weight: bold'); + x.setAttribute('class','cn_class'); x = document.createElement('label'); r.appendChild(x); x.setAttribute('value', $("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.prefix')); x.setAttribute('style','font-weight: bold'); + x.setAttribute('class','cn_prefix'); x = document.createElement('label'); r.appendChild(x); x.setAttribute('value', $("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.call_nums')); 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.suffix')); x.setAttribute('style','font-weight: bold'); + x.setAttribute('class','cn_suffix'); x = document.createElement('label'); r.appendChild(x); x.setAttribute('value',$("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.num_of_copies')); x.setAttribute('style','font-weight: bold'); @@ -401,10 +404,12 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) { /**** CLASSIFICATION COLUMN ****/ var classification_column_box = document.createElement('vbox'); + classification_column_box.setAttribute('class','cn_class'); r.appendChild(classification_column_box); /**** PREFIX COLUMN ****/ var prefix_column_box = document.createElement('vbox'); + prefix_column_box.setAttribute('class','cn_prefix'); r.appendChild(prefix_column_box); /**** CALLNUMBER COLUMN ****/ @@ -464,6 +469,7 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) { /**** SUFFIX COLUMN ****/ var suffix_column_box = document.createElement('vbox'); + suffix_column_box.setAttribute('class','cn_suffix'); r.appendChild(suffix_column_box); var suffix_column_menulist = g.render_suffix_menu(call_number_column_textbox); suffix_column_menulist.addEventListener( @@ -664,6 +670,7 @@ g.render_barcode_entry = function(node,callnumber_composite_key,count,ou_id) { tb = document.createElement('textbox'); tb_part_box.appendChild(tb); part_menu = g.render_part_menu(tb); + part_menu.setAttribute('class','part_column'); tb_part_box.appendChild(part_menu); set_handlers = true; } else { diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul index 9e88c1ae6..0cbf65df3 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul @@ -50,15 +50,15 @@