Lines 23-28
use C4::Biblio; # GetMarcFromKohaField, GetBiblioData
Link Here
|
23 |
use C4::Koha; # getFacets |
23 |
use C4::Koha; # getFacets |
24 |
use Koha::DateUtils; |
24 |
use Koha::DateUtils; |
25 |
use Koha::Libraries; |
25 |
use Koha::Libraries; |
|
|
26 |
use Koha::Holds; |
26 |
use Lingua::Stem; |
27 |
use Lingua::Stem; |
27 |
use C4::Search::PazPar2; |
28 |
use C4::Search::PazPar2; |
28 |
use XML::Simple; |
29 |
use XML::Simple; |
Lines 2247-2252
sub searchResults {
Link Here
|
2247 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2248 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2248 |
$oldbiblio->{orderedcount} = $ordered_count; |
2249 |
$oldbiblio->{orderedcount} = $ordered_count; |
2249 |
$oldbiblio->{notforloancount} = $notforloan_count; |
2250 |
$oldbiblio->{notforloancount} = $notforloan_count; |
|
|
2251 |
$oldbiblio->{holdscount} = Koha::Holds->count( { biblionumber => $oldbiblio->{biblionumber} } ); |
2250 |
|
2252 |
|
2251 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2253 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2252 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |
2254 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |