Bug 15094: Update link to Windows Offline Circ
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / purchase-suggestions.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Patrons &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8     $(document).ready(function() {
9         $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
10             'bPaginate': false,
11             'bFilter': false,
12             'bInfo': false,
13             'sDom': 't'
14         } ));
15     });
16 </script>
17 </head>
18
19 <body id="pat_purchase_suggestions" class="pat">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'patron-search.inc' %]
22
23 <div id="breadcrumbs">
24          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
26 &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
27 </div>
28
29 <div id="doc3" class="yui-t1">
30
31    <div id="bd">
32     <div id="yui-main">
33         <div class="yui-b">
34             <div class="yui-g">
35                 <h2>Purchase suggestions</h2>
36
37                 <div id="toolbar" class="btn-toolbar">
38                     <a class="btn btn-small" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% borrowernumber %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
39                 </div>
40
41                 [% IF suggestions %]
42                   <table id="suggestions">
43                     <thead>
44                         <tr>
45                           <th>Summary</th>
46                           <th>Note</th>
47                           <th>Managed by</th>
48                           <th>Status</th>
49                         </tr>
50                     </thead>
51
52                     <tbody>
53                         [% FOREACH s IN suggestions %]
54                             <tr>
55                                 <td>
56                                     <p>
57                                         <strong>
58                                             [% IF ( CAN_user_catalogue ) %]
59                                                 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&amp;op=show">[% s.title |html %]</a>
60                                             [% ELSE %]
61                                                 [% s.title |html %]
62                                             [% END %]
63                                         </strong>
64                                     </p>
65                                     <p>
66                                         [% IF ( s.author ) %][% s.author %],[% END %]
67                                         [% IF ( s.copyrightdate ) %] - [% s.copyrightdate %],[% END %]
68                                         [% IF ( s.publishercode ) %] - [% s.publishercode %][% END %]
69                                         [% IF ( s.place ) %]([% s.place %])[% END %]
70                                         [% IF ( s.collectiontitle ) %] , [% s.collectiontitle %][% END %]
71                                         [% IF ( s.itemtype ) %] - [% s.itemtype %][% END %]
72                                     </p>
73                                 </td>
74                                 <td>[% s.note %]
75                                 <td>
76                                     [% IF ( s.surnamemanagedby ) %]
77                                         [% s.surnamemanagedby %]
78                                         [% IF ( s.firstnamemanagedby ) %],[% END %]
79                                         [% s.firstnamemanagedby %]
80                                     [% ELSE %]
81                                         &nbsp;
82                                     [% END %]
83                                 </td>
84                                 <td>
85                                     [% IF ( s.ASKED ) %]Requested[% END %]
86                                     [% IF ( s.CHECKED ) %]Checked by the library[% END %]
87                                     [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
88                                     [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
89                                     [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
90                                     [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
91                                     [% IF ( s.reason ) %]([% s.reason %])[% END %]
92                                 </td>
93                             </tr>
94                         [% END %]
95                     </tbody>
96                   </table>
97                 [% ELSE %]
98                     <div class="dialog message">
99                         <p>This patron has not submitted any purchase suggestions</p>
100                     </div>
101                 [% END %]
102             </div>
103         </div>
104     </div>
105 <div class="yui-b">
106 [% INCLUDE 'circ-menu.inc' %]
107 </div>
108 </div>
109 [% INCLUDE 'intranet-bottom.inc' %]