'cmd_broken' : [ ['command'], function() { alert('Not Yet Implemented'); } ],
'sel_clip' : [ ['command'], function() { obj.list.clipboard(); } ],
'sel_clip2' : [ ['command'], function() { obj.list2.clipboard(); } ],
+ 'sel_edit' : [ ['command'], function() { obj.spawn_copy_editor(1); } ],
+ 'sel_edit2' : [ ['command'], function() { obj.spawn_copy_editor(2); } ],
'sel_patron' : [ ['command'], function() { JSAN.use('circ.util'); circ.util.show_last_few_circs(obj.retrieve_ids); } ],
'cmd_triggered_events' : [
['command'],
obj.controller.view.sel_mark_items_missing2.setAttribute('disabled','true');
obj.controller.view.sel_clip.setAttribute('disabled','true');
obj.controller.view.sel_clip2.setAttribute('disabled','true');
+ obj.controller.view.sel_edit.setAttribute('disabled','true');
+ obj.controller.view.sel_edit2.setAttribute('disabled','true');
obj.controller.view.sel_bucket.setAttribute('disabled','true');
obj.controller.view.sel_bucket2.setAttribute('disabled','true');
obj.controller.view.sel_copy_details.setAttribute('disabled','true');
JSAN.use('util.functional');
var sel = obj.list.retrieve_selection();
obj.controller.view.sel_clip.setAttribute('disabled',sel.length < 1);
+ obj.controller.view.sel_edit.setAttribute('disabled',sel.length < 1);
var list = util.functional.map_list(
sel,
function(o) { return JSON2js( o.getAttribute('retrieve_id') ); }
JSAN.use('util.functional');
var sel = obj.list2.retrieve_selection();
obj.controller.view.sel_clip2.setAttribute('disabled',sel.length < 1);
+ obj.controller.view.sel_edit2.setAttribute('disabled',sel.length < 1);
var list = util.functional.map_list(
sel,
function(o) { return JSON2js( o.getAttribute('retrieve_id') ); }
obj.controller.view.sel_mark_items_missing2.setAttribute('disabled','false');
this.retrieve_ids2 = list;
- }
+ },
+
+ 'spawn_copy_editor' : function(which) {
+
+ var obj = this;
+
+ JSAN.use('util.functional');
+
+ var copy_ids = util.functional.map_list( which == 1 ? obj.retrieve_ids : obj.retrieve_ids2, function(o) { return o.copy_id; } );
+
+ JSAN.use('cat.util'); cat.util.spawn_copy_editor( { 'copy_ids' : copy_ids, 'edit' : 1 } );
+
+ },
+
+
}
<command id="save_columns" />
<command id="sel_bucket" disabled="true"/>
<command id="sel_clip" />
+ <command id="sel_edit" />
<command id="sel_copy_details"/>
<command id="sel_patron"/>
<command id="cmd_triggered_events"/>
<command id="save_columns2" />
<command id="sel_bucket2" disabled="true"/>
<command id="sel_clip2" />
+ <command id="sel_edit2" />
<command id="sel_copy_details2"/>
<command id="sel_patron2"/>
<command id="cmd_triggered_events2"/>
<menuitem command="sel_patron" label="&staff.patron.items_overlay.sel_patron.label;" accesskey="&staff.patron.items_overlay.sel_patron.accesskey;"/>
<menuitem command="cmd_triggered_events" label="&staff.patron.items_overlay.cmd_triggered_events.label;" accesskey="&staff.patron.items_overlay.cmd_triggered_events.accesskey;"/>
<menuseparator />
+ <menuitem command="sel_edit" label="&staff.circ.copy_status_overlay.sel_edit.label;" accesskey="&staff.circ.copy_status_overlay.sel_edit.accesskey;" />
+ <menuseparator />
<menuitem label="&staff.patron.items_overlay.items_edit.label;" command="cmd_items_edit" />
<menuitem label="&staff.patron.items_overlay.items_mark_lost.label;" command="cmd_items_mark_lost" />
<menuitem label="&staff.patron.items_overlay.items_claimed_returned.label;" command="cmd_items_claimed_returned" />
<menuitem command="sel_patron2" label="&staff.patron.items_overlay.sel_patron.label;" accesskey="&staff.patron.items_overlay.sel_patron.accesskey;"/>
<menuitem command="cmd_triggered_events2" label="&staff.patron.items_overlay.cmd_triggered_events.label;" accesskey="&staff.patron.items_overlay.cmd_triggered_events.accesskey;"/>
<menuseparator />
+ <menuitem command="sel_edit2" label="&staff.circ.copy_status_overlay.sel_edit.label;" accesskey="&staff.circ.copy_status_overlay.sel_edit.accesskey;" />
+ <menuseparator />
<menuitem label="&staff.patron.items_overlay.items_edit.label;" command="cmd_items_edit2" />
<menuitem label="&staff.patron.items_overlay.items_mark_lost.label;" command="cmd_items_mark_lost2" />
<menuitem label="&staff.patron.items_overlay.items_claimed_returned.label;" command="cmd_items_claimed_returned2" />
<menuitem command="sel_patron" label="&staff.patron.items_overlay.sel_patron.label;" accesskey="&staff.patron.items_overlay.sel_patron.accesskey;"/>
<menuitem command="cmd_triggered_events" label="&staff.patron.items_overlay.cmd_triggered_events.label;" accesskey="&staff.patron.items_overlay.cmd_triggered_events.accesskey;"/>
<menuseparator />
+ <menuitem command="sel_edit" label="&staff.circ.copy_status_overlay.sel_edit.label;" accesskey="&staff.circ.copy_status_overlay.sel_edit.accesskey;" />
+ <menuseparator />
<menuitem label="&staff.patron.items_overlay.items_edit.label;" command="cmd_items_edit" />
<menuitem label="&staff.patron.items_overlay.items_mark_lost.label;" command="cmd_items_mark_lost" />
<menuitem label="&staff.patron.items_overlay.items_claimed_returned.label;" command="cmd_items_claimed_returned" />
<menuitem command="sel_patron2" label="&staff.patron.items_overlay.sel_patron.label;" accesskey="&staff.patron.items_overlay.sel_patron.accesskey;"/>
<menuitem command="cmd_triggered_events2" label="&staff.patron.items_overlay.cmd_triggered_events.label;" accesskey="&staff.patron.items_overlay.cmd_triggered_events.accesskey;"/>
<menuseparator />
+ <menuitem command="sel_edit2" label="&staff.circ.copy_status_overlay.sel_edit.label;" accesskey="&staff.circ.copy_status_overlay.sel_edit.accesskey;" />
+ <menuseparator />
<menuitem label="&staff.patron.items_overlay.items_edit.label;" command="cmd_items_edit2" />
<menuitem label="&staff.patron.items_overlay.items_mark_lost.label;" command="cmd_items_mark_lost2" />
<menuitem label="&staff.patron.items_overlay.items_claimed_returned.label;" command="cmd_items_claimed_returned2" />