https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383
--- Comment #217 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211709 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211709&action=edit Bug 42383: Add the Vue check-in page This patch adds a Vue based check-in page, circ/checkin.pl, built on top of the check-in REST API and its follow-up action endpoints. - circ/checkin.pl and circ/checkin.tt: entry point, bootstrapped with the check-in module policy - A check-in can be requested from other pages with a POST request (op=cud-checkin, with a CSRF token): the page checks the item in once it is loaded. A GET request with a barcode only prefills it. - Vue module, Pinia store and components under js/vue/components/Circ/Checkin/: barcode input, check-in options, checked-in items table, confirmation, hold cancellation, return claim and bundle verification modals, slip printing - checkin-api-client.js, plus the claim, item (bundled items) and patron API client additions it needs - HttpClient: the error thrown for a failed request carries the parsed response body (`body`), so callers that present errors themselves (suppressDefaultErrorDialog) can use it - rspack: new 'checkin' entry The page reproduces the behaviour of circ/returns.pl: confirmations, blockers, hold/transfer/recall dialogs, messages, audio alerts and slip printing. When the API refuses a request because of the module policy, the store applies the policy returned in the error object and tells the user why. The store identifies the rows by key, not by position, as the list changes while requests are in flight. Rows that need attention are never trimmed from the list, and a follow-up action cannot be sent twice. The errors returned by the API are shown translated, in the page. Test plan: 1. Apply patch 2. Build and restart: $ ktd --shell k$ yarn build k$ restart_all 3. Go to /cgi-bin/koha/circ/checkin.pl and check in: - an item that is checked out - an item that is not checked out - an item with a hold - an item that needs a transfer - a bundle => SUCCESS: The item is checked in, and the messages and dialogs match what returns.pl showed 4. Sign off :-D Assisted-by: Sonnet 4.6 (Anthropic) Assisted-by: Opus 5.5 (Anthropic) Signed-off-by: Brendan Lawlor <[email protected]> Signed-off-by: Matt Blenkinsop <[email protected]> Signed-off-by: Martin Renvoize <[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/
