<!ENTITY staff.circ.copy_status_overlay.sel_copy_details.accesskey "I">
<!ENTITY staff.circ.copy_status_overlay.sel_patron.label "Show Last Few Circulations">
<!ENTITY staff.circ.copy_status_overlay.sel_patron.accesskey "L">
+<!ENTITY staff.circ.copy_status_overlay.cmd_triggered_events.label "Show Triggered Events">
+<!ENTITY staff.circ.copy_status_overlay.cmd_triggered_events.accesskey "T">
<!ENTITY staff.circ.copy_status_overlay.sel_edit.label "Edit Item Attributes">
<!ENTITY staff.circ.copy_status_overlay.sel_edit.accesskey "E">
<!ENTITY staff.circ.copy_status_overlay.sel_mark_items_damaged.label "Mark Item Damaged">
<!ENTITY staff.patron.items_overlay.sel_copy_details.accesskey "I">
<!ENTITY staff.patron.items_overlay.sel_patron.label "Show Last Few Circulations">
<!ENTITY staff.patron.items_overlay.sel_patron.accesskey "L">
+<!ENTITY staff.patron.items_overlay.cmd_triggered_events.label "Show Triggered Events">
+<!ENTITY staff.patron.items_overlay.cmd_triggered_events.accesskey "T">
<!ENTITY staff.patron.items_overlay.items_edit.label "Edit Due Date">
<!ENTITY staff.patron.items_overlay.items_mark_lost.label "Mark Lost (by Patron)">
<!ENTITY staff.patron.items_overlay.items_claimed_returned.label "Mark Claimed Returned">
obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','true');
obj.controller.view.sel_mark_items_missing.setAttribute('disabled','true');
obj.controller.view.sel_patron.setAttribute('disabled','true');
+ obj.controller.view.cmd_triggered_events.setAttribute('disabled','true');
obj.controller.view.sel_spine.setAttribute('disabled','true');
obj.controller.view.sel_transit_abort.setAttribute('disabled','true');
obj.controller.view.sel_clip.setAttribute('disabled','true');
obj.controller.view.sel_edit.setAttribute('disabled','false');
obj.controller.view.sel_opac.setAttribute('disabled','false');
obj.controller.view.sel_patron.setAttribute('disabled','false');
+ obj.controller.view.cmd_triggered_events.setAttribute('disabled','false');
obj.controller.view.sel_bucket.setAttribute('disabled','false');
obj.controller.view.sel_copy_details.setAttribute('disabled','false');
obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','false');
}
},
],
+ 'cmd_triggered_events' : [
+ ['command'],
+ function() {
+ try {
+ for (var i = 0; i < obj.selection_list.length; i++) {
+ xulG.new_tab(
+ urls.XUL_TRIGGER_EVENTS,
+ {
+ 'tab_name' : document.getElementById('commonStrings').getFormattedString('tab.label.triggered_events_for_copy',[ obj.selection_list[i].barcode ])
+ },
+ {
+ 'copy_id' : obj.selection_list[i].copy_id
+ }
+ );
+ }
+ } catch(E) {
+ alert('Error in copy_status.js, cmd_triggered_events: ' + E);
+ }
+ }
+ ],
'sel_checkin' : [
['command'],
function() {
<command id="cmd_copy_status_upload_file" />
<command id="cmd_copy_status_print" />
<command id="cmd_alt_view" />
+ <command id="cmd_triggered_events" />
<command id="save_columns" />
<command id="sel_copy_details" disabled="true"/>
<command id="sel_mark_items_damaged" disabled="true"/>
<menuitem command="sel_opac" label="&staff.circ.copy_status_overlay.sel_opac.label;" accesskey="&staff.circ.copy_status_overlay.sel_opac.accesskey;" />
<menuitem command="sel_copy_details" label="&staff.circ.copy_status_overlay.sel_copy_details.label;" accesskey="&staff.circ.copy_status_overlay.sel_copy_details.accesskey;" />
<menuitem command="sel_patron" label="&staff.circ.copy_status_overlay.sel_patron.label;" accesskey="&staff.circ.copy_status_overlay.sel_patron.accesskey;"/>
+ <menuitem command="cmd_triggered_events" label="&staff.circ.copy_status_overlay.cmd_triggered_events.label;" accesskey="&staff.circ.copy_status_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;" />
<menuitem command="cmd_transfer_items" label="&staff.circ.copy_status_overlay.cmd_transfer_items.label;" accesskey="&staff.circ.copy_status_overlay.cmd_transfer_items.accesskey;"/>
<menuitem command="sel_opac" label="&staff.circ.copy_status_overlay.sel_opac.label;" accesskey="&staff.circ.copy_status_overlay.sel_opac.accesskey;" />
<menuitem command="sel_copy_details" label="&staff.circ.copy_status_overlay.sel_copy_details.label;" accesskey="&staff.circ.copy_status_overlay.sel_copy_details.accesskey;" />
<menuitem command="sel_patron" label="&staff.circ.copy_status_overlay.sel_patron.label;" accesskey="&staff.circ.copy_status_overlay.sel_patron.accesskey;"/>
+ <menuitem command="cmd_triggered_events" label="&staff.circ.copy_status_overlay.cmd_triggered_events.label;" accesskey="&staff.circ.copy_status_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 />
staff.util.timestamp_dialog.future_date_disallowed=Future dates disallowed.
staff.util.timestamp_dialog.past_date_disallowed=Past dates disallowed.
staff.util.timestamp_dialog.today_disallowed=Today disallowed.
-
+tab.label.triggered_events_for_copy=Triggered Events: %1$s
'sel_clip' : [ ['command'], function() { obj.list.clipboard(); } ],
'sel_clip2' : [ ['command'], function() { obj.list2.clipboard(); } ],
'sel_patron' : [ ['command'], function() { JSAN.use('circ.util'); circ.util.show_last_few_circs(obj.retrieve_ids); } ],
+ 'cmd_triggered_events' : [
+ ['command'],
+ function() {
+ try {
+ var copy_ids = util.functional.map_list( obj.retrieve_ids, function(o) { return o.copy_id; } );
+ var barcodes = util.functional.map_list( obj.retrieve_ids, function(o) { return o.barcode; } );
+ for (var i = 0; i < copy_ids.length; i++) {
+ xulG.new_tab(
+ urls.XUL_TRIGGER_EVENTS,
+ {
+ 'tab_name' : document.getElementById('commonStrings').getFormattedString('tab.label.triggered_events_for_copy',[ barcodes[i] ])
+ },
+ {
+ 'copy_id' : copy_ids[i]
+ }
+ );
+ }
+ } catch(E) {
+ alert('Error in copy_status.js, cmd_triggered_events: ' + E);
+ }
+ }
+ ],
+ 'cmd_triggered_events2' : [
+ ['command'],
+ function() {
+ try {
+ var copy_ids = util.functional.map_list( obj.retrieve_ids2, function(o) { return o.copy_id; } );
+ for (var i = 0; i < copy_ids.length; i++) {
+ xulG.new_tab(
+ urls.XUL_TRIGGER_EVENTS,
+ {},
+ {
+ 'copy_id' : copy_ids[i]
+ }
+ );
+ }
+ } catch(E) {
+ alert('Error in copy_status.js, cmd_triggered_events: ' + E);
+ }
+ }
+ ],
+
'sel_bucket' : [
['command'],
function() {
obj.controller.view.sel_bucket2.setAttribute('disabled','true');
obj.controller.view.sel_copy_details.setAttribute('disabled','true');
obj.controller.view.sel_patron.setAttribute('disabled','true');
+ obj.controller.view.cmd_triggered_events.setAttribute('disabled','true');
obj.controller.view.sel_copy_details2.setAttribute('disabled','true');
obj.controller.view.sel_patron2.setAttribute('disabled','true');
+ obj.controller.view.cmd_triggered_events2.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_renew_with_date.setAttribute('disabled','true');
obj.controller.view.sel_copy_details.setAttribute('disabled','false');
obj.controller.view.sel_bucket.setAttribute('disabled','false');
obj.controller.view.sel_patron.setAttribute('disabled','false');
+ obj.controller.view.cmd_triggered_events.setAttribute('disabled','false');
obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','false');
obj.controller.view.sel_mark_items_missing.setAttribute('disabled','false');
obj.controller.view.sel_copy_details2.setAttribute('disabled','false');
obj.controller.view.sel_bucket2.setAttribute('disabled','false');
obj.controller.view.sel_patron2.setAttribute('disabled','false');
+ obj.controller.view.cmd_triggered_events2.setAttribute('disabled','false');
obj.controller.view.sel_mark_items_damaged2.setAttribute('disabled','false');
obj.controller.view.sel_mark_items_missing2.setAttribute('disabled','false');
<command id="sel_clip" />
<command id="sel_copy_details"/>
<command id="sel_patron"/>
+ <command id="cmd_triggered_events"/>
<command id="cmd_items_print" />
<command id="cmd_items_export" />
<command id="cmd_items_renew" />
<command id="sel_clip2" />
<command id="sel_copy_details2"/>
<command id="sel_patron2"/>
+ <command id="cmd_triggered_events2"/>
<command id="cmd_items_print2" />
<command id="cmd_items_export2" />
<command id="cmd_items_renew2" />
<menuitem label="&staff.patron.items_overlay.show_catalog.label;" command="cmd_show_catalog" />
<menuitem command="sel_copy_details" label="&staff.patron.items_overlay.sel_copy_details.label;" accesskey="&staff.patron.items_overlay.sel_copy_details.accesskey;" />
<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 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.show_catalog.label;" command="cmd_show_catalog2" />
<menuitem command="sel_copy_details2" label="&staff.patron.items_overlay.sel_copy_details.label;" accesskey="&staff.patron.items_overlay.sel_copy_details.accesskey;" />
<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 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.show_catalog.label;" command="cmd_show_catalog" />
<menuitem command="sel_copy_details" label="&staff.patron.items_overlay.sel_copy_details.label;" accesskey="&staff.patron.items_overlay.sel_copy_details.accesskey;" />
<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 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.show_catalog.label;" command="cmd_show_catalog2" />
<menuitem command="sel_copy_details2" label="&staff.patron.items_overlay.sel_copy_details.label;" accesskey="&staff.patron.items_overlay.sel_copy_details.accesskey;" />
<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 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" />