5 [% USE AuthorisedValues %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Patrons › Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="pat_purchase_suggestions" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
17 <div id="breadcrumbs">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
20 › Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
23 <div class="main container-fluid">
25 <div class="col-sm-10 col-sm-push-2">
28 <h2>Purchase suggestions</h2>
30 <div id="toolbar" class="btn-toolbar">
31 <a class="btn btn-default" 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>
35 <table id="suggestions">
48 [% FOREACH s IN suggestions %]
53 [% IF ( CAN_user_catalogue ) %]
54 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show">[% s.title | html %]</a>
61 [% IF ( s.author ) %][% s.author | html %],[% END %]
62 [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
63 [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
64 [% IF ( s.place ) %]([% s.place | html %])[% END %]
65 [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
66 [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
69 <td>[% s.note | html %]
71 [% IF ( s.surnamemanagedby ) %]
72 [% s.surnamemanagedby | html %]
73 [% IF ( s.firstnamemanagedby ) %],[% END %]
74 [% s.firstnamemanagedby | html %]
79 <td data-order="[% s.manageddate | html %]">
80 [% s.manageddate | $KohaDates %]
82 <td data-order="[% s.suggesteddate | html %]">
83 [% s.suggesteddate | $KohaDates %]
87 [% CASE "ASKED" %]<span>Requested</span>
88 [% CASE "CHECKED" %]<span>Checked by the library</span>
89 [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
90 [% CASE "ORDERED" %]<span>Ordered by the library</span>
91 [% CASE "REJECTED" %]<span>Suggestion declined<span>
92 [% CASE "AVAILABLE" %]<span>Available in the library</span>
94 [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
95 [% IF status_description %]
96 [% status_description | html %]
101 [% IF s.reason %]([% s.reason | html %])[% END %]
108 <div class="dialog message">
109 <p>This patron has not submitted any purchase suggestions</p>
114 </div> <!-- /.col-sm-10.col-sm-push-2 -->
116 <div class="col-sm-2 col-sm-pull-10">
118 [% INCLUDE 'circ-menu.inc' %]
120 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
121 </div> <!-- /.row -->
123 [% MACRO jsinclude BLOCK %]
124 [% INCLUDE 'str/members-menu.inc' %]
125 [% Asset.js("js/members-menu.js") | $raw %]
126 [% INCLUDE 'datatables.inc' %]
128 $(document).ready(function() {
129 $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
139 [% INCLUDE 'intranet-bottom.inc' %]