From: Jason Etheridge Date: Tue, 10 Apr 2012 19:35:31 +0000 (-0400) Subject: menu entry Circulation->Clear Shelf-Expired Holds X-Git-Tag: sprint4-merge-nov22~4189 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cfc68f04ee84a461539ae7dcf1ee467fadff7eb5;p=working%2FEvergreen.git menu entry Circulation->Clear Shelf-Expired Holds This spawns the Browse Hold Shelf interface but automatically triggers the View Shelf-Expired Holds and Clear these Holds options. Signed-off-by: Jason Etheridge Signed-off-by: Michael Peters Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 8839740103..8180820806 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1017,6 +1017,8 @@ + + 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 86e08e104b..f3c02228d1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -567,6 +567,23 @@ main.menu.prototype = { obj.command_tab(event,obj.url_prefix(urls.XUL_HOLDS_BROWSER)+'?shelf=1',{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds_shelf.tab') },{}); } ], + 'cmd_clear_holds_shelf' : [ + ['oncommand'], + function(event) { + obj.data.stash_retrieve(); + obj.command_tab( + event, + obj.url_prefix(urls.XUL_HOLDS_BROWSER), + { + 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds_shelf.tab') + }, + { + 'shelf':1, + 'clear':true + } + ); + } + ], 'cmd_circ_hold_pull_list' : [ ['oncommand'], function(event) { 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 5316bbf715..836d2b3344 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 @@ -32,6 +32,7 @@ + @@ -325,6 +326,7 @@ + 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 921fdfa2c3..9588022d93 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 @@ -182,6 +182,11 @@ command="cmd_browse_holds_shelf" templateid="browse_holds_shelf" /> +