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 [% Asset.css("css/datatables.css") | $raw %]
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 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>
35 <table id="suggestions">
46 [% FOREACH s IN suggestions %]
51 [% IF ( CAN_user_catalogue ) %]
52 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show">[% s.title | html %]</a>
59 [% IF ( s.author ) %][% s.author | html %],[% END %]
60 [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
61 [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
62 [% IF ( s.place ) %]([% s.place | html %])[% END %]
63 [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
64 [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
67 <td>[% s.note | html %]
69 [% IF ( s.surnamemanagedby ) %]
70 [% s.surnamemanagedby | html %]
71 [% IF ( s.firstnamemanagedby ) %],[% END %]
72 [% s.firstnamemanagedby | html %]
79 [% CASE "ASKED" %]<span>Requested</span>
80 [% CASE "CHECKED" %]<span>Checked by the library</span>
81 [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
82 [% CASE "ORDERED" %]<span>Ordered by the library</span>
83 [% CASE "REJECTED" %]<span>Suggestion declined<span>
84 [% CASE "AVAILABLE" %]<span>Available in the library</span>
86 [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
87 [% IF status_description %]
88 [% status_description | html %]
93 [% IF s.reason %]([% s.reason | html %])[% END %]
100 <div class="dialog message">
101 <p>This patron has not submitted any purchase suggestions</p>
106 </div> <!-- /.col-sm-10.col-sm-push-2 -->
108 <div class="col-sm-2 col-sm-pull-10">
110 [% INCLUDE 'circ-menu.inc' %]
112 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
113 </div> <!-- /.row -->
115 [% MACRO jsinclude BLOCK %]
116 [% INCLUDE 'str/members-menu.inc' %]
117 [% Asset.js("js/members-menu.js") | $raw %]
118 [% INCLUDE 'datatables.inc' %]
120 $(document).ready(function() {
121 $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
131 [% INCLUDE 'intranet-bottom.inc' %]