From e760f3b7006f43ffe8b48e4d8a83bbeed20dd63e Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 27 Apr 2009 19:48:39 +0000 Subject: [PATCH] created an Acqusitions menu with a couple of menu entries. experimental, probably will be hidden for 1.6 release git-svn-id: svn://svn.open-ils.org/ILS/trunk@12999 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 6 ++++ .../chrome/content/main/constants.js | 8 +++-- .../staff_client/chrome/content/main/menu.js | 35 +++++++++++++++++++ .../chrome/content/main/menu_frame_menus.xul | 15 ++++++++ .../content/main/menu_frame_overlay.xul | 1 + 5 files changed, 63 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index a740c69ae8..3ba51a3032 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -687,6 +687,12 @@ + + + + + + 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 3e8db5ee44..c00c79f2ea 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -311,7 +311,8 @@ const urls = { 'XUL_PATRON_BILL_WIZARD' : '/xul/server/patron/bill_wizard.xul', 'XUL_PATRON_DISPLAY' : '/xul/server/patron/display.xul', 'XUL_PATRON_HORIZ_DISPLAY' : '/xul/server/patron/display_horiz.xul', - 'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml', + //'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml', + 'XUL_PATRON_EDIT' : '/eg/actor/user/register', 'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xhtml', 'XUL_PATRON_HOLDS' : '/xul/server/patron/holds.xul', 'XUL_PATRON_INFO_NOTES' : '/xul/server/patron/info_notes.xul', @@ -342,5 +343,8 @@ const urls = { 'TEST_HTML' : '/xul/server/main/test.html', 'TEST_XUL' : '/xul/server/main/test.xul', 'VANDELAY' : '/vandelay/vandelay.xml', /* XXX how can we get the locale? */ - 'CONIFY' : '/conify/' + LOCALE + '/global/admin.html' + 'CONIFY' : '/conify/' + LOCALE + '/global/admin.html', + 'XUL_ACQ_PICKLIST' : '/eg/acq/picklist/list', + 'XUL_ACQ_UPLOAD' : '/eg/acq/picklist/upload', + 'XUL_ACQ_PO' : '/eg/acq/po/search', } 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 8130ab1c9a..8cb6af03ea 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -756,6 +756,41 @@ main.menu.prototype = { } } ], + + 'cmd_acq_view_picklist' : [ + ['oncommand'], + function() { + obj.set_tab( + obj.url_prefix(urls.XUL_ACQ_PICKLIST), + //{'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : false}, + {'tab_name' : 'Selection Lists', 'browser' : false}, + {'show_nav_buttons' : true, 'show_print_button' : true} + ); + } + ], + 'cmd_acq_view_po' : [ + ['oncommand'], + function() { + obj.set_tab( + obj.url_prefix(urls.XUL_ACQ_PO), + //{'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : false}, + {'tab_name' : 'Purchase Orders', 'browser' : false}, + {'show_nav_buttons' : true, 'show_print_button' : true} + ); + } + ], + 'cmd_acq_upload' : [ + ['oncommand'], + function() { + obj.set_tab( + obj.url_prefix(urls.XUL_ACQ_UPLOAD), + //{'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : false}, + {'tab_name' : 'Load Order Record', 'browser' : false}, + {'show_nav_buttons' : true, 'show_print_button' : true} + ); + } + ], + }; JSAN.use('util.controller'); 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 fad7cc4905..1945767d93 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 @@ -74,6 +74,10 @@ + + + + @@ -180,6 +184,17 @@ + + + + + + + + + + + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul index 8896f3ba58..43248cd10b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul @@ -71,6 +71,7 @@ +