]> git.koha-community.org Git - koha.git/commit
Bug 35788: Remove Koha::Template::Plugin::Biblio::BookingsCount
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Jan 2024 13:19:33 +0000 (14:19 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 15 Mar 2024 08:38:42 +0000 (09:38 +0100)
commit93b1cbd69aac54425a6aa492a7d0dd560b81154e
treec4689ca65a83c1d969c17e17ec790218c9d9dca7
parent585a5fb927f39b31fde3b103528e2bbf8b6df20a
Bug 35788: Remove Koha::Template::Plugin::Biblio::BookingsCount

We need a new method filter_by_future in Koha::Bookings.

Additionally this TT plugin's method was not covered by tests. Neither
is the whole Koha::Booking[s] objects btw.

Test plan:
Confirm that the number of bookings is displayed in the "Bookings" tab
in the left menu of the bibliographic record detail page.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Bookings.pm
Koha/Template/Plugin/Biblio.pm
koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc
t/db_dependent/Koha/Bookings.t [new file with mode: 0755]