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