From: senator Date: Fri, 18 Jun 2010 17:13:30 +0000 (+0000) Subject: Acq: more menu reorganization X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d24a78fe1d8ec9569b4ff2f5a617e3b649b84500;p=evergreen%2Fbjwebb.git Acq: more menu reorganization New entry points to selection list, PO, and invoice interfaces. Also replaced visible references to "Pick List" with "Selection List" wherever I could think of, for consistency's sake. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16762 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index f0df743c0..e2dffce7c 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -5559,9 +5559,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + - + @@ -5760,7 +5760,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + @@ -5821,7 +5821,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + diff --git a/Open-ILS/web/js/ui/default/acq/search/unified.js b/Open-ILS/web/js/ui/default/acq/search/unified.js index 87563399c..9b279b2a9 100644 --- a/Open-ILS/web/js/ui/default/acq/search/unified.js +++ b/Open-ILS/web/js/ui/default/acq/search/unified.js @@ -791,20 +791,58 @@ function ResultManager(liPager, poGrid, plGrid, invGrid) { function URIManager() { var self = this; + this.cannedSearches = { + "po": { + "search_object": { + "acqpo": [ + {"ordering_agency": openils.User.user.ws_ou()}, + {"state": "on-order"} + ] + }, + "result_type": "purchase_order", + "conjunction": "and" + }, + "pl": { + "search_object": { + "acqpl": [ + {"owner": openils.User.user.usrname()} + ] + }, + "result_type": "picklist", + "conjunction": "and" + }, + "inv": { + "search_object": { + "acqinv": [ + {"complete": "f"}, + {"receiver": openils.User.user.ws_ou()} + ] + }, + "result_type": "invoice", + "conjunction": "and" + } + }; - this.search_object = cgi.param("so"); - if (this.search_object) - this.search_object = base64Decode(this.search_object); - - this.result_type = cgi.param("rt"); - if (this.result_type) { + if (this.canned = cgi.param("ca")) { /* assignment */ + dojo.mixin(this, this.cannedSearches[this.canned]); dojo.byId("acq-unified-result-type").setValue(this.result_type); dojo.byId("acq-unified-result-type").onchange(); - } - - this.conjunction = cgi.param("c"); - if (this.conjunction) dojo.byId("acq-unified-conjunction").setValue(this.conjunction); + } else { + this.search_object = cgi.param("so"); + if (this.search_object) + this.search_object = base64Decode(this.search_object); + + this.result_type = cgi.param("rt"); + if (this.result_type) { + dojo.byId("acq-unified-result-type").setValue(this.result_type); + dojo.byId("acq-unified-result-type").onchange(); + } + + this.conjunction = cgi.param("c"); + if (this.conjunction) + dojo.byId("acq-unified-conjunction").setValue(this.conjunction); + } } /* onload */ diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 3d5da38c0..638332120 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -820,22 +820,26 @@ - - + + + + + + + + + + + + - - - - - - diff --git a/Open-ILS/web/templates/default/acq/search/unified.tt2 b/Open-ILS/web/templates/default/acq/search/unified.tt2 index 97f09cf6b..46a334209 100644 --- a/Open-ILS/web/templates/default/acq/search/unified.tt2 +++ b/Open-ILS/web/templates/default/acq/search/unified.tt2 @@ -27,7 +27,7 @@ - + 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 18ed6ce27..b679c1cc2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -780,17 +780,17 @@ main.menu.prototype = { ['oncommand'], function() { open_eg_web_page('acq/invoice/view?create=1', 'menu.cmd_acq_create_invoice.tab'); } ], - 'cmd_acq_view_picklist' : [ + 'cmd_acq_view_my_pl' : [ ['oncommand'], - function() { open_eg_web_page('acq/picklist/list', 'menu.cmd_acq_view_picklist.tab'); } + function() { open_eg_web_page('acq/search/unified?ca=pl', 'menu.cmd_acq_unified_search.tab'); } ], - 'cmd_acq_view_po' : [ + 'cmd_acq_view_local_po' : [ ['oncommand'], - function() { open_eg_web_page('acq/po/search', 'menu.cmd_acq_view_po.tab'); } + function() { open_eg_web_page('acq/search/unified?ca=po', 'menu.cmd_acq_unified_search.tab'); } ], - 'cmd_acq_view_po_events' : [ + 'cmd_acq_view_local_inv' : [ ['oncommand'], - function() { open_eg_web_page('acq/po/events', 'menu.cmd_acq_view_po_events.tab'); } + function() { open_eg_web_page('acq/search/unified?ca=inv', 'menu.cmd_acq_unified_search.tab'); } ], 'cmd_acq_user_requests' : [ ['oncommand'], 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 0569db577..d094383c6 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 @@ -78,10 +78,10 @@ - + + + - - @@ -268,16 +268,22 @@ - - + + + + + + + + + + + - - - 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 2f9998753..7e84bc940 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 @@ -225,13 +225,11 @@ menu.cmd_local_admin_reports.tab=Reports menu.cmd_local_admin_cash_reports.tab=Cash Reports menu.cmd_local_admin_transit_list.tab=Transits menu.cmd_acq_create_invoice.tab=New Invoice -menu.cmd_acq_view_picklist.tab=Selection Lists menu.cmd_acq_bib_search.tab=Title Search menu.cmd_acq_from_bib.tab=Import Catalog Records menu.cmd_acq_unified_search.tab=Acquisitions Search menu.cmd_acq_upload.tab=Load Order Record menu.cmd_acq_new_brief_record.tab=New Brief Record -menu.cmd_acq_view_po.tab=Purchase Orders menu.cmd_acq_view_po_events.tab=Purchase Order Events menu.cmd_acq_user_requests.tab=User Requests menu.cmd_acq_claim_eligible.tab=Claim-Eligible Items