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