7 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
10 [% SET footerjs = 1 %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Koha › Circulation › Holds queue</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 <style> p { margin-top: 0; }</style>
17 <body id="circ_view_holdsqueue" class="circ">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'cat-search.inc' %]
21 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
23 › <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
24 [% IF ( run_report ) %] › Results[% END %]
27 <div class="main container-fluid">
29 <div class="col-sm-12">
33 [% IF Koha.Preference('CircSidebar') %]
34 <div class="col-sm-10 col-sm-push-2">
36 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
41 [% IF ( run_report ) %]
43 <div class="results">[% total | html %] items found for
44 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]All libraries[% END %]
47 <div class="dialog message">No items found.</div>
49 [% IF ( itemsloop ) %]
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>
68 <span class="filter_column filter_text">
69 <input class="text_filter" type="text" placeholder="Title">
72 <td class="hq-collection">
73 <span class="filter_column filter_text">
74 <input type="text" placeholder="Collection">
77 <td class="hq-itemtype">
78 <span class="filter_column filter_text">
79 <input type="text" placeholder="Item type">
82 <td class="hq-callnumber">
83 <span class="filter_column filter_text">
84 <input type="text" placeholder="Call number">
87 <td class="hq-copynumber">
88 <span class="filter_column filter_text">
89 <input type="text" placeholder="Copy number">
92 <td class="hq-enumchron">
93 <span class="filter_column filter_text">
94 <input type="text" placeholder="Enumeration">
97 <td class="hq-barcode">
98 <span class="filter_column filter_text">
99 <input type="text" placeholder="Barcode">
102 <td class="hq-patron">
103 <span class="filter_column filter_text">
104 <input type="text" placeholder="Patron">
107 <td class="hq-sendto">
108 <span class="filter_column filter_text">
109 <input type="text" placeholder="Send to">
113 <span class="filter_column filter_text">
114 <input type="text" placeholder="Date">
117 <td class="hq-notes">
118 <span class="filter_column filter_text">
119 <input type="text" placeholder="Notes">
123 <span class="filter_column filter_text">
124 <input type="text" placeholder="Timestamp">
129 <tbody>[% FOREACH itemsloo IN itemsloop %]
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>
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 %]
139 [% IF ( itemsloo.publicationyear ) %]
140 , [% itemsloo.publicationyear | html %]
141 [% ELSIF ( itemsloo.copyrightdate ) %]
142 , [% itemsloo.copyrightdate | html %]
145 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
147 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
149 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn | html %][% END %]
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>
162 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
165 <td class="hq-patron">
167 [% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
169 [% UNLESS Koha.Preference('HidePatronName') %]
170 <p>[% itemsloo.patron.phone | html %]</p>
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>
183 [% UNLESS ( total ) %]
184 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
185 <fieldset class="rows">
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 ) %]
195 <fieldset class="action"> <input type="submit" value="Submit" />
196 <input type="hidden" name="run_report" value="1" /></fieldset>
200 [% IF Koha.Preference('CircSidebar') %]
201 </div> <!-- /.col-sm-10.col-sm-push-2 -->
202 <div class="col-sm-2 col-sm-pull-10">
204 [% INCLUDE 'circ-nav.inc' %]
206 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
207 </div> <!-- /.row -->
211 </div> <!-- /.col-sm-12 -->
212 </div> <!-- /.row -->
214 [% MACRO jsinclude BLOCK %]
215 [% INCLUDE 'datatables.inc' %]
216 [% INCLUDE 'columns_settings.inc' %]
218 $(document).ready(function() {
221 // Setup filters before DataTables initialisation, in case some columns are
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();
232 $('#holdst thead input').on('change keyup keydown', filterColumn);
234 var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
235 var holdst = KohaTable("holdst", {
236 "aaSorting": [[ 3, "asc" ]],
238 { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
240 "sDom": 'B<"clearfix">t',
241 "bSortCellsTop": true,
243 }, columns_settings);
249 [% INCLUDE 'intranet-bottom.inc' %]