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