obj.controller.view.sel_bucket.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');
} else {
obj.controller.view.sel_edit.setAttribute('disabled','false');
obj.controller.view.sel_opac.setAttribute('disabled','false');
obj.controller.view.sel_bucket.setAttribute('disabled','false');
obj.controller.view.sel_spine.setAttribute('disabled','false');
obj.controller.view.sel_transit_abort.setAttribute('disabled','false');
+ obj.controller.view.sel_clip.setAttribute('disabled','false');
}
} catch(E) {
alert('FIXME: ' + E);
obj.controller.init(
{
'control_map' : {
+ 'sel_clip' : [
+ ['command'],
+ function() { obj.list.clipboard(); }
+ ],
'sel_edit' : [
['command'],
function() {
<command id="cmd_checkin_reprint" />
<command id="cmd_checkin_done" />
+ <command id="sel_clip" disabled="true"/>
<command id="sel_edit" disabled="true"/>
<command id="sel_opac" disabled="true"/>
<command id="sel_patron" disabled="true"/>
<popupset id="copy_status_popupset">
<popup id="copy_status_actions" position="at_pointer">
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem command="sel_opac" label="Show in Catalog" accesskey="S" />
<menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
<menuitem command="sel_edit" label="Edit Item Attributes" accesskey="E" />
<menubar>
<menu label="Actions for Selected Items" accesskey="S">
<menupopup>
+ <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C" />
<menuitem command="sel_opac" label="Show in Catalog" accesskey="S" />
<menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
<menuitem command="sel_edit" label="Edit Item Attributes" accesskey="E" />
{
'columns' : columns,
'map_row_to_column' : circ.util.std_map_row_to_column(),
+ 'on_select' : function() {
+ var sel = obj.list.retrieve_selection();
+ document.getElementById('clip_button').disabled = sel.length < 1;
+ }
}
);
obj.controller.init(
{
'control_map' : {
+ 'sel_clip' : [
+ ['command'],
+ function() { obj.list.clipboard(); }
+ ],
'checkout_menu_placeholder' : [
['render'],
function(e) {
} else {
obj.error.sdump('D_CIRC','circ.checkout: No external .on_checkout()\n');
}
+
} else {
throw(checkout);
}
<command id="cmd_checkout_print" />
<command id="cmd_checkout_reprint" />
<command id="cmd_checkout_done" />
+ <command id="sel_clip" />
</commandset>
<box id="checkout_main" />
label="&staff.patron_display.checkout.reprint_receipt_label;"
command="cmd_checkout_reprint"
accesskey="&staff.patron_display.checkout.reprint_receipt_label.accesskey;"/>
+ <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
<spacer id="pcii3s" flex="1"/>
<checkbox id="checkout_auto" persist="checked"
label="&staff.patron_display.checkout.auto_print_label;"
{
'columns' : columns,
'map_row_to_column' : circ.util.std_map_row_to_column(),
+ 'on_select' : function() {
+ var sel = obj.list.retrieve_selection();
+ document.getElementById('clip_button').disabled = sel.length < 1;
+ }
}
);
obj.controller.init(
{
'control_map' : {
+ 'sel_clip' : [
+ ['command'],
+ function() { obj.list.clipboard(); }
+ ],
'in_house_use_barcode_entry_textbox' : [
['keypress'],
function(ev) {
</script>
<commandset id="in_house_use_cmds">
+ <command id="sel_clip" />
<command id="cmd_in_house_use_submit_barcode" />
<command id="cmd_in_house_use_print" />
<command id="cmd_in_house_use_reprint" />
label="Re-Print Last List"
command="cmd_in_house_use_reprint"
accesskey="L"/>
+ <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
<spacer id="pcii3s" flex="1"/>
</hbox>