7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
30 [% IF ( run_report ) %]
32 <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
35 <a href="#" aria-current="page">
42 <a href="#" aria-current="page">
50 <div class="main container-fluid">
52 <div class="col-sm-12">
56 [% IF Koha.Preference('CircSidebar') %]
57 <div class="col-sm-10 col-sm-push-2">
59 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
64 [% IF ( run_report ) %]
66 <div class="results">[% total | html %] items found for
67 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]All libraries[% END %]
70 <div class="dialog message">No items found.</div>
72 [% IF ( itemsloop ) %]
76 <th class="hq-title anti-the">Title</th>
77 <th class="hq-collection">Collection</th>
78 <th class="hq-itemtype">Item type</th>
79 <th class="hq-callnumber">Call number</th>
80 <th class="hq-copynumber">Copy number</th>
81 <th class="hq-enumchron">Enumeration</th>
82 <th class="hq-barcode">Barcode</th>
83 <th class="hq-patron">Patron</th>
84 <th class="hq-sendto">Send to</th>
85 <th class="hq-date">Date</th>
86 <th class="hq-notes">Notes</th>
90 <span class="filter_column filter_text">
91 <input class="text_filter" type="text" placeholder="Title">
94 <td class="hq-collection">
95 <span class="filter_column filter_text">
96 <input type="text" placeholder="Collection">
99 <td class="hq-itemtype">
100 <span class="filter_column filter_text">
101 <input type="text" placeholder="Item type">
104 <td class="hq-callnumber">
105 <span class="filter_column filter_text">
106 <input type="text" placeholder="Call number">
109 <td class="hq-copynumber">
110 <span class="filter_column filter_text">
111 <input type="text" placeholder="Copy number">
114 <td class="hq-enumchron">
115 <span class="filter_column filter_text">
116 <input type="text" placeholder="Enumeration">
119 <td class="hq-barcode">
120 <span class="filter_column filter_text">
121 <input type="text" placeholder="Barcode">
124 <td class="hq-patron">
125 <span class="filter_column filter_text">
126 <input type="text" placeholder="Patron">
129 <td class="hq-sendto">
130 <span class="filter_column filter_text">
131 <input type="text" placeholder="Send to">
135 <span class="filter_column filter_text">
136 <input type="text" placeholder="Date">
139 <td class="hq-notes">
140 <span class="filter_column filter_text">
141 <input type="text" placeholder="Notes">
146 <tbody>[% FOREACH itemsloo IN itemsloop %]
148 <td class="hq-title">
150 [% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
153 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
154 <div class="hq-author">[% itemsloo.author | html %]</div>
155 [% IF ( itemsloo.editionstatement ) %]<div class="hq-editionstatement">[% itemsloo.editionstatement | html %]</div>[% END %]
156 <div class="hq-pubdata">
157 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %]
159 [% IF ( itemsloo.publicationyear ) %]
160 , [% itemsloo.publicationyear | html %]
161 [% ELSIF ( itemsloo.copyrightdate ) %]
162 , [% itemsloo.copyrightdate | html %]
165 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
167 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
169 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn | html %][% END %]
173 <td class="hq-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemsloo.ccode ) | html %]</td>
174 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) | html %]</td>
175 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => itemsloo.location ) | html %]</em> [% END %][% itemsloo.itemcallnumber | html %]</td>
176 <td class="hq-copynumber">[% itemsloo.copynumber | html %]</td>
177 <td class="hq-enumchron">[% itemsloo.enumchron | html %]</td>
178 <td class="hq-barcode">
179 [% IF ( itemsloo.item_level_request ) %]
180 <em>Only item:</em> <strong>[% itemsloo.barcode | html %]</strong>
182 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
185 <td class="hq-patron">
187 [% INCLUDE 'patron-title.inc' invert_name=1 patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
189 [% UNLESS Koha.Preference('HidePatronName') %]
190 <p>[% itemsloo.patron.phone | html %]</p>
193 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
194 <td class="hq-date" data-order="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</td>
195 <td class="hq-notes">[% itemsloo.notes | html %]</td>
202 [% UNLESS ( total ) %]
203 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
204 <fieldset class="rows">
207 <label for="branchlimit">Library: </label>
208 <select name="branchlimit" id="branchlimit">
209 <option value="">All</option>
210 [% PROCESS options_for_libraries libraries => Branches.all( only_from_group => 1 ) %]
214 <fieldset class="action"> <input type="submit" value="Submit" />
215 <input type="hidden" name="run_report" value="1" /></fieldset>
219 [% IF Koha.Preference('CircSidebar') %]
220 </div> <!-- /.col-sm-10.col-sm-push-2 -->
221 <div class="col-sm-2 col-sm-pull-10">
223 [% INCLUDE 'circ-nav.inc' %]
225 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
226 </div> <!-- /.row -->
230 </div> <!-- /.col-sm-12 -->
231 </div> <!-- /.row -->
233 [% MACRO jsinclude BLOCK %]
234 [% INCLUDE 'datatables.inc' %]
235 [% INCLUDE 'columns_settings.inc' %]
237 $(document).ready(function() {
240 // Setup filters before DataTables initialisation, in case some columns are
242 var filterColumnTimeoutId;
243 var filterColumn = function(e) {
244 clearTimeout(filterColumnTimeoutId);
245 filterColumnTimeoutId = setTimeout(function() {
246 var input = $(e.target);
247 var idx = input.parents('td').index();
248 holdst.api().column(idx + ':visible').search(input.val()).draw();
251 $('#holdst thead input').on('change keyup keydown', filterColumn);
253 var columns_settings = [% TablesSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
254 var holdst = KohaTable("holdst", {
255 "aaSorting": [[ 3, "asc" ]],
256 "sDom": 'B<"clearfix">t',
257 "bSortCellsTop": true,
259 }, columns_settings);
265 [% INCLUDE 'intranet-bottom.inc' %]