From 59999d116bed760452562961552d8e05b33fed14 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Jan 2024 14:42:46 +0100 Subject: [PATCH] Bug 35790: Remove Koha::Template::Plugin::Biblio::CanArticleRequest It is no longer used anywhere. Test plan: % git grep CanArticleRequest should not return any results Signed-off-by: Tomas Cohen Arazi --- Koha/Template/Plugin/Biblio.pm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Koha/Template/Plugin/Biblio.pm b/Koha/Template/Plugin/Biblio.pm index 090fc071e09..b16bb3e138b 100644 --- a/Koha/Template/Plugin/Biblio.pm +++ b/Koha/Template/Plugin/Biblio.pm @@ -23,9 +23,7 @@ use Template::Plugin; use base qw( Template::Plugin ); use Koha::Holds; -use Koha::Biblios; use Koha::Database; -use Koha::Patrons; use Koha::Recalls; # Do not use HoldsCount, it is deprecated and will be removed in a future release. @@ -39,15 +37,6 @@ sub HoldsCount { return $holds->count(); } -sub CanArticleRequest { - my ( $self, $biblionumber, $borrowernumber ) = @_; - - my $biblio = Koha::Biblios->find( $biblionumber ); - my $borrower = Koha::Patrons->find( $borrowernumber ); - - return $biblio ? $biblio->can_article_request( $borrower ) : 0; -} - # Do not use RecallsCount, it is deprecated and will be removed in a future release. sub RecallsCount { my ( $self, $biblionumber ) = @_; -- 2.43.0