Bug 18629: (followup) Plain text "Continue..." instead of BLOCK
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / view_holdsqueue.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE ItemTypes %]
4 [% USE Branches %]
5 [% USE AuthorisedValues %]
6 [% USE ColumnsSettings %]
7 [% USE Koha %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 <style type="text/css"> p { margin-top: 0; }</style>
12 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
13 [% INCLUDE 'datatables.inc' %]
14 [% INCLUDE 'columns_settings.inc' %]
15 <script type="text/javascript">//<![CDATA[
16 $(document).ready(function() {
17     var holdst;
18
19     // Setup filters before DataTables initialisation, in case some columns are
20     // hidden by default
21     var filterColumnTimeoutId;
22     var filterColumn = function(e) {
23         clearTimeout(filterColumnTimeoutId);
24         filterColumnTimeoutId = setTimeout(function() {
25             var input = $(e.target);
26             var idx = input.parents('td').index();
27             holdst.api().column(idx + ':visible').search(input.val()).draw();
28         }, 200);
29     };
30     $('#holdst thead input').on('change keyup keydown', filterColumn);
31
32     var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') %];
33     var holdst = KohaTable("#holdst", {
34         "aaSorting": [[ 3, "asc" ]],
35         "aoColumns": [
36             { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
37         ],
38         "sDom": 'B<"clearfix">t',
39         "bSortCellsTop": true,
40         "bPaginate": false
41     }, columns_settings);
42
43 });
44 //]]>
45 </script>
46 </head>
47 <body id="circ_view_holdsqueue" class="circ">
48 [% INCLUDE 'header.inc' %]
49 [% INCLUDE 'cat-search.inc' %]
50
51 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
52 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
53 &rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
54 [% IF ( run_report ) %] &rsaquo; Results[% END %]
55 </div>
56
57 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc2" class="yui-t7">[% END %]
58
59    <div id="bd">
60         <div id="yui-main">
61         [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
62         <div class="yui-g">
63
64 <h1>Holds queue</h1>
65
66 [% IF ( run_report ) %]
67     [% IF ( total ) %]
68         <div class="results">[% total %] items found for
69             [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) %][% ELSE %]All libraries[% END %]
70         </div>
71     [% ELSE %]
72         <div class="dialog message">No items found.</div>
73     [% END %]
74     [% IF ( itemsloop ) %]
75 <table id="holdst">
76         <thead>
77     <tr>
78         <th class="hq-title">Title</th>
79         <th class="hq-collection">Collection</th>
80         <th class="hq-itemtype">Item type</th>
81         <th class="hq-callnumber">Call number</th>
82         <th class="hq-copynumber">Copy number</th>
83         <th class="hq-enumchron">Enumeration</th>
84         <th class="hq-barcode">Barcode</th>
85         <th class="hq-patron">Patron</th>
86         <th class="hq-sendto">Send to</th>
87         <th class="hq-date">Date</th>
88         <th class="hq-notes">Notes</th>
89     </tr>
90     <tr>
91         <td class="hq-title">
92             <span class="filter_column filter_text">
93                 <input class="text_filter" type="text" placeholder="Title">
94             </span>
95         </td>
96         <td class="hq-collection">
97             <span class="filter_column filter_text">
98                 <input type="text" placeholder="Collection">
99             </span>
100         </td>
101         <td class="hq-itemtype">
102             <span class="filter_column filter_text">
103                 <input type="text" placeholder="Item type">
104             </span>
105         </td>
106         <td class="hq-callnumber">
107             <span class="filter_column filter_text">
108                 <input type="text" placeholder="Call number">
109             </span>
110         </td>
111         <td class="hq-copynumber">
112             <span class="filter_column filter_text">
113                 <input type="text" placeholder="Copy number">
114             </span>
115         </td>
116         <td class="hq-enumchron">
117             <span class="filter_column filter_text">
118                 <input type="text" placeholder="Enumeration">
119             </span>
120         </td>
121         <td class="hq-barcode">
122             <span class="filter_column filter_text">
123                 <input type="text" placeholder="Barcode">
124             </span>
125         </td>
126         <td class="hq-patron">
127             <span class="filter_column filter_text">
128                 <input type="text" placeholder="Patron">
129             </span>
130         </td>
131         <td class="hq-sendto">
132             <span class="filter_column filter_text">
133                 <input type="text" placeholder="Send to">
134             </span>
135         </td>
136         <td class="hq-date">
137             <span class="filter_column filter_text">
138                 <input type="text" placeholder="Date">
139             </span>
140         </td>
141         <td class="hq-notes">
142             <span class="filter_column filter_text">
143                 <input type="text" placeholder="Notes">
144             </span>
145         </td>
146     </tr>
147         </thead>
148      <tbody>[% FOREACH itemsloo IN itemsloop %]
149         <tr>
150             <td class="hq-title">
151                 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title | html %]</strong> [% FOREACH s IN itemsloo.subtitle %] [% s %][% END %]</a></p>
152                 <p>
153                     <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber %]</div>
154                     <div class="hq-author">[% itemsloo.author %]</div>
155                     <div class="hq-pubdata">
156                         [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
157
158                         [% IF ( itemsloo.publicationyear ) %]
159                             , [% itemsloo.publicationyear %]
160                         [% ELSIF ( itemsloo.copyrightdate ) %]
161                             , [% itemsloo.copyrightdate %]
162                         [% END %]
163
164                         [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
165
166                         [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') %][% END %]
167
168                         [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]
169                     </div>
170                 </p>
171             </td>
172             <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
173             <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
174             <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) %]</em> [% END %][% itemsloo.itemcallnumber %]</td>
175             <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
176             <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
177             <td class="hq-barcode">
178                 [% IF ( itemsloo.item_level_request ) %]
179                     <em>Only item:</em> <strong>[% itemsloo.barcode %]</strong>
180                 [% ELSE %]
181                     <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
182                 [% END %]
183             </td>
184             <td class="hq-patron">
185               [% IF Koha.Preference('HidePatronName') %]
186                 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.cardnumber %]</a></p>
187               [% ELSE %]
188                 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])</a></p>
189                 <p>[% itemsloo.phone %]</p>
190               [% END %]
191             </td>
192             <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td>
193             <td class="hq-date"><span title="[% itemsloo.reservedate %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
194             <td class="hq-notes">[% itemsloo.notes %]</td>
195         </tr>
196     [% END %]</tbody>
197     </table>
198         [% END %] 
199         [% END %]
200
201 [% UNLESS ( total ) %]
202 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
203         <fieldset class="rows">
204         <ol>
205         <li>
206             <label for="branchlimit">Library: </label>
207             <select name="branchlimit" id="branchlimit">
208                 <option value="">All</option>
209                 [% PROCESS options_for_libraries libraries => Branches.all() %]
210             </select>
211         </li>
212     </ol></fieldset>
213     <fieldset class="action">    <input type="submit" value="Submit" />
214         <input type="hidden" name="run_report" value="1" /></fieldset>
215 </form>
216 [% END %]
217
218 </div>
219 </div>
220 [% IF Koha.Preference('CircSidebar') %]
221 </div>
222 <div class="yui-b noprint">
223     [% INCLUDE 'circ-nav.inc' %]
224 </div>
225 [% END %]
226 </div>
227 [% INCLUDE 'intranet-bottom.inc' %]