function() {
try {
var funcs = [];
+ var auto_print = document.getElementById('checkin_auto_print_slips');
+ if (auto_print) auto_print = auto_print.getAttribute('checked') == 'true';
JSAN.use('circ.util');
for (var i = 0; i < obj.selection_list.length; i++) {
var barcode = obj.selection_list[i].barcode;
- var checkin = circ.util.checkin_via_barcode( ses(), { 'barcode' : barcode } );
+ var checkin = circ.util.checkin_via_barcode(
+ ses(),
+ { 'barcode' : barcode },
+ false /* backdate */,
+ auto_print
+ );
funcs.push( function(a) { return function() { obj.copy_status( a, true ); }; }(barcode) );
}
for (var i = 0; i < funcs.length; i++) { funcs[i](); }
<checkbox id="trim_list" label="&staff.circ.copy_status_overlay.trim_list.label;" checked="true" oils_persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" />
<checkbox id="strict_barcode" label="&staff.circ.copy_status_overlay.strict_barcode.label;" checked="false" oils_persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" />
<spacer flex="1"/>
+ <checkbox id="checkin_auto_print_slips" oils_persist="checked"
+ label="&staff.circ.checkin_overlay.checkin_auto_print_slips.label;"
+ accesskey="&staff.circ.checkin_overlay.checkin_auto_print_slips.accesskey;"/>
</hbox>
</overlay>
}
var r = window.confirm(msg);
if (!r) { return; }
+ var auto_print = document.getElementById('checkin_auto_print_slips');
+ if (auto_print) auto_print = auto_print.getAttribute('checked') == 'true';
JSAN.use('circ.util');
for (var i = 0; i < retrieve_ids.length; i++) {
var copy_id = retrieve_ids[i].copy_id;
dump('Check in copy_id = ' + copy_id + ' barcode = ' + retrieve_ids[i].barcode + '\n');
var robj = circ.util.checkin_via_barcode(
- ses(), { 'copy_id' : copy_id }
+ ses(),
+ { 'copy_id' : copy_id },
+ false /* backdate */,
+ auto_print
);
/* circ.util.checkin_via_barcode handles errors currently */
}
<hbox id="items_bottom_ui" flex="1">
<button id="noncat" label="&staff.patron.items_overlay.show_noncats.label;" command="cmd_show_noncats" accesskey="&staff.patron.items_overlay.show_noncats.accesskey;"/>
<spacer flex="1"/>
+ <checkbox id="checkin_auto_print_slips" oils_persist="checked"
+ label="&staff.circ.checkin_overlay.checkin_auto_print_slips.label;"
+ accesskey="&staff.circ.checkin_overlay.checkin_auto_print_slips.accesskey;"/>
<button id="items_print" label="&staff.patron_display.items.print_receipt.label;" command="cmd_items_print" accesskey="&staff.patron_display.items.print_receipt.accesskey;" />
<button id="items_export" label="&staff.patron.items_overlay.items_export.label;" command="cmd_items_export" accesskey=""/>
</hbox>