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

(-)a/catalogue/detail.pl (+12 lines)
Lines 247-252 if ( C4::Context->preference('AcquisitionDetails') ) { Link Here
247
    );
247
    );
248
}
248
}
249
249
250
if ( C4::Context->preference('suggestion') ) {
251
    my $suggestions = Koha::Suggestions->search(
252
        {
253
            biblionumber => $biblionumber,
254
        },
255
        {
256
            order_by => { -desc => 'suggesteddate' }
257
        }
258
    );
259
    $template->param( suggestions => $suggestions );
260
}
261
250
if ( defined $dat->{'itemtype'} ) {
262
if ( defined $dat->{'itemtype'} ) {
251
    $dat->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $dat->{itemtype} }{imageurl} );
263
    $dat->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $dat->{itemtype} }{imageurl} );
252
}
264
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +79 lines)
Lines 185-190 Link Here
185
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
185
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
186
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
186
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
187
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
187
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
188
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
188
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
189
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
189
[% IF ( LocalCoverImages ) %]
190
[% IF ( LocalCoverImages ) %]
190
    [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
191
    [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
Lines 697-702 Note that permanent location is a code, and location may be an authval. Link Here
697
</div>
698
</div>
698
[% END %]
699
[% END %]
699
700
701
[% IF suggestions.count %]
702
    <div id="suggestion_details">
703
        <table id="suggestions" class="sorted">
704
            <thead>
705
                <tr>
706
                    <th class="NoSort">&nbsp;</th>
707
                    <th class="anti-the">Suggestion</th>
708
                    <th>Suggested by - on</th>
709
                    <th>Managed by - on</th>
710
                    <th>Last modification by - on</th>
711
                    <th>Library</th>
712
                    <th>Fund</th>
713
                    <th>Status</th>
714
                </tr>
715
            </thead>
716
            <tbody>
717
            [% FOREACH suggestion IN suggestions %]
718
                <tr>
719
                    <td>[% suggestion.suggestionid | html %]</td>
720
                    <td>
721
                        <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&amp;op=show" title="suggestion" >
722
                            [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
723
                        <br />
724
                        [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
725
                        [% 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="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>
729
                    <td>
730
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
731
                        [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
732
                    </td>
733
                    <td>
734
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
735
                        [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
736
                    </td>
737
                    <td>
738
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
739
                        [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
740
                    </td>
741
                    <td>
742
                        [% Branches.GetName( suggestion.branchcode ) | html %]
743
                    </td>
744
                    <td>
745
                        [% suggestion.fund.budget_name | html %]
746
                    </td>
747
                    <td>
748
                        [% IF    suggestion.STATUS == 'ASKED'     %]Pending
749
                        [% ELSIF suggestion.STATUS == 'ACCEPTED'  %]Accepted
750
                        [% ELSIF suggestion.STATUS == 'ORDERED'   %]Ordered
751
                        [% ELSIF suggestion.STATUS == 'REJECTED'  %]Rejected
752
                        [% ELSIF suggestion.STATUS == 'CHECKED'   %]Checked
753
                        [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
754
                        [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
755
                            [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
756
                        [% ELSE %]Status unknown
757
                        [% END %]
758
                        [% IF suggestion.reason %]
759
                            <br />([% suggestion.reason | html %])
760
                        [% END %]
761
                    </td>
762
                </tr>
763
                [% END %]
764
            </tbody>
765
        </table>
766
    </div>
767
[% END %]
768
700
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
769
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
701
<div id="editions"><h4>Editions</h4>
770
<div id="editions"><h4>Editions</h4>
702
<table>
771
<table>
Lines 1067-1072 Note that permanent location is a code, and location may be an authval. Link Here
1067
                    ]
1136
                    ]
1068
                }, columns_settings);
1137
                }, columns_settings);
1069
            [% END %]
1138
            [% END %]
1139
1140
            [% IF suggestions.count %]
1141
                $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1142
                    "aoColumnDefs": [
1143
                        { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1144
                        { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1145
                    ],
1146
                    "sPaginationType": "full"
1147
                }));
1148
            [% END %]
1070
        });
1149
        });
1071
    </script>
1150
    </script>
1072
[% END %]
1151
[% END %]
1073
- 

Return to bug 23591