@@ -, +, @@ detail page - Create several suggestions for a given biblio - Go to the detail page of the bibliographic record and confirm that --- catalogue/detail.pl | 12 +++ .../prog/en/modules/catalogue/detail.tt | 79 +++++++++++++++++++ 2 files changed, 91 insertions(+) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -247,6 +247,18 @@ if ( C4::Context->preference('AcquisitionDetails') ) { ); } +if ( C4::Context->preference('suggestion') ) { + my $suggestions = Koha::Suggestions->search( + { + biblionumber => $biblionumber, + }, + { + order_by => { -desc => 'suggesteddate' } + } + ); + $template->param( suggestions => $suggestions ); +} + if ( defined $dat->{'itemtype'} ) { $dat->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $dat->{itemtype} }{imageurl} ); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -185,6 +185,7 @@ [% IF ( MARCNOTES || notes ) %]
+ | Suggestion | +Suggested by - on | +Managed by - on | +Last modification by - on | +Library | +Fund | +Status | +
---|---|---|---|---|---|---|---|
[% suggestion.suggestionid | html %] | +
+
+ [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]
+ + [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %] + [% IF ( suggestion.volumedesc ) %]; Volume:[% suggestion.volumedesc | html %] [% END %] + [% IF ( suggestion.isbn ) %]; ISBN:[% suggestion.isbn | html %] [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in [% suggestion.publicationyear | html %] [% END %][% IF ( suggestion.place ) %] in [% suggestion.place | html %] [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %] [% IF ( suggestion.note ) %] [% suggestion.note | html %] [% END %]
+ [% IF suggestion.archived %]Archived[% END %] + |
+ + [% INCLUDE 'patron-title.inc' patron => suggestion.suggester %] + [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %] + | ++ [% INCLUDE 'patron-title.inc' patron => suggestion.manager %] + [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %] + | ++ [% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %] + [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %] + | ++ [% Branches.GetName( suggestion.branchcode ) | html %] + | ++ [% suggestion.fund.budget_name | html %] + | +
+ [% IF suggestion.STATUS == 'ASKED' %]Pending
+ [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
+ [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
+ [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
+ [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
+ [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
+ [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
+ [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
+ [% ELSE %]Status unknown
+ [% END %]
+ [% IF suggestion.reason %]
+ ([% suggestion.reason | html %]) + [% END %] + |
+