Koha/koha-tmpl/intranet-tmpl/prog/js
Matt Blenkinsop d01f0b5333
Bug 14787: Remember confirmations for a patron session
This patch adds functionality that will remember whether an action has been confirmed for a particular patron for the session. While carrying out an action on that patron, if the same checkout confirmation message keeps appearing the user can now select to remember their confirmation while they are still working on that patron. When the user moves onto a new patron the confirmations then reset and accumulate again for the new patron.

Test plan:
We're going to use rental fees as the example to prompt the checkout confirmation dialog. If you wish to use something else to test then feel free, it should work the same. Do not use patron debts though, as we already track a confirmation for this elsewhere and the test plan will appear to fail when in fact it is behaving as expected

1) In system preferences set RentalFeesCheckoutConfirmation to 'ask'
2) Choose a patron and checkout an item to that patron that incurrs a rental charge (in KTD this will be any item that does not have an itype of 'BK', 'REF' or 'VM'
3) A dialog should display asking you to confirm the checkout.
4) There should be a checkbox on the dialog to "Remember for the session for this patron"
5) Click Yes, checkout out without checking this checkbox
6) Select another item and checkout - the dialog should display again
7) This time, check the checkbox and click Yes, check out
8) Checkout another item (depending on your fines limit settings, you may need to pay the rental charges before the system will allow you to checkout again so go ahead and do this)
9) This time the dialog should not appear as the system has remembered our confirmation for this patron for the session
10) Choose a new patron
11) Repeat steps 2 - 9
12) It should work as outlined above
13) Sign off!

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-10-30 18:45:53 +01:00
..
fetch Bug 38082: Advanced editor does not save the selected framework 2024-10-22 12:06:48 +02:00
modals Bug 38175: (follow-up) Refactor staff interface additions to vanilla JS; adjust modules, controllers for coding guidelines and consistency 2024-10-24 18:27:23 +02:00
pages Bug 36694: Remove HC sticky from catalogue/ pages 2024-10-21 12:26:02 +02:00
tables Bug 38222: (QA follow-up) Fix translation and capitalization issues 2024-10-25 16:41:38 +02:00
vue Bug 33484: Always save but restore on demand only 2024-10-28 17:10:15 +01:00
acq.js Bug 31921: Add confirmation modal when deleting a vendor 2024-08-21 19:13:57 +02:00
acquisitions-menu.js
additem.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
additional-fields-entry.js Bug 35044: (QA follow-up): Avoid polluting global scope with functions 2024-08-23 18:21:29 +02:00
addorderiso2709.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js Bug 35903: In cataloguing authority plugin using autocomplete must set operator exact 2024-04-29 09:35:44 +02:00
authorities-detail-modal.js
authtype.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
automatic_item_modification_by_age.js
basket.js Bug 37177: "item" should be "record" in list page 2024-08-30 12:45:46 +02:00
biblio_framework.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
browser.js
calendar.js
cancel_booking_modal.js Bug 38222: (QA follow-up) DRY event listener setup for combobox resets on modal close 2024-10-25 16:41:36 +02:00
cart.js
cashup_modal.js
catalog.js Bug 37748: (follow-up) Move tooltip initialization to staff-global.js 2024-08-29 17:24:04 +02:00
cataloging.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
cataloging_additem.js Bug 36320: Clicking Edit items from catalogue/detail.pl leads to 'Add item' screen 2024-10-29 08:46:50 +01:00
categories.js Bug 34597: Add 'ill_request' to patron category admin page 2024-06-11 10:43:55 +01:00
charts.js
checkout_renewals_modal.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
checkouts.js Bug 14787: Remember confirmations for a patron session 2024-10-30 18:45:53 +01:00
combobox.js Bug 38222: (follow-up) Minimally initialize combobox if passed no data via constructor or referenced elements 2024-10-25 16:41:34 +02:00
cookieconsent.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
datatables.js Bug 38243: Remove options.query_parameters 2024-10-29 16:14:40 +01:00
elasticsearch-mappings.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
file-upload.js Bug 36084: Fix file upload and www/batch.t 2024-03-01 11:01:01 +01:00
form-submit.js Bug 37270: Fix deletion of saved reports 2024-07-22 07:32:21 +01:00
funds_sorts.js Bug 35823: When uploading a MARC file to a basket it is showing inactive funds without the show checkbox button selected 2024-07-01 18:55:54 +02:00
holds.js Bug 37868: Remove C4::Reserves::ToggleSuspend 2024-10-21 15:10:35 +02:00
ill-availability-partner.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
ill-availability.js
ill-batch-modal.js
ill-batch-table.js Bug 36130: Fetch all batches for the table 2024-03-12 17:47:37 +01:00
ill-batch.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
ill-list-table.js Bug 33484: External filter into state - ill requests 2024-10-28 17:10:30 +01:00
item_search_fields.js
job_progress.js Bug 37795: Adjust job-progress.inc for Bootstrap 5 changes 2024-10-29 08:46:40 +01:00
letter.js Bug 36694: Remove HC sticky from remaining staff pages 2024-10-21 12:26:04 +02:00
localcovers.js
mana.js Bug 36084: svc - mana 2024-03-01 11:01:01 +01:00
marc_modification_templates.js Bug 36515: Amend MARC modification templates so control fields can be copied to subfields 2024-08-02 19:00:04 +02:00
marc_subfields_structure.js Bug 33178: (QA follow-up) Reformat js changes 2024-10-29 16:14:41 +01:00
members-menu.js Bug 36694: (follow-up) Remove some missed instances 2024-10-21 12:26:07 +02:00
members-patron-selections.js
members.js Bug 36738: Don't copy date when repeating date fields 2024-05-03 10:59:36 +02:00
merge-record.js
messaging-preference-form.js Bug 37748: (follow-up) Move tooltip initialization to staff-global.js 2024-08-29 17:24:04 +02:00
modal_printer.js
onboarding.js
patron-webcam.js
recalls.js
resolve_claim_modal.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
restrictiontypes.js
rotating-collections.js
select2.js
serials-toolbar.js Bug 37748: (follow-up) Move tooltip initialization to staff-global.js 2024-08-29 17:24:04 +02:00
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 33484: Remove localStorage on logout 2024-10-28 17:10:16 +01:00
subscription-add.js Bug 37846: Fix serial prediction pattern layout 2024-09-13 13:54:21 +02:00
table_filters.js
tools-menu.js
upload-images.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
viewlog.js Bug 36694: Remove HC sticky from remaining staff pages 2024-10-21 12:26:04 +02:00
xmlControlfield.js
z3950_search.js Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00