https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
--- Comment #156 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211902 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211902&action=edit Bug 19814: Add Single/Batch tabs and batch input to the checkin page The check in page gets two tabs. Batch takes a list of barcodes (pasted, or sent by an RFID reader) and checks them in one after the other, without stopping for modals: what needs a decision stays in the list, and the first modal opens when the batch is done. The Batch tab has its own options: automatically capture holds, automatically create transfers, hide 'not checked out' warnings and remember these settings in this browser. BatchCheckinDefaults sets how the page starts. The batch is a loop over the existing check in API: no new endpoint, and every check the API makes still applies. The delayed focus of the barcode box no longer takes the focus from another field of the page, and the check in spec submits with Enter as a scanner does: the new tabs move the form, and a dialog left open can cover the button. To test: 1. Apply the patches, run the database update and $ yarn build $ restart_all 2. Check out 3 items, and put a hold on one of them for a patron to be picked up at the library you check in at 3. Go to Circulation > Check in. Click the 'Batch' tab => The input becomes a multi-line box, and the settings (cog) show the batch options next to the usual ones 4. Paste the 3 barcodes, with a blank line and a made up barcode between them, and click 'Check in' => All 3 items are checked in, no dialog interrupts the batch => A summary says how many were returned, how many need attention and which barcode failed. The item with the hold is a yellow row, and its dialog opens once the batch is done 5. Repeat with 'Automatically capture holds' ticked => The hold is confirmed without a dialog 6. Set BatchCheckinDefaults to 'Open on the Batch tab by default' and 'Automatically create transfers', and reload the page => The page opens on the Batch tab with the transfer box ticked 7. Tick 'Remember batch mode settings', change the other options and reload => Your choices are restored (they win over the preference) 8. Set HoldsAutoFill to 'Do' => 'Automatically capture holds' is ticked and cannot be changed 9. Type a barcode followed by Enter in the Batch box and wait half a second => It is checked in without clicking the button 10. Run $ prove t/db_dependent/Koha/Module/Policy/Checkin.t $ npx cypress run --spec t/cypress/integration/Circulation/CheckinBatch_spec.ts 11. Sign off :-D Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
