'on_select' : function(ev) {
JSAN.use('util.functional');
var sel = obj.list.retrieve_selection();
+ obj.controller.view.sel_clip.setAttribute('disabled',sel.length < 1);
obj.retrieve_ids = util.functional.map_list(
sel,
function(o) { return JSON2js( o.getAttribute('retrieve_id') ); }
obj.controller.init(
{
'control_map' : {
+ 'sel_clip' : [
+ ['command'],
+ function() { obj.list.clipboard(); }
+ ],
'cmd_broken' : [
['command'],
function() { alert('Not Yet Implemented'); }
</script>
<commandset id="holds_cmds">
+ <command id="sel_clip" />
<command id="cmd_holds_print" />
<command id="cmd_show_catalog" />
<command id="cmd_retrieve_patron" />
<popupset id="holds_popupset">
<popup id="holds_actions" position="at_pointer">
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog" accesskey="S"/>
<menuitem label="Retrieve Patron" command="cmd_retrieve_patron" accesskey="P"/>
<menuitem label="Show Notices" command="cmd_show_notifications" accesskey="N" />
<menubar>
<menu label="Actions for Selected Holds" accesskey="S">
<menupopup>
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog" accesskey="S"/>
<menuitem label="Retrieve Patron" command="cmd_retrieve_patron" accesskey="P"/>
<menuitem label="Show Notices" command="cmd_show_notifications" accesskey="N" />
{
'control_map' : {
'cmd_broken' : [ ['command'], function() { alert('Not Yet Implemented'); } ],
+ 'sel_clip' : [ ['command'], function() { obj.list.clipboard(); } ],
+ 'sel_clip2' : [ ['command'], function() { obj.list2.clipboard(); } ],
'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); } ],
obj.retrieve();
+ obj.controller.view.sel_clip.setAttribute('disabled','true');
+ obj.controller.view.sel_clip2.setAttribute('disabled','true');
obj.controller.view.cmd_items_claimed_returned.setAttribute('disabled','true');
obj.controller.view.cmd_items_renew.setAttribute('disabled','true');
obj.controller.view.cmd_items_checkin.setAttribute('disabled','true');
'on_select' : function(ev) {
JSAN.use('util.functional');
var sel = obj.list.retrieve_selection();
+ obj.controller.view.sel_clip.setAttribute('disabled',sel.length < 1);
var list = util.functional.map_list(
sel,
function(o) { return JSON2js( o.getAttribute('retrieve_id') ); }
'on_select' : function(ev) {
JSAN.use('util.functional');
var sel = obj.list2.retrieve_selection();
+ obj.controller.view.sel_clip2.setAttribute('disabled',sel.length < 1);
var list = util.functional.map_list(
sel,
function(o) { return JSON2js( o.getAttribute('retrieve_id') ); }
</script>
<commandset id="items_cmds">
+ <command id="sel_clip" />
<command id="cmd_items_print" />
<command id="cmd_items_renew" />
<command id="cmd_items_renew_all" />
<command id="cmd_show_noncats" />
+ <command id="sel_clip2" />
<command id="cmd_items_print2" />
<command id="cmd_items_renew2" />
<command id="cmd_items_claimed_returned2" />
<popupset id="items_popupset">
<popup id="items_actions" position="at_pointer">
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog" />
<menuitem label="Edit Due Date" command="cmd_items_edit" />
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost" />
<menuitem label="Add Billing" command="cmd_add_billing" />
</popup>
<popup id="items_actions2" position="at_pointer">
+ <menuitem command="sel_clip2" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog2" />
<menuitem label="Edit Due Date" command="cmd_items_edit2" />
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost2" />
<menubar>
<menu label="Actions for Selected Items" accesskey="S">
<menupopup>
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog" />
<menuitem label="Edit Due Date" command="cmd_items_edit" />
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost" />
<menubar>
<menu label="Actions for Selected Items" old_accesskey="S">
<menupopup>
+ <menuitem command="sel_clip2" label="Copy to Clipboard" accesskey="C" />
<menuitem label="Show in Catalog" command="cmd_show_catalog2" />
<menuitem label="Edit Due Date" command="cmd_items_edit2" />
<menuitem label="Mark Lost (by Patron)" command="cmd_items_mark_lost2" />