plugged in the rest of the admin menu entries
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 May 2009 13:54:59 +0000 (13:54 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 May 2009 13:54:59 +0000 (13:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13142 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/chrome/locale/en-US/offline.properties

index e6cbd7e..1267593 100644 (file)
@@ -347,5 +347,7 @@ const urls = {
     'XUL_ACQ_PICKLIST' : '/eg/acq/picklist/list',
     'XUL_ACQ_UPLOAD' : '/eg/acq/picklist/upload',
     'XUL_ACQ_PO' : '/eg/acq/po/search',
-    'EG_WEB_BASE' : '/eg'
+    'EG_WEB_BASE' : '/eg',
+    'XUL_LOCAL_ADMIN_BASE' : '/xul/server/admin',
+    'XUL_REPORTS' : '/reports/oils_rpt.xhtml'
 }
index 2ae2d94..c50e9d1 100644 (file)
@@ -78,6 +78,24 @@ main.menu.prototype = {
             );
         }
 
+        function open_admin_page(path, labelKey, addSes) {
+
+            // tab label
+            labelKey = labelKey || 'menu.cmd_open_conify.tab';
+            label = offlineStrings.getString(labelKey);
+
+            // URL
+            var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_LOCAL_ADMIN_BASE + '/' + path);
+            if(addSes) loc += window.escape('?ses=' + ses());
+
+            obj.set_tab( 
+                loc, 
+                {'tab_name' : label, 'browser' : false }, 
+                {'no_xulG' : false, 'show_print_button' : false} 
+            );
+        }
+
+
 
                var cmd_map = {
                        'cmd_broken' : [
@@ -438,57 +456,62 @@ main.menu.prototype = {
                                ['oncommand'],
                                function() { 
                                        var loc = urls.XUL_REMOTE_BROWSER + '?url=' + 
-                        window.escape(urls.VANDELAY+'?ses='+window.escape(ses()));
+                        window.escape(urls.EG_WEB_BASE + '/vandelay/vandelay');
                                        obj.set_tab( 
                                                loc, 
                                                {'tab_name' : offlineStrings.getString('menu.cmd_open_vandelay.tab'), 'browser' : false }, 
                                                {'no_xulG' : false, 'show_print_button' : false } 
                                        );
+                               }
+                       ],
 
+                       'cmd_local_admin_reports' : [
+                               ['oncommand'],
+                               function() { 
+                                       var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_REPORTS + '?ses=' + ses());
+                                       obj.set_tab( 
+                                               loc, 
+                                               {'tab_name' : offlineStrings.getString('menu.cmd_local_admin_reports.tab'), 'browser' : false }, 
+                                               {'no_xulG' : false, 'show_print_button' : false } 
+                                       );
                                }
                        ],
 
+            'cmd_local_admin_transit_list' : [
+                ['oncommand'],
+                function() { open_admin_page('transit_list.xul', 'menu.cmd_local_admin_transit_list.tab'); }
+            ],
+            'cmd_local_admin_cash_reports' : [
+                ['oncommand'],
+                function() { open_admin_page('cash_reports.xhtml', 'menu.cmd_local_admin_cash_reports.tab', true); }
+            ],
             'cmd_local_admin_fonts_and_sounds' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('font_settings.xul', 'menu.cmd_local_admin_fonts_and_sounds.tab'); }
             ],
             'cmd_local_admin_printer' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('printer_settings.html', 'menu.cmd_local_admin_printer.tab', true); }
             ],
             'cmd_local_admin_closed_dates' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('closed_dates.xhtml', 'menu.cmd_local_admin_closed_dates.tab', true); }
             ],
             'cmd_local_admin_copy_locations' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('copy_locations.xhtml', 'menu.cmd_local_admin_copy_locations.tab', true); }
             ],
             'cmd_local_admin_lib_settings' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('org_unit_settings.xhtml', 'menu.cmd_local_admin_lib_settings.tab', true); }
             ],
             'cmd_local_admin_non_cat_types' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('non_cat_types.xhtml', 'menu.cmd_local_admin_non_cat_types.tab', true); }
             ],
             'cmd_local_admin_stat_cats' : [
                 ['oncommand'],
-                function() { 
-                    alert(123);
-                }
+                function() { open_admin_page('stat_cat_editor.xhtml', 'menu.cmd_local_admin_stat_cats.tab', true); }
             ],
             'cmd_local_admin_standing_penalty' : [
                 ['oncommand'],
@@ -547,21 +570,6 @@ main.menu.prototype = {
                 function() { open_conify_page('config/circ_modifier'); }
             ],
 
-
-                       'cmd_open_conify' : [
-                               ['oncommand'],
-                               function() { 
-                                       var loc = urls.XUL_REMOTE_BROWSER + '?url=' + 
-                        window.escape(urls.CONIFY+'/admin.html?ses='+window.escape(ses()));
-                                       obj.set_tab( 
-                                               loc, 
-                                               {'tab_name' : offlineStrings.getString('menu.cmd_open_conify.tab'), 'browser' : false }, 
-                                               {'no_xulG' : false, 'show_print_button' : false } 
-                                       );
-
-                               }
-                       ],
-
                        'cmd_reprint' : [
                                ['oncommand'],
                                function() {
index 755fde1..dff67ba 100644 (file)
@@ -73,7 +73,6 @@
        <command id="cmd_test" />
        <command id="cmd_broken" disabled="true" />
        <command id="cmd_open_vandelay" />
-       <command id="cmd_open_conify" />
     
        <command id="cmd_acq_view_picklist" />
        <command id="cmd_acq_upload" />
@@ -92,6 +91,9 @@
     <command id="cmd_local_admin_idl_field_doc"/>
     <command id="cmd_local_admin_action_trigger"/>
     <command id="cmd_local_admin_survey"/>
+    <command id="cmd_local_admin_reports"/>
+    <command id="cmd_local_admin_cash_reports"/>
+    <command id="cmd_local_admin_transit_list"/>
 
     <!-- server admin menu commands -->
     <command id="cmd_server_admin_org_type"/>
                 <menuitem label="&staff.main.menu.admin.local_admin.conify.idl_field_doc.label;" command="cmd_local_admin_idl_field_doc"/>
                 <menuitem label="&staff.main.menu.admin.local_admin.conify.action_trigger.label;" command="cmd_local_admin_action_trigger"/>
                 <menuitem label="&staff.main.menu.admin.local_admin.conify.survey.label;" command="cmd_local_admin_survey"/>
+                <menuitem label="&staff.server.admin.index.reports;" command="cmd_local_admin_reports"/>
+                <menuitem label="&staff.server.admin.index.cash_reports;" command="cmd_local_admin_cash_reports"/>
+                <menuitem label="&staff.server.admin.index.transit_list;" command="cmd_local_admin_transit_list"/>
             </menupopup>
         </menu>
                <menu id="main.menu.admin.server" label="&staff.main.menu.admin.server_admin.label;">
 
                <menuseparator />
                <menuitem label="&staff.main.menu.admin.local_admin.label;" accesskey="&staff.main.menu.admin.local_admin.accesskey;" command="cmd_local_admin"/>
-               <menuitem label="&staff.server.admin.index.conify;" command="cmd_open_conify"/>
                <menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_adv_user_edit"/>
-        <!--
-               <menuitem label="&staff.main.menu.admin.survey_wizard.label;" accesskey="&staff.main.menu.admin.survey_wizard.accesskey;" command="cmd_survey_wizard"/>
-        -->
                <menuitem label="&staff.main.menu.admin.toggle_buttonbar.label;" accesskey="&staff.main.menu.admin.toggle_buttonbar.accesskey;" command="cmd_toggle_buttonbar"/>
                <menuseparator />
                <menu id="main.menu.admin.sub" accesskey="&staff.main.menu.admin.developer.accesskey;" label="&staff.main.menu.admin.developer.label;">
index f72b3fb..b0714da 100644 (file)
@@ -204,3 +204,13 @@ list.actions.csv_to_file.label=Save List CSV to File
 list.actions.csv_to_file.accesskey=F
 list.actions.save_column_configuration.label=Save Column Configuration
 list.actions.save_column_configuration.accesskey=S
+menu.cmd_local_admin_fonts_and_sounds.tab=Global Font and Sound Settings
+menu.cmd_local_admin_printer.tab=Printer Settings Editor
+menu.cmd_local_admin_closed_dates.tab=Closed Dates Editor
+menu.cmd_local_admin_copy_locations.tab=Copy Locations Editor
+menu.cmd_local_admin_lib_settings.tab=Library Settings Editor
+menu.cmd_local_admin_non_cat_types.tab=Non-cataloged Types Editor
+menu.cmd_local_admin_stat_cats.tab=Statistical Categories Editor
+menu.cmd_local_admin_reports.tab=Reports
+menu.cmd_local_admin_cash_reports.tab=Cash Reports
+menu.cmd_local_admin_transit_list.tab=Transits