View | Details | Raw Unified | Return to bug 35790
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Biblio.pm (-12 lines)
Lines 23-31 use Template::Plugin; Link Here
23
use base qw( Template::Plugin );
23
use base qw( Template::Plugin );
24
24
25
use Koha::Holds;
25
use Koha::Holds;
26
use Koha::Biblios;
27
use Koha::Database;
26
use Koha::Database;
28
use Koha::Patrons;
29
use Koha::Recalls;
27
use Koha::Recalls;
30
28
31
# Do not use HoldsCount, it is deprecated and will be removed in a future release.
29
# Do not use HoldsCount, it is deprecated and will be removed in a future release.
Lines 39-53 sub HoldsCount { Link Here
39
    return $holds->count();
37
    return $holds->count();
40
}
38
}
41
39
42
sub CanArticleRequest {
43
    my ( $self, $biblionumber, $borrowernumber ) = @_;
44
45
    my $biblio = Koha::Biblios->find( $biblionumber );
46
    my $borrower = Koha::Patrons->find( $borrowernumber );
47
48
    return $biblio ? $biblio->can_article_request( $borrower ) : 0;
49
}
50
51
# Do not use RecallsCount, it is deprecated and will be removed in a future release.
40
# Do not use RecallsCount, it is deprecated and will be removed in a future release.
52
sub RecallsCount {
41
sub RecallsCount {
53
    my ( $self, $biblionumber ) = @_;
42
    my ( $self, $biblionumber ) = @_;
54
- 

Return to bug 35790