@@ -, +, @@ results some holds) Holds (#) --- C4/Search.pm | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -23,6 +23,7 @@ use C4::Biblio; # GetMarcFromKohaField, GetBiblioData use C4::Koha; # getFacets use Koha::DateUtils; use Koha::Libraries; +use Koha::Holds; use Lingua::Stem; use C4::Search::PazPar2; use XML::Simple; @@ -2247,6 +2248,7 @@ sub searchResults { $oldbiblio->{onholdcount} = $item_onhold_count; $oldbiblio->{orderedcount} = $ordered_count; $oldbiblio->{notforloancount} = $notforloan_count; + $oldbiblio->{holdscount} = Koha::Holds->count( { biblionumber => $oldbiblio->{biblionumber} } ); if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { my $fieldspec = C4::Context->preference("AlternateHoldingsField"); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -587,7 +587,7 @@ var holdForPatron = function () { [% IF ( SEARCH_RESULT.norequests ) %] No holds allowed [% ELSE %] - Holds + Holds ([% SEARCH_RESULT.holdscount %]) [% IF ( holdfor ) %] | Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])[% END %] [% END %] --