<!ENTITY staff.main.menu.circ.found.label "Mark Found">
<!ENTITY staff.main.menu.circ.hold_browse.accesskey "B">
<!ENTITY staff.main.menu.circ.hold_browse.label "Browse Holds Shelf">
+<!ENTITY staff.main.menu.circ.hold_clear.accesskey "">
+<!ENTITY staff.main.menu.circ.hold_clear.label "Clear Shelf-Expired Holds">
<!ENTITY staff.main.menu.circ.hold_capture.accesskey "H">
<!ENTITY staff.main.menu.circ.hold_capture.label "Capture Holds">
<!ENTITY staff.main.menu.circ.hold_pull.accesskey "S">
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) {
<command id="cmd_circ_hold_pull_list" />
<command id="cmd_browse_holds" />
<command id="cmd_browse_holds_shelf" />
+ <command id="cmd_clear_holds_shelf" />
<command id="cmd_in_house_use" />
<command id="cmd_scan_item_as_missing_pieces" />
<command id="cmd_copy_status" />
<menuitem label="&staff.main.menu.circ.hold_capture.label;" accesskey="&staff.main.menu.circ.hold_capture.accesskey;" command="cmd_circ_hold_capture"/>
<menuitem label="&staff.main.menu.circ.hold_pull.label;" accesskey="&staff.main.menu.circ.hold_pull.accesskey;" command="cmd_circ_hold_pull_list"/>
<menuitem label="&staff.main.menu.circ.hold_browse.label;" command="cmd_browse_holds_shelf" accesskey="&staff.main.menu.circ.hold_browse.accesskey;"/>
+ <menuitem label="&staff.main.menu.circ.hold_clear.label;" command="cmd_clear_holds_shelf" accesskey="&staff.main.menu.circ.hold_clear.accesskey;"/>
<menuitem label="&staff.main.menu.circ.place_hold.label;" accesskey="&staff.main.menu.circ.place_hold.accesskey;" command="cmd_search_opac"/>
<menuseparator />
<menuitem label="&staff.main.menu.circ.barcode.show_item;" accesskey="&staff.main.menu.circ.barcode.show_item.accesskey;" command="cmd_copy_status"/>
command="cmd_browse_holds_shelf"
templateid="browse_holds_shelf" />
<toolbarbutton
+ label="&staff.main.menu.circ.hold_clear.label;"
+ tooltiptext="&staff.main.menu.circ.hold_clear.label;"
+ command="cmd_clear_holds_shelf"
+ templateid="clear_holds_shelf" />
+ <toolbarbutton
label="&staff.main.menu.circ.patron_retrieve.label;"
tooltiptext="&staff.main.menu.circ.patron_retrieve.label;"
command="cmd_retrieve_last_patron"
if (obj.controller.view.lib_menu) obj.controller.view.lib_menu.disabled = true;
}
obj.controller.render();
- obj.retrieve(true);
+ if (params['clear']) {
+ JSAN.use('util.widgets');
+ var x = document.getElementById('expired_checkbox');
+ x.checked = true;
+ obj.expired = true;
+ util.widgets.dispatch('command','cmd_clear_expired_onshelf_holds');
+ } else {
+ obj.retrieve(true);
+ }
obj.controller.view.cmd_retrieve_patron.setAttribute('disabled','true');
obj.controller.view.cmd_holds_edit_pickup_lib.setAttribute('disabled','true');
'docid' : xul_param('docid'),
'shelf' : xul_param('shelf'),
'pull' : xul_param('pull'),
+ 'clear' : xul_param('clear')
}
);
window.refresh = function(p) { g.holds.list.clear(); g.holds.retrieve(p); }