@@ -, +, @@ You can emulate this with a keybaord by hitting a few keys, then enter, then a few more keys, then enter again. The barcodes don't need to be valid for this test. wait. --- .../prog/en/modules/circ/circulation.tt | 27 ++++++++++++++++--- 1 files changed, 22 insertions(+), 5 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -60,6 +60,17 @@ function toggle_onsite_checkout(){ } $(document).ready(function() { + [% IF !NEEDSCONFIRMATION %] + $('#barcode').prop('disabled', false).focus(); + [% END %] + $('#mainform').bind('submit',function() { + $('#barcode').on('keypress',function(event) { + $('#barcodeSubmittedModal').modal(); + event.preventDefault(); } + ); + }); + + [% IF !( CircAutoPrintQuickSlip == 'clear' ) %] // listen submit to trigger qslip on empty checkout $('#mainform').bind('submit',function() { @@ -528,11 +539,7 @@ No patron matched [% message %]
Enter item barcode:
- [% IF NEEDSCONFIRMATION %] - - [% ELSE %] - - [% END %] +
@@ -871,4 +878,14 @@ No patron matched [% message %] [% INCLUDE 'circ-menu.inc' %]
[% END %][% END %] + + [% INCLUDE 'intranet-bottom.inc' %] --