7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
10 [% SET footerjs = 1 %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Holds queue › Circulation › Koha</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 <style> p { margin-top: 0; }</style>
17 <body id="circ_view_holdsqueue" class="circ">
18 [% WRAPPER 'header.inc' %]
19 [% INCLUDE 'circ-search.inc' %]
22 [% WRAPPER 'sub-header.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
29 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
32 [% IF ( run_report ) %]
34 <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
37 <a href="#" aria-current="page">
44 <a href="#" aria-current="page">
53 <div class="main container-fluid">
55 <div class="col-sm-12">
59 [% IF ( total || Koha.Preference('CircSidebar') ) %]
60 <div class="col-sm-10 col-sm-push-2">
62 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
67 [% IF ( run_report ) %]
69 <div class="results">[% total | html %] <span>items found for</span>
70 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]<span>All libraries</span>[% END %]
71 [% IF ( itemtypeslimit ) %] <span>and item type: [% ItemTypes.GetDescription( itemtypeslimit ) | html %]</span>[% END %]
72 [% IF ( ccodeslimit ) %] <span>and collection: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode' authorised_value = ccodeslimit ) | html %]</span>[% END %]
73 [% IF ( locationslimit ) %] <span>and shelving location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location' authorised_value = locationslimit ) | html %]</span>[% END %]
76 <div class="dialog message">No items found.</div>
78 [% IF ( itemsloop ) %]
79 <div class="page-section">
83 <th class="hq-title anti-the">Title</th>
84 <th class="hq-holdingbranch">Current library</th>
85 <th class="hq-collection">Collection</th>
86 <th class="hq-itemtype">Item type</th>
87 <th class="hq-callnumber">Call number</th>
88 <th class="hq-copynumber">Copy number</th>
89 <th class="hq-enumchron">Enumeration</th>
90 <th class="hq-barcode">Barcode</th>
91 <th class="hq-patron">Patron</th>
92 <th class="hq-patroncategory">Patron category</th>
93 <th class="hq-sendto">Send to</th>
94 <th class="hq-date">Date</th>
95 <th class="hq-notes">Notes</th>
99 <span class="filter_column filter_text">
100 <input class="text_filter" type="text" placeholder="Title">
103 <td class="hq-holdingbranch">
104 <span class="filter_column filter_text">
105 <input class="text_filter" type="text" placeholder="Current library">
108 <td class="hq-collection">
109 <span class="filter_column filter_text">
110 <input type="text" placeholder="Collection">
113 <td class="hq-itemtype">
114 <span class="filter_column filter_text">
115 <input type="text" placeholder="Item type">
118 <td class="hq-callnumber">
119 <span class="filter_column filter_text">
120 <input type="text" placeholder="Call number">
123 <td class="hq-copynumber">
124 <span class="filter_column filter_text">
125 <input type="text" placeholder="Copy number">
128 <td class="hq-enumchron">
129 <span class="filter_column filter_text">
130 <input type="text" placeholder="Enumeration">
133 <td class="hq-barcode">
134 <span class="filter_column filter_text">
135 <input type="text" placeholder="Barcode">
138 <td class="hq-patron">
139 <span class="filter_column filter_text">
140 <input type="text" placeholder="Patron">
143 <td class="hq-patroncategory">
144 <span class="filter_column filter_text">
145 <input type="text" placeholder="Patron category">
148 <td class="hq-sendto">
149 <span class="filter_column filter_text">
150 <input type="text" placeholder="Send to">
154 <span class="filter_column filter_text">
155 <input type="text" placeholder="Date">
158 <td class="hq-notes">
159 <span class="filter_column filter_text">
160 <input type="text" placeholder="Notes">
165 <tbody>[% FOREACH itemsloo IN itemsloop %]
167 <td class="hq-title">
169 [% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
172 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
173 <div class="hq-author">[% itemsloo.author | html %]</div>
174 [% IF ( itemsloo.editionstatement ) %]<div class="hq-editionstatement">[% itemsloo.editionstatement | html %]</div>[% END %]
175 <div class="hq-pubdata">
176 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %]
178 [% IF ( itemsloo.publicationyear ) %]
179 , [% itemsloo.publicationyear | html %]
180 [% ELSIF ( itemsloo.copyrightdate ) %]
181 , [% itemsloo.copyrightdate | html %]
184 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
186 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
188 [% IF ( itemsloo.isbn ) %]<span>ISBN: [% itemsloo.isbn | html %]</span>[% END %]
192 <td class="hq-holdingbranch">[% Branches.GetName( itemsloo.holdingbranch ) | html %]</td>
193 <td class="hq-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemsloo.ccode ) | html %]</td>
194 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) | html %]</td>
195 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => itemsloo.location ) | html %]</em> [% END %][% itemsloo.itemcallnumber | html %]</td>
196 <td class="hq-copynumber">[% itemsloo.copynumber | html %]</td>
197 <td class="hq-enumchron">[% itemsloo.enumchron | html %]</td>
198 <td class="hq-barcode">
199 [% IF ( itemsloo.item_level_request ) %]
200 <em>Only item:</em> <strong>[% itemsloo.barcode | html %]</strong>
202 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
205 <td class="hq-patron">
207 [% INCLUDE 'patron-title.inc' invert_name=1 patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
209 [% UNLESS Koha.Preference('HidePatronName') %]
210 <p>[% itemsloo.patron.phone | html %]</p>
213 <td class="hq-patroncategory">[% itemsloo.patron.category.description | html %] ([% itemsloo.patron.categorycode | html %])</td>
214 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
215 <td class="hq-date" data-order="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</td>
216 <td class="hq-notes">[% itemsloo.notes | html %]</td>
221 </div> <!-- /.page-section -->
225 [% UNLESS ( total ) %]
226 [% branchlimit = Branches.GetLoggedInBranchcode %]
227 [% PROCESS filter_form %]
230 </div> <!-- /.col-sm-10.col-sm-push-2 -->
231 [% IF ( total || Koha.Preference('CircSidebar') ) %]
232 <div class="col-sm-2 col-sm-pull-10">
235 [% PROCESS filter_form %]
237 [% IF Koha.Preference('CircSidebar') %]
238 [% INCLUDE 'circ-nav.inc' %]
241 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
243 </div> <!-- /.row -->
246 </div> <!-- /.col-sm-12 -->
247 </div> <!-- /.row -->
249 [% BLOCK filter_form %]
250 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl">
252 <fieldset class="brief">
254 <fieldset class="rows">
258 <label for="branchlimit">Library: </label>
259 <select name="branchlimit" id="branchlimit">
260 <option value="">All</option>
261 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchlimit, only_from_group => 1 ) %]
265 <label for="itemtypeslimit">Item type: </label>
266 <select name="itemtypeslimit" id="itemtypeslimit">
267 <option value="">All</option>
268 [% PROCESS options_for_item_types itemtypes => ItemTypes.Get(), selected_itemtype => itemtypeslimit %]
272 <label for="ccodeslimit">Collection: </label>
273 <select name="ccodeslimit" id="ccodeslimit">
274 <option value="">All</option>
275 [% PROCESS options_for_authorised_values authorised_values => AuthorisedValues.GetAuthValueDropbox( 'CCODE' ), selected_av => ccodeslimit %]
279 <label for="locationsslimit">Shelving location: </label>
280 <select name="locationslimit" id="locationslimit">
281 <option value="">All</option>
282 [% PROCESS options_for_authorised_values authorised_values => AuthorisedValues.GetAuthValueDropbox( 'LOC' ), selected_av => locationslimit %]
286 <fieldset class="action">
287 <input type="submit" value="Submit" />
288 <input type="hidden" name="run_report" value="1" />
294 [% MACRO jsinclude BLOCK %]
295 [% INCLUDE 'datatables.inc' %]
296 [% INCLUDE 'columns_settings.inc' %]
298 $(document).ready(function() {
301 // Setup filters before DataTables initialisation, in case some columns are
303 var filterColumnTimeoutId;
304 var filterColumn = function(e) {
305 clearTimeout(filterColumnTimeoutId);
306 filterColumnTimeoutId = setTimeout(function() {
307 var input = $(e.target);
308 var idx = input.parents('td').index();
309 holdst.api().column(idx + ':visible').search(input.val()).draw();
312 $('#holdst thead input').on('change keyup keydown', filterColumn);
314 var table_settings = [% TablesSettings.GetTableSettings('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
315 var holdst = KohaTable("holdst", {
316 "sDom": 'B<"clearfix">t',
317 "bSortCellsTop": true,
325 [% INCLUDE 'intranet-bottom.inc' %]