]> git.koha-community.org Git - koha.git/commit
Bug 33945: Add ability to delay the loading of the current checkouts table on the...
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 7 Jun 2023 18:29:05 +0000 (14:29 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 9 Jun 2023 11:41:44 +0000 (08:41 -0300)
commit7242c32a1fab642975ab92538438eb13764b4bea
treeceb250d4310dad9818a9ece046cbc8296df6e3d0
parent144efca99d09834839f89a88a6caeb928c32e2d4
Bug 33945: Add ability to delay the loading of the current checkouts table on the checkouts page

If a librarian has opted to load the checkouts table automatically on the checkouts page, it will trigger a call to svc/checkouts. If a librarian is checkout out 10 items to a patron, that means svc/checkouts is called uselessly 9 times, with only the 10th time being used to display the checkouts table.

It would be useful to add a delay such that the table only load if the page has been display for a given number of seconds. That way the continuous scanning does not trigger useless svc/checkouts calls, but the librarian also does not need to click the load checkouts button manually.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Verify "Always show checkouts immediately" retains its' original
   behavior of loading the checkouts table immediately
4) Set LoadCheckoutsTableDelay to a non-zero integer
5) Verify the automatic table loading is delayed by that number of
   seconds

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_33945.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/intranet-tmpl/prog/js/checkouts.js