5 [% USE AuthorisedValues %]
7 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>[% FILTER collapse %]
11 [% t("Purchase suggestions for") | html %] [% INCLUDE 'patron-title.inc' no_html = 1 %] ›
12 [% t("Patrons") | html %] ›
13 [% t("Koha") | html %]
15 [% INCLUDE 'doc-head-close.inc' %]
18 <body id="pat_purchase_suggestions" class="pat">
19 [% WRAPPER 'header.inc' %]
20 [% INCLUDE 'patron-search-header.inc' %]
23 [% WRAPPER 'sub-header.inc' %]
24 [% WRAPPER breadcrumbs %]
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
28 [% WRAPPER breadcrumb_item %]
29 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
31 [% WRAPPER breadcrumb_item bc_active= 1 %]
32 <span>Purchase suggestions</span>
34 [% END #/ WRAPPER breadcrumbs %]
35 [% END #/ WRAPPER sub-header.inc %]
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
42 [% INCLUDE 'members-toolbar.inc' %]
43 <h1>Purchase suggestions</h1>
45 <div id="toolbar" class="btn-toolbar">
46 <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>
49 [% IF suggestions.size %]
50 <div class="page-section">
51 <table id="suggestions">
56 <th>Non-public note</th>
65 [% FOREACH s IN suggestions %]
70 [% IF ( CAN_user_catalogue ) %]
71 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show">[% s.title | html %]</a>
78 [% IF ( s.author ) %][% s.author | html %],[% END %]
79 [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
80 [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
81 [% IF ( s.place ) %]([% s.place | html %])[% END %]
82 [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
83 [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
86 <td>[% s.note | html %]
87 <td>[% s.staff_note | html %]
89 [% INCLUDE 'patron-title.inc' patron => s.manager %]
91 <td data-order="[% s.manageddate | html %]">
92 [% s.manageddate | $KohaDates %]
94 <td data-order="[% s.suggesteddate | html %]">
95 [% s.suggesteddate | $KohaDates %]
99 [% CASE "ASKED" %]<span>Requested</span>
100 [% CASE "CHECKED" %]<span>Checked by the library</span>
101 [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
102 [% CASE "ORDERED" %]<span>Ordered by the library</span>
103 [% CASE "REJECTED" %]<span>Suggestion declined<span>
104 [% CASE "AVAILABLE" %]<span>Available in the library</span>
106 [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
107 [% IF status_description %]
108 [% status_description | html %]
113 [% IF s.reason %]([% s.reason | html %])[% END %]
119 </div> <!-- /.page-section -->
121 <div class="dialog message">
122 <p>This patron has not submitted any purchase suggestions</p>
127 </div> <!-- /.col-sm-10.col-sm-push-2 -->
129 <div class="col-sm-2 col-sm-pull-10">
131 [% INCLUDE 'circ-menu.inc' %]
133 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
134 </div> <!-- /.row -->
136 [% MACRO jsinclude BLOCK %]
137 [% INCLUDE 'str/members-menu.inc' %]
138 [% Asset.js("js/members-menu.js") | $raw %]
139 [% INCLUDE 'datatables.inc' %]
141 $(document).ready(function() {
142 $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
152 [% INCLUDE 'intranet-bottom.inc' %]