load volume editor and passthru xulG
authorJason Etheridge <jason@esilibrary.com>
Sun, 20 Feb 2011 02:50:14 +0000 (21:50 -0500)
committerJason Etheridge <jason@esilibrary.com>
Wed, 2 Mar 2011 15:20:57 +0000 (10:20 -0500)
Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js
Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul

index 99eca39..072f3d7 100644 (file)
@@ -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); }
     }
index bd606c2..521babf 100644 (file)
     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
     <script type="text/javascript" src="volume_copy_editor.js"/>
 
-    <label value="retrieving coust's with dojo and PermaCrud..."/>
+    <vbox flex="1">
+        <browser id="volume_pane" flex="1" />
+        <splitter resizeafter="flex" resizebefore="flex"><grippy/></splitter>
+        <browser id="item_pane" flex="1" />
+    </vbox>
 
 </window>