this.error.sdump('D_LIST',s);
},
+ 'select_all' : function(params) {
+ var obj = this;
+ switch(this.node.nodeName) {
+ case 'tree' : return this._select_all_from_tree(params); break;
+ default: throw('NYI: Need ._select_all_from_() for ' + this.node.nodeName); break;
+ }
+ },
+
+ '_select_all_from_tree' : function(params) {
+ var obj = this;
+ this.node.view.selection.selectAll();
+ },
+
'retrieve_selection' : function(params) {
var obj = this;
switch(this.node.nodeName) {
'cmd_items_print' : [ ['command'], function() { obj.items_print(1); } ],
'cmd_items_print2' : [ ['command'], function() { obj.items_print(2); } ],
'cmd_items_renew' : [ ['command'], function() { obj.items_renew(1); } ],
+ 'cmd_items_renew_all' : [ ['command'], function() { obj.items_renew_all(); } ],
'cmd_items_renew2' : [ ['command'], function() { obj.items_renew(2); } ],
'cmd_items_edit' : [ ['command'], function() { obj.items_edit(1); } ],
'cmd_items_edit2' : [ ['command'], function() { obj.items_edit(2); } ],
}
},
+ 'items_renew_all' : function() {
+ try {
+ this.list.select_all();
+ this.items_renew(1);
+ } catch(E) {
+ this.error.standard_unexpected_error_alert('Items were not likely renewed',E);
+ }
+ },
+
'items_renew' : function(which) {
var obj = this;
try{
<commandset id="items_cmds">
<command id="cmd_items_print" />
<command id="cmd_items_renew" />
+ <command id="cmd_items_renew_all" />
<command id="cmd_items_claimed_returned" />
<command id="cmd_items_checkin" />
<command id="cmd_items_edit" />
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost" />
<menuitem label="Mark Claimed Returned" command="cmd_items_claimed_returned" />
<menuitem label="Renew" command="cmd_items_renew" />
+ <menuitem label="Renew All" command="cmd_items_renew_all" />
<menuitem label="Check In" command="cmd_items_checkin" />
<menuitem label="Add Billing" command="cmd_add_billing" />
</popup>
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost" />
<menuitem label="Mark Claimed Returned" command="cmd_items_claimed_returned" />
<menuitem label="Renew" command="cmd_items_renew" />
+ <menuitem label="Renew All" command="cmd_items_renew_all" />
<menuitem label="Check In" command="cmd_items_checkin" />
<menuitem label="Add Billing" command="cmd_add_billing" />
</menupopup>