View | Details | Raw Unified | Return to bug 23591
Collapse All | Expand All

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 243-254 if ( C4::Context->preference('suggestion') ) { Link Here
243
    my $suggestions = Koha::Suggestions->search(
243
    my $suggestions = Koha::Suggestions->search(
244
        {
244
        {
245
            biblionumber => $biblionumber,
245
            biblionumber => $biblionumber,
246
            archived     => 0,
246
        },
247
        },
247
        {
248
        {
248
            order_by => { -desc => 'suggesteddate' }
249
            order_by => { -desc => 'suggesteddate' }
249
        }
250
        }
250
    );
251
    );
251
    $template->param( suggestions => $suggestions );
252
    my $nb_archived_suggestions = Koha::Suggestions->search({ biblionumber => $biblionumber, archived => 1 })->count;
253
    $template->param( suggestions => $suggestions, nb_archived_suggestions => $nb_archived_suggestions );
252
}
254
}
253
255
254
if ( defined $dat->{'itemtype'} ) {
256
if ( defined $dat->{'itemtype'} ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +4 lines)
Lines 6-11 Link Here
6
[% USE Branches %]
6
[% USE Branches %]
7
[% USE Biblio %]
7
[% USE Biblio %]
8
[% USE ColumnsSettings %]
8
[% USE ColumnsSettings %]
9
[% PROCESS 'i18n.inc' %]
9
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
12
Lines 669-674 Link Here
669
670
670
[% IF suggestions.count %]
671
[% IF suggestions.count %]
671
    <div id="suggestion_details">
672
    <div id="suggestion_details">
673
        [% IF nb_archived_suggestions > 0 %]
674
            <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
675
        [% END %]
672
        <table id="suggestions" class="sorted">
676
        <table id="suggestions" class="sorted">
673
            <thead>
677
            <thead>
674
                <tr>
678
                <tr>
Lines 693-699 Link Here
693
                        [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
697
                        [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
694
                        [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
698
                        [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
695
                        [% IF ( suggestion.isbn ) %]; ISBN:<i>[% suggestion.isbn | html %]</i> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <i>[% suggestion.publicationyear | html %]</i> [% END %][% IF ( suggestion.place ) %] in <i>[% suggestion.place | html %]</i> [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestion.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
699
                        [% IF ( suggestion.isbn ) %]; ISBN:<i>[% suggestion.isbn | html %]</i> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <i>[% suggestion.publicationyear | html %]</i> [% END %][% IF ( suggestion.place ) %] in <i>[% suggestion.place | html %]</i> [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestion.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
696
                        [% IF suggestion.archived %]<br /><i class="fa fa-archive"> Archived[% END %]
697
                    </td>
700
                    </td>
698
                    <td>
701
                    <td>
699
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
702
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
700
- 

Return to bug 23591