From cfc68f04ee84a461539ae7dcf1ee467fadff7eb5 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 10 Apr 2012 15:35:31 -0400 Subject: [PATCH] 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 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 2 ++ Open-ILS/xul/staff_client/chrome/content/main/menu.js | 17 +++++++++++++++++ .../chrome/content/main/menu_frame_menus.xul | 2 ++ .../chrome/content/main/menu_frame_overlay.xul | 5 +++++ Open-ILS/xul/staff_client/server/patron/holds.js | 10 +++++++++- Open-ILS/xul/staff_client/server/patron/holds.xul | 1 + 6 files changed, 36 insertions(+), 1 deletion(-) 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" /> +