From 703ebf99bf2c56ef23cfb98624998dfcaeb5c529 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Sat, 19 Feb 2011 21:50:14 -0500 Subject: [PATCH] load volume editor and passthru xulG --- .../staff_client/server/cat/volume_copy_editor.js | 24 ++++++++++------------ .../staff_client/server/cat/volume_copy_editor.xul | 6 +++++- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js index 99eca39871..072f3d75ee 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js @@ -9,24 +9,22 @@ function my_init() { JSAN.use('util.error'); error = new util.error(); error.sdump('D_TRACE','my_init() for main_test.xul'); - dojo.require('openils.PermaCrud'); + /*if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { + try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); } + }*/ - var types = new openils.PermaCrud( + JSAN.use('util.browser'); + var volume_pane = new util.browser(); + volume_pane.init( { - authtoken :ses() - } - ).retrieveAll('coust'); - - dojo.forEach(types, - function(type) { - alert( js2JSON(type) ); + 'url' : urls.XUL_VOLUME_COPY_CREATOR_ORIGINAL, + 'push_xulG' : true, + 'alt_print' : false, + 'browser_id' : 'volume_pane', + 'passthru_content_params' : xulG } ); - if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { - try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); } - } - } catch(E) { try { error.standard_unexpected_error_alert('main/test.xul',E); } catch(F) { alert(E); } } diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul index bd606c2a76..521babf620 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul @@ -31,7 +31,11 @@