From: Jason Etheridge Date: Fri, 20 May 2011 09:04:17 +0000 (-0400) Subject: usability tweak for controlling screen real estate, in unified vol/copy editor don... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9b7cab2a2f5c10c8588b00050445817a6ebfa667;p=evergreen%2Ftadl.git usability tweak for controlling screen real estate, in unified vol/copy editor don't embed the the Record Summary in the vol editor, but in the main wrapping UI. Also move CN batch edit bar into groupbox Signed-off-by: Jason Etheridge --- 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 7bc79c1a63..dcaac78175 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 @@ -145,11 +145,18 @@ function my_init() { alert('Error in volume_copy_creator.js, g.doc_id not valid'); window.close(); return; } - var sb = document.getElementById('summary_box'); while(sb.firstChild) sb.removeChild(sb.lastChild); - var summary = document.createElement('iframe'); sb.appendChild(summary); - summary.setAttribute('src',urls.XUL_BIB_BRIEF); - summary.setAttribute('flex','1'); - get_contentWindow(summary).xulG = { 'docid' : g.doc_id }; + + var sb = document.getElementById('summary_box'); + if (xul_param('no_bib_summary')) { + sb.hidden = true; + sb.nextSibling.hidden = true; /* splitter */ + } else { + while(sb.firstChild) sb.removeChild(sb.lastChild); + var summary = document.createElement('iframe'); sb.appendChild(summary); + summary.setAttribute('src',urls.XUL_BIB_BRIEF); + summary.setAttribute('flex','1'); + get_contentWindow(summary).xulG = { 'docid' : g.doc_id }; + } /***********************************************************************************************************/ /* Setup pcrud and fetch the monographic parts for this bib */ @@ -207,6 +214,10 @@ function my_init() { dump('Error in volume_copy_creator.js, my_init(), trying to auto-scroll to the far right: ' + E + '\n'); } + if (typeof xulG.volume_ui_callback_for_unified_interface == 'function') { + xulG.volume_ui_callback_for_unified_interface(); + } + } catch(E) { var err_msg = $("commonStrings").getFormattedString('common.exception', ['cat/volume_copy_creator.js', E]); try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); dump(js2JSON(E)); } 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 0cbf65df34..f48695a07e 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 @@ -47,24 +47,23 @@ - - -