Lines 194-200
if ( $holds->count ) {
Link Here
|
194 |
# patrons count per biblio |
194 |
# patrons count per biblio |
195 |
my $patrons_count = { |
195 |
my $patrons_count = { |
196 |
map { $_->{biblionumber} => $_->{patrons_count} } @{ Koha::Holds->search( |
196 |
map { $_->{biblionumber} => $_->{patrons_count} } @{ Koha::Holds->search( |
197 |
{ 'suspend' => 0 }, |
197 |
{ 'suspend' => 0, 'found' => undef }, |
198 |
{ |
198 |
{ |
199 |
select => [ 'biblionumber', { count => { distinct => 'borrowernumber' } } ], |
199 |
select => [ 'biblionumber', { count => { distinct => 'borrowernumber' } } ], |
200 |
as => [qw( biblionumber patrons_count )], |
200 |
as => [qw( biblionumber patrons_count )], |
201 |
- |
|
|