created an Acqusitions menu with a couple of menu entries. experimental, probably...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Apr 2009 19:48:39 +0000 (19:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Apr 2009 19:48:39 +0000 (19:48 +0000)
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
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/content/main/menu_frame_overlay.xul

index a740c69..3ba51a3 100644 (file)
 <!ENTITY staff.main.menu.cat.vandelay.label "MARC Batch Import/Export">
 <!ENTITY staff.main.menu.cat.z39_50_import.accesskey "Z">
 <!ENTITY staff.main.menu.cat.z39_50_import.label "Import Record from Z39.50">
+
+<!ENTITY staff.main.menu.acq.label "Acquisitions">
+<!ENTITY staff.main.menu.acq.picklist.label "Selection Lists">
+<!ENTITY staff.main.menu.acq.upload.label "Load Order Record">
+<!ENTITY staff.main.menu.acq.po.label "Purchase Orders">
+
 <!ENTITY staff.main.menu.circ.barcode.retrieve_patron "Retrieve Patron by Barcode">
 <!ENTITY staff.main.menu.circ.barcode.retrieve_patron.accesskey "P">
 <!ENTITY staff.main.menu.circ.barcode.show_item "Show Item Status by Barcode">
index 3e8db5e..c00c79f 100644 (file)
@@ -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',
 }
index 8130ab1..8cb6af0 100644 (file)
@@ -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');
index fad7cc4..1945767 100644 (file)
        <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" />
+       <command id="cmd_acq_view_po" />
 </commandset>
 
 
        </menupopup>
 </menu>
 
+
+<!-- The Acquisitions menu on the main menu -->
+<menu id="main.menu.acq" label="&staff.main.menu.acq.label;">
+       <menupopup id="main.menu.acq.popup">
+               <menuitem label="&staff.main.menu.acq.picklist.label;" command="cmd_acq_view_picklist"/>
+               <menuitem label="&staff.main.menu.acq.upload.label;" command="cmd_acq_upload"/>
+               <menuitem label="&staff.main.menu.acq.po.label;" command="cmd_acq_view_po" />
+    </menupopup>
+</menu>
+
+
 <!-- The Search menu on the main menu -->
 <menu id="main.menu.search" label="&staff.main.menu.search.label;" accesskey="&staff.main.menu.search.accesskey;">
        <menupopup id="main.menu.search.popup">
index 8896f3b..43248cd 100644 (file)
@@ -71,6 +71,7 @@
                <menu id="main.menu.search" />
                <menu id="main.menu.circ" />
                <menu id="main.menu.cat" />
+               <menu id="main.menu.acq" />
                <spacer flex="1" />
                <menu id="main.menu.admin" />
         <!--