|
Lines 26-32
use Koha::Holds;
Link Here
|
| 26 |
use Koha::Biblios; |
26 |
use Koha::Biblios; |
| 27 |
use Koha::Patrons; |
27 |
use Koha::Patrons; |
| 28 |
use Koha::ArticleRequests; |
28 |
use Koha::ArticleRequests; |
| 29 |
use Koha::ArticleRequest::Status; |
|
|
| 30 |
|
29 |
|
| 31 |
sub HoldsCount { |
30 |
sub HoldsCount { |
| 32 |
my ( $self, $biblionumber ) = @_; |
31 |
my ( $self, $biblionumber ) = @_; |
|
Lines 41-56
sub ArticleRequestsActiveCount {
Link Here
|
| 41 |
|
40 |
|
| 42 |
my $ar = Koha::ArticleRequests->search( |
41 |
my $ar = Koha::ArticleRequests->search( |
| 43 |
{ |
42 |
{ |
| 44 |
biblionumber => $biblionumber, |
43 |
biblionumber => $biblionumber |
| 45 |
status => [ |
|
|
| 46 |
-or => [ |
| 47 |
status => Koha::ArticleRequest::Status::Requested, |
| 48 |
status => Koha::ArticleRequest::Status::Pending, |
| 49 |
status => Koha::ArticleRequest::Status::Processing |
| 50 |
] |
| 51 |
] |
| 52 |
} |
44 |
} |
| 53 |
); |
45 |
)->filter_by_current; |
| 54 |
|
46 |
|
| 55 |
return $ar->count(); |
47 |
return $ar->count(); |
| 56 |
} |
48 |
} |
| 57 |
- |
|
|