Bugzilla – Attachment 161050 Details for
Bug 35790
Remove Koha::Template::Plugin::Biblio::CanArticleRequest
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35790: Remove Koha::Template::Plugin::Biblio::CanArticleRequest
Bug-35790-Remove-KohaTemplatePluginBiblioCanArticl.patch (text/plain), 1.42 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-01-15 18:28:43 UTC
(
hide
)
Description:
Bug 35790: Remove Koha::Template::Plugin::Biblio::CanArticleRequest
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-01-15 18:28:43 UTC
Size:
1.42 KB
patch
obsolete
>From 59999d116bed760452562961552d8e05b33fed14 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <tomascohen@theke.io> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35790
:
160964
| 161050