From a28eee789b184e2980251ddfdaf165cf24e91c21 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Sat, 19 Feb 2011 20:50:10 -0500 Subject: [PATCH] starting point from templates --- .../staff_client/server/cat/volume_copy_editor.js | 35 ++++++++++++++++++++ .../staff_client/server/cat/volume_copy_editor.xul | 37 ++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js create mode 100644 Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul 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 new file mode 100644 index 0000000000..99eca39871 --- /dev/null +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js @@ -0,0 +1,35 @@ +var error; + +function my_init() { + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } + JSAN.errorLevel = "die"; // none, warn, or die + JSAN.addRepository('/xul/server/'); + JSAN.use('util.error'); error = new util.error(); + error.sdump('D_TRACE','my_init() for main_test.xul'); + + dojo.require('openils.PermaCrud'); + + var types = new openils.PermaCrud( + { + authtoken :ses() + } + ).retrieveAll('coust'); + + dojo.forEach(types, + function(type) { + alert( js2JSON(type) ); + } + ); + + 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 new file mode 100644 index 0000000000..bd606c2a76 --- /dev/null +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul @@ -0,0 +1,37 @@ + + + + + + + + + + + + +]> + + + + + + + + + + + + +