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

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 250-261 if ( C4::Context->preference('suggestion') ) { Link Here
250
    my $suggestions = Koha::Suggestions->search(
250
    my $suggestions = Koha::Suggestions->search(
251
        {
251
        {
252
            biblionumber => $biblionumber,
252
            biblionumber => $biblionumber,
253
            archived     => 0,
253
        },
254
        },
254
        {
255
        {
255
            order_by => { -desc => 'suggesteddate' }
256
            order_by => { -desc => 'suggesteddate' }
256
        }
257
        }
257
    );
258
    );
258
    $template->param( suggestions => $suggestions );
259
    my $nb_archived_suggestions = Koha::Suggestions->search({ biblionumber => $biblionumber, archived => 1 })->count;
260
    $template->param( suggestions => $suggestions, nb_archived_suggestions => $nb_archived_suggestions );
259
}
261
}
260
262
261
if ( defined $dat->{'itemtype'} ) {
263
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 698-703 Note that permanent location is a code, and location may be an authval. Link Here
698
699
699
[% IF suggestions.count %]
700
[% IF suggestions.count %]
700
    <div id="suggestion_details">
701
    <div id="suggestion_details">
702
        [% IF nb_archived_suggestions > 0 %]
703
            <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
704
        [% END %]
701
        <table id="suggestions" class="sorted">
705
        <table id="suggestions" class="sorted">
702
            <thead>
706
            <thead>
703
                <tr>
707
                <tr>
Lines 722-728 Note that permanent location is a code, and location may be an authval. Link Here
722
                        [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
726
                        [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
723
                        [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
727
                        [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
724
                        [% 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 %]
728
                        [% 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 %]
725
                        [% IF suggestion.archived %]<br /><i class="fa fa-archive"> Archived[% END %]
726
                    </td>
729
                    </td>
727
                    <td>
730
                    <td>
728
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
731
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
729
- 

Return to bug 23591