@@ -, +, @@ --- catalogue/detail.pl | 4 +++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -250,12 +250,14 @@ if ( C4::Context->preference('suggestion') ) { my $suggestions = Koha::Suggestions->search( { biblionumber => $biblionumber, + archived => 0, }, { order_by => { -desc => 'suggesteddate' } } ); - $template->param( suggestions => $suggestions ); + my $nb_archived_suggestions = Koha::Suggestions->search({ biblionumber => $biblionumber, archived => 1 })->count; + $template->param( suggestions => $suggestions, nb_archived_suggestions => $nb_archived_suggestions ); } if ( defined $dat->{'itemtype'} ) { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -6,6 +6,7 @@ [% USE Branches %] [% USE Biblio %] [% USE ColumnsSettings %] +[% PROCESS 'i18n.inc' %] [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] @@ -698,6 +699,9 @@ Note that permanent location is a code, and location may be an authval. [% IF suggestions.count %]
[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] + [% END %]
[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %] -- |