5 [% USE AuthorisedValues %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %] › Patrons › Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="pat_purchase_suggestions" class="pat">
14 [% WRAPPER 'header.inc' %]
15 [% INCLUDE 'patron-search-header.inc' %]
18 [% WRAPPER 'sub-header.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
25 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
28 <a href="#" aria-current="page">
29 Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
36 <div class="main container-fluid">
38 <div class="col-sm-10 col-sm-push-2">
41 [% INCLUDE 'members-toolbar.inc' %]
42 <h1>Purchase suggestions</h1>
44 <div id="toolbar" class="btn-toolbar">
45 <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>
48 [% IF suggestions.size %]
49 <table id="suggestions">
62 [% FOREACH s IN suggestions %]
67 [% IF ( CAN_user_catalogue ) %]
68 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show">[% s.title | html %]</a>
75 [% IF ( s.author ) %][% s.author | html %],[% END %]
76 [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
77 [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
78 [% IF ( s.place ) %]([% s.place | html %])[% END %]
79 [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
80 [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
83 <td>[% s.note | html %]
85 [% INCLUDE 'patron-title.inc' patron => s.manager %]
87 <td data-order="[% s.manageddate | html %]">
88 [% s.manageddate | $KohaDates %]
90 <td data-order="[% s.suggesteddate | html %]">
91 [% s.suggesteddate | $KohaDates %]
95 [% CASE "ASKED" %]<span>Requested</span>
96 [% CASE "CHECKED" %]<span>Checked by the library</span>
97 [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
98 [% CASE "ORDERED" %]<span>Ordered by the library</span>
99 [% CASE "REJECTED" %]<span>Suggestion declined<span>
100 [% CASE "AVAILABLE" %]<span>Available in the library</span>
102 [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
103 [% IF status_description %]
104 [% status_description | html %]
109 [% IF s.reason %]([% s.reason | html %])[% END %]
116 <div class="dialog message">
117 <p>This patron has not submitted any purchase suggestions</p>
122 </div> <!-- /.col-sm-10.col-sm-push-2 -->
124 <div class="col-sm-2 col-sm-pull-10">
126 [% INCLUDE 'circ-menu.inc' %]
128 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
129 </div> <!-- /.row -->
131 [% MACRO jsinclude BLOCK %]
132 [% INCLUDE 'str/members-menu.inc' %]
133 [% Asset.js("js/members-menu.js") | $raw %]
134 [% INCLUDE 'datatables.inc' %]
136 $(document).ready(function() {
137 $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
147 [% INCLUDE 'intranet-bottom.inc' %]