When clicking on the "Add reserves" or "batch add reserves" buttons in the course reserves module, the cursor focuses on the catalog search bar instead of the box where you scan in the barcodes. I fixed this locally by adding the following to IntranetUserJS: //Switch active cursor to correct box for adding course reserves $(document).ready(function(){ if (window.location.href.indexOf("cgi-bin/koha/course_reserves/add_items.pl") > -1) { $('#barcode').focus(); } }); $(document).ready(function(){ if (window.location.href.indexOf("cgi-bin/koha/course_reserves/batch_add_items.pl") > -1) { $('#barcodes').focus(); } });
Created attachment 128137 [details] Screenshot of current behavior
Created attachment 128213 [details] Screenshot of current behavior
I can't reproduce this problem in master or 21.05.x
Same for me, I tested this on 20.11 and the current development version. The cursor is always in the barcode field for me. Eliana, please provide your exact version if this problem still persists. Please also try to remove all your changes from OpacUserJs and test without them to make sure it's not another change interfering.
Katrin was right, it was another bit of our JQuery that was causing this issue. My bad! This bug is no long relevant.
Thx for the feedback, Eliana, had this happen myself before.