Since we intend to push out a 1.2 staff client, I want to stub out Volume and User...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Aug 2007 15:02:06 +0000 (15:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Aug 2007 15:02:06 +0000 (15:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7735 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Open-ILS/xul/staff_client/server/cat/volume_buckets.xul [new file with mode: 0755]
Open-ILS/xul/staff_client/server/patron/user_buckets.xul [new file with mode: 0755]

index e5bbd79..98168fb 100644 (file)
@@ -268,6 +268,8 @@ const urls = {
        'XUL_STANDALONE' : 'chrome://open_ils_staff_client/content/circ/offline.xul',
        'XUL_STAT_CAT_EDIT' : '/xul/server/admin/stat_cat_editor.xhtml',
        'XUL_SURVEY_WIZARD' : 'chrome://open_ils_staff_client/content/admin/survey_wizard.xul',
+       'XUL_USER_BUCKETS' : '/xul/server/patron/user_buckets.xul',
+       'XUL_VOLUME_BUCKETS' : '/xul/server/cat/volume_buckets.xul',
        'XUL_VOLUME_COPY_CREATOR' : '/xul/server/cat/volume_copy_creator.xul',
        'XUL_VOLUME_EDITOR' : '/xul/server/cat/volume_editor.xul',
        'XUL_Z3950_IMPORT' : '/xul/server/cat/z3950.xul',
index cf51827..49644b1 100644 (file)
@@ -71,6 +71,13 @@ main.menu.prototype = {
                                        obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':'Copy Buckets'},{});
                                }
                        ],
+                       'cmd_edit_volume_buckets' : [
+                               ['oncommand'],
+                               function() {
+                                       obj.data.stash_retrieve();
+                                       obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':'Volume Buckets'},{});
+                               }
+                       ],
                        'cmd_edit_record_buckets' : [
                                ['oncommand'],
                                function() {
@@ -78,6 +85,14 @@ main.menu.prototype = {
                                        obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':'Record Buckets'},{});
                                }
                        ],
+                       'cmd_edit_user_buckets' : [
+                               ['oncommand'],
+                               function() {
+                                       obj.data.stash_retrieve();
+                                       obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':'User Buckets'},{});
+                               }
+                       ],
+
 
                        'cmd_replace_barcode' : [
                                ['oncommand'],
index a37fb61..5ab5756 100644 (file)
@@ -16,7 +16,9 @@
        <command id="cmd_shutdown" />
 
        <command id="cmd_edit_copy_buckets" />
+       <command id="cmd_edit_volume_buckets" />
        <command id="cmd_edit_record_buckets" />
+       <command id="cmd_edit_user_buckets" />
 
        <command id="cmd_cat_main" key="cat-main-key" />
        <command id="cmd_create_marc" />
 <menu id="main.menu.edit" label="&staff.main.menu.edit.label;" accesskey="&staff.main.menu.edit.key;">
        <menupopup id="main.menu.edit.popup">
                <menuitem label="Copy Buckets" command="cmd_edit_copy_buckets" accesskey="B"/>
-               <menuitem label="Volume Buckets" command="cmd_broken" accesskey="V"/>
+               <menuitem label="Volume Buckets" command="cmd_edit_volume_buckets" accesskey="V"/>
                <menuitem label="Record Buckets" command="cmd_edit_record_buckets" accesskey="R"/>
+               <menuitem label="User Buckets" command="cmd_edit_user_buckets" accesskey="U"/>
                <menuseparator />
                <menuitem label="Replace Barcode" command="cmd_replace_barcode"/>
        </menupopup>
                <menuitem disabled="true" label="&staff.main.menu.cat.dedup.label;" accesskey="&staff.main.menu.cat.dedup.key;" command="cmd_broken"/>
                -->
                <menuitem label="Manage Copy Buckets" command="cmd_edit_copy_buckets" accesskey="B"/>
-               <menuitem label="Manage Volume Buckets" command="cmd_broken" accesskey="V"/>
+               <menuitem label="Manage Volume Buckets" command="cmd_edit_volume_buckets" accesskey="V"/>
                <menuitem label="Manage Record Buckets" command="cmd_edit_record_buckets" accesskey="R"/>
                <menuseparator />
                <menuitem label="Create New Marc Record" accesskey="N" command="cmd_create_marc"/>
diff --git a/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul b/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
new file mode 100755 (executable)
index 0000000..ced2ec6
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!-- Application: Evergreen Staff Client -->
+<!-- Screen: Example Template for remote xul -->
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- STYLESHEETS -->
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- LOCALIZATION -->
+<!DOCTYPE window PUBLIC "" ""[
+       <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+]>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- OVERLAYS -->
+<?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
+
+<window id="example_template_win" 
+       onload="try { my_init(); } catch(E) { alert(E); }"
+       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+       <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+       <!-- BEHAVIOR -->
+        <script type="text/javascript">
+               var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
+       </script>
+        <scripts id="openils_util_scripts"/>
+
+       <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+       <script>
+       <![CDATA[
+               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'); g.error = new util.error();
+                               g.error.sdump('D_TRACE','my_init() for cat/volume_buckets.xul');
+
+                               if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+                                       try { window.xulG.set_tab_name('Volume Buckets'); } catch(E) { alert(E); }
+                               }
+
+                       } catch(E) {
+                               try { g.error.standard_unexpected_error_alert('cat/volume_buckets.xul',E); } catch(F) { alert(E); }
+                       }
+               }
+
+       ]]>
+       </script>
+
+       <label value="Just a stub, Not Yet Implemented"/>
+
+</window>
+
diff --git a/Open-ILS/xul/staff_client/server/patron/user_buckets.xul b/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
new file mode 100755 (executable)
index 0000000..835da92
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!-- Application: Evergreen Staff Client -->
+<!-- Screen: Example Template for remote xul -->
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- STYLESHEETS -->
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- LOCALIZATION -->
+<!DOCTYPE window PUBLIC "" ""[
+       <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+]>
+
+<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+<!-- OVERLAYS -->
+<?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
+
+<window id="example_template_win" 
+       onload="try { my_init(); } catch(E) { alert(E); }"
+       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+       <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
+       <!-- BEHAVIOR -->
+        <script type="text/javascript">
+               var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
+       </script>
+        <scripts id="openils_util_scripts"/>
+
+       <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+       <script>
+       <![CDATA[
+               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'); g.error = new util.error();
+                               g.error.sdump('D_TRACE','my_init() for patron/user_buckets.xul');
+
+                               if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+                                       try { window.xulG.set_tab_name('User Buckets'); } catch(E) { alert(E); }
+                               }
+
+                       } catch(E) {
+                               try { g.error.standard_unexpected_error_alert('patron/user_buckets.xul',E); } catch(F) { alert(E); }
+                       }
+               }
+
+       ]]>
+       </script>
+
+       <label value="Just a stub, Not Yet Implemented"/>
+
+</window>
+