From b8d2f78e65ba682053122143eca24f45799480d9 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 26 May 2011 15:33:20 -0400 Subject: [PATCH] honor ui.unified_volume_copy_editor setting with Add Volumes in Holdings Maintenance Signed-off-by: Jason Etheridge Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index 5f2ee1dd0d..7a734fc9dc 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -593,8 +593,15 @@ cat.copy_browser.prototype = { var title = document.getElementById('catStrings').getString('staff.cat.copy_browser.add_volume.title'); - var horizontal_interface = String( obj.data.hash.aous['ui.cat.volume_copy_editor.horizontal'] ) == 'true'; - var url = window.xulG.url_prefix( horizontal_interface ? urls.XUL_VOLUME_COPY_CREATOR_HORIZONTAL : urls.XUL_VOLUME_COPY_CREATOR ); + var url; + var unified_interface = String( obj.data.hash.aous['ui.unified_volume_copy_editor'] ) == 'true'; + if (unified_interface) { + var horizontal_interface = String( obj.data.hash.aous['ui.cat.volume_copy_editor.horizontal'] ) == 'true'; + url = xulG.url_prefix( horizontal_interface ? urls.XUL_VOLUME_COPY_CREATOR_HORIZONTAL : urls.XUL_VOLUME_COPY_CREATOR ); + } else { + url = xulG.url_prefix( urls.XUL_VOLUME_COPY_CREATOR_ORIGINAL ); + } + var w = xulG.new_tab( url, { 'tab_name' : title }, -- 2.11.0