|
Lines 26-32
use Koha::Holds;
Link Here
|
| 26 |
use Koha::Biblios; |
26 |
use Koha::Biblios; |
| 27 |
use Koha::Database; |
27 |
use Koha::Database; |
| 28 |
use Koha::Patrons; |
28 |
use Koha::Patrons; |
| 29 |
use Koha::ArticleRequests; |
|
|
| 30 |
use Koha::Recalls; |
29 |
use Koha::Recalls; |
| 31 |
|
30 |
|
| 32 |
# Do not use HoldsCount, it is deprecated and will be removed in a future release. |
31 |
# Do not use HoldsCount, it is deprecated and will be removed in a future release. |
|
Lines 40-57
sub HoldsCount {
Link Here
|
| 40 |
return $holds->count(); |
39 |
return $holds->count(); |
| 41 |
} |
40 |
} |
| 42 |
|
41 |
|
| 43 |
sub ArticleRequestsActiveCount { |
|
|
| 44 |
my ( $self, $biblionumber ) = @_; |
| 45 |
|
| 46 |
my $ar = Koha::ArticleRequests->search( |
| 47 |
{ |
| 48 |
biblionumber => $biblionumber |
| 49 |
} |
| 50 |
)->filter_by_current; |
| 51 |
|
| 52 |
return $ar->count(); |
| 53 |
} |
| 54 |
|
| 55 |
sub CanArticleRequest { |
42 |
sub CanArticleRequest { |
| 56 |
my ( $self, $biblionumber, $borrowernumber ) = @_; |
43 |
my ( $self, $biblionumber, $borrowernumber ) = @_; |
| 57 |
|
44 |
|