4 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Patrons › Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="pat_purchase_suggestions" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
16 <div id="breadcrumbs">
17 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
19 › Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
22 <div class="main container-fluid">
24 <div class="col-sm-10 col-sm-push-2">
27 <h2>Purchase suggestions</h2>
29 <div id="toolbar" class="btn-toolbar">
30 <a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% patron.borrowernumber | html %]&redirect=purchase_suggestions&borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
34 <table id="suggestions">
45 [% FOREACH s IN suggestions %]
50 [% IF ( CAN_user_catalogue ) %]
51 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show">[% s.title | html %]</a>
58 [% IF ( s.author ) %][% s.author | html %],[% END %]
59 [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
60 [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
61 [% IF ( s.place ) %]([% s.place | html %])[% END %]
62 [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
63 [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
66 <td>[% s.note | html %]
68 [% IF ( s.surnamemanagedby ) %]
69 [% s.surnamemanagedby | html %]
70 [% IF ( s.firstnamemanagedby ) %],[% END %]
71 [% s.firstnamemanagedby | html %]
78 [% CASE "ASKED" %]<span>Requested</span>
79 [% CASE "CHECKED" %]<span>Checked by the library</span>
80 [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
81 [% CASE "ORDERED" %]<span>Ordered by the library</span>
82 [% CASE "REJECTED" %]<span>Suggestion declined<span>
83 [% CASE "AVAILABLE" %]<span>Available in the library</span>
85 [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
86 [% IF status_description %]
87 [% status_description | html %]
92 [% IF s.reason %]([% s.reason | html %])[% END %]
99 <div class="dialog message">
100 <p>This patron has not submitted any purchase suggestions</p>
105 </div> <!-- /.col-sm-10.col-sm-push-2 -->
107 <div class="col-sm-2 col-sm-pull-10">
109 [% INCLUDE 'circ-menu.inc' %]
111 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
112 </div> <!-- /.row -->
114 [% MACRO jsinclude BLOCK %]
115 [% INCLUDE 'str/members-menu.inc' %]
116 [% Asset.js("js/members-menu.js") | $raw %]
117 [% INCLUDE 'datatables.inc' %]
119 $(document).ready(function() {
120 $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
130 [% INCLUDE 'intranet-bottom.inc' %]