]> git.koha-community.org Git - koha.git/commit
Bug 30085: Reduce scope of holds count / today holds count
authorNick Clemens <nick@bywatersolutions.com>
Fri, 11 Feb 2022 19:21:22 +0000 (19:21 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 Feb 2022 08:27:28 +0000 (22:27 -1000)
commit5efaed428e41f7ef87c1c6bd7ca97c8962626e72
treec6dd3fddf8e805552150fb351ca0625bccd5bb30
parent96c05acaf6cddf2b17936f4032ada60af92a8262
Bug 30085: Reduce scope of holds count / today holds count

We retrieve two counts that are only needed if rules for hold limits are defined.
The DB counts should only be fetched once the rules are confirmed to exist

Further improvement would be possiblke by allowing them to be passed in (or cached?)
from CanBookBeReserved as they rely only on patron/biblionumber and not item specific information

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reserves.pm