Bug 35783: Replace TT plugin's method Biblio::RecallsCount
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Jan 2024 08:41:21 +0000 (09:41 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 22 Mar 2024 09:35:29 +0000 (10:35 +0100)
commit1a780ddcf0afc801483c5d8ed681dd1f7f678d15
tree799e2caff3d1c456f00a3e88d056247e1a17f797
parentdf2cad62b0bdd0ec778dadf62904785bf1bf6b9c
Bug 35783: Replace TT plugin's method Biblio::RecallsCount

We can use biblio.recalls.search( completed => 0 ).count instead.

Test plan:
1. Go to the biblio detail view, click on the different entries in the menu
on the left. Confirm that the "Recalls" tab always has the correct number
of current recalls display in the parenthesis.

2. Run a search and confirm that the number of current recalls are still displayed
for each result.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Template/Plugin/Biblio.pm
installer/data/mysql/atomicupdate/bug_35783.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt