Bugzilla – Attachment 189589 Details for
Bug 19814
Batch Check-in function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19814: Allow to configure debounce interval
Bug-19814-Allow-to-configure-debounce-interval.patch (text/plain), 3.06 KB, created by
Marcel de Rooy
on 2025-11-14 11:12:53 UTC
(
hide
)
Description:
Bug 19814: Allow to configure debounce interval
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-11-14 11:12:53 UTC
Size:
3.06 KB
patch
obsolete
>From 8e50045ed2425314bb9759fb18fae7a8a790670c Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 <m.de.rooy@rijksmuseum.nl> >--- > 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 | 3 ++- > 4 files changed, 9 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__ > <parallel_loops_count>1</parallel_loops_count> > </auto_renew_cronjob> > >+ <!-- Interval currently used for batch checkin only --> >+ <rfid_debounce_interval>500</rfid_debounce_interval> >+ > </config> > </yazgfs> >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 @@ > <parallel_loops_count>1</parallel_loops_count> > </auto_renew_cronjob> > >+ <!-- Interval currently used for batch checkin only --> >+ <rfid_debounce_interval>5000</rfid_debounce_interval> >+ > </config> > </yazgfs> >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 c47cad9ec3..00dd18378d 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,7 @@ > [% Asset.js("js/modals/add_catalog_concern.js") | $raw %] > [% END %] > <script> >+ var debounceInterval = '[% debounceInterval %]' || 500; > function Dopop(link) { > var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); > $("#barcode").focus(); >@@ -1975,7 +1976,7 @@ > isReceivingRFIDInput = false; > ChangeBatchCheckinSettings(); > $('#checkin-form').submit(); >- }, 500); // 500ms delay after last input >+ }, debounceInterval); // delay after last input > } > }); > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19814
:
186374
|
186375
|
189487
|
189488
|
189489
|
189490
|
189529
|
189568
|
189586
|
189587
|
189588
| 189589 |
189590
|
189591
|
189592