From: erickson Date: Tue, 12 May 2009 13:54:59 +0000 (+0000) Subject: plugged in the rest of the admin menu entries X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e076a6438de723490085f830bbdcc32288a2b647;p=evergreen%2Ftadl.git plugged in the rest of the admin menu entries git-svn-id: svn://svn.open-ils.org/ILS/trunk@13142 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index e6cbd7ebfd..126759372a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -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' } diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 2ae2d947d8..c50e9d114e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -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() { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index 755fde19a4..dff67ba2e1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -73,7 +73,6 @@ - @@ -92,6 +91,9 @@ + + + @@ -264,6 +266,9 @@ + + + @@ -282,11 +287,7 @@ - - diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties index f72b3fb9c2..b0714da741 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties @@ -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