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

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

Return to bug 23591