Bug 35787: Remove Koha::Template::Plugin::Biblio::CanBook
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Jan 2024 13:02:29 +0000 (14:02 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 15 Mar 2024 08:38:41 +0000 (09:38 +0100)
commitbd987c7046d335a9525b65d12601be43e3bddccb
treeb7ab52bda17c4b68c7e503759663bb1c0db7d214
parent7af65cf1febb97a6abe6ab7644ac917770a6f4ed
Bug 35787: Remove Koha::Template::Plugin::Biblio::CanBook

We can replace it with biblio.items.filter_by_bookable, no need to have this TT method.

Additionally there was no test for it.

Test plan:
Make sure the Bookings tab on the left of the biblio detail page is
displayed when needed.

Note that there is also a "Place booking" button that should appear in
the toolbar.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Template/Plugin/Biblio.pm
koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc