From 2b69c7426b2b0cc71251eae33718b904a042e905 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 12 Nov 2025 16:55:47 +0100 Subject: [PATCH] Bug 19814: Allow to configure debounce interval Content-Type: text/plain; charset=utf-8 Test plan: Change value in koha-conf.xml. Say 5000. Restart all. Verify that batch mode now respects this new delay value. (Type a bad barcode, press Enter, and count seconds.) Signed-off-by: Marcel de Rooy --- circ/returns.pl | 1 + debian/templates/koha-conf-site.xml.in | 3 +++ etc/koha-conf.xml | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 +++- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 31090a936c..b1e182b271 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -913,6 +913,7 @@ $template->param( forgivemanualholdsexpire => $forgivemanualholdsexpire, overduecharges => $overduecharges, AudioAlerts => C4::Context->preference("AudioAlerts"), + debounceInterval => C4::Context->config('rfid_debounce_interval') // q{}, ); if ($barcode) { diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 36f632fdb9..0c1240fd68 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -500,5 +500,8 @@ __END_SRU_PUBLICSERVER__ 1 + + 500 + diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index 5c8bab6d67..117efd0966 100644 --- a/etc/koha-conf.xml +++ b/etc/koha-conf.xml @@ -311,5 +311,8 @@ 1 + + 5000 + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 8ccf53e608..4bf7cef182 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1634,6 +1634,8 @@ [% Asset.js("js/modals/add_catalog_concern.js") | $raw %] [% END %]