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>
15 [% Asset.css("css/datatables.css") | $raw %]
18 <body id="circ_view_holdsqueue" class="circ">
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
22 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
23 › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
24 › <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
25 [% IF ( run_report ) %] › Results[% END %]
28 <div class="main container-fluid">
30 <div class="col-sm-12">
34 [% IF Koha.Preference('CircSidebar') %]
35 <div class="col-sm-10 col-sm-push-2">
37 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42 [% IF ( run_report ) %]
44 <div class="results">[% total | html %] items found for
45 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]All libraries[% END %]
48 <div class="dialog message">No items found.</div>
50 [% IF ( itemsloop ) %]
54 <th class="hq-title">Title</th>
55 <th class="hq-collection">Collection</th>
56 <th class="hq-itemtype">Item type</th>
57 <th class="hq-callnumber">Call number</th>
58 <th class="hq-copynumber">Copy number</th>
59 <th class="hq-enumchron">Enumeration</th>
60 <th class="hq-barcode">Barcode</th>
61 <th class="hq-patron">Patron</th>
62 <th class="hq-sendto">Send to</th>
63 <th class="hq-date">Date</th>
64 <th class="hq-notes">Notes</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">
124 <tbody>[% FOREACH itemsloo IN itemsloop %]
126 <td class="hq-title">
127 <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>
129 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
130 <div class="hq-author">[% itemsloo.author | html %]</div>
131 <div class="hq-pubdata">
132 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %]
134 [% IF ( itemsloo.publicationyear ) %]
135 , [% itemsloo.publicationyear | html %]
136 [% ELSIF ( itemsloo.copyrightdate ) %]
137 , [% itemsloo.copyrightdate | html %]
140 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
142 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
144 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn | html %][% END %]
148 <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) | html %]</td>
149 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) | html %]</td>
150 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) | html %]</em> [% END %][% itemsloo.itemcallnumber | html %]</td>
151 <td class="hq-copynumber">[% itemsloo.copynumber | html %]</td>
152 <td class="hq-enumchron">[% itemsloo.enumchron | html %]</td>
153 <td class="hq-barcode">
154 [% IF ( itemsloo.item_level_request ) %]
155 <em>Only item:</em> <strong>[% itemsloo.barcode | html %]</strong>
157 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
160 <td class="hq-patron">
162 [% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
164 [% UNLESS Koha.Preference('HidePatronName') %]
165 <p>[% itemsloo.patron.phone | html %]</p>
168 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
169 <td class="hq-date"><span title="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
170 <td class="hq-notes">[% itemsloo.notes | html %]</td>
177 [% UNLESS ( total ) %]
178 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
179 <fieldset class="rows">
182 <label for="branchlimit">Library: </label>
183 <select name="branchlimit" id="branchlimit">
184 <option value="">All</option>
185 [% PROCESS options_for_libraries libraries => Branches.all( only_from_group => 1 ) %]
189 <fieldset class="action"> <input type="submit" value="Submit" />
190 <input type="hidden" name="run_report" value="1" /></fieldset>
194 [% IF Koha.Preference('CircSidebar') %]
195 </div> <!-- /.col-sm-10.col-sm-push-2 -->
196 <div class="col-sm-2 col-sm-pull-10">
198 [% INCLUDE 'circ-nav.inc' %]
200 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
201 </div> <!-- /.row -->
205 </div> <!-- /.col-sm-12 -->
206 </div> <!-- /.row -->
208 [% MACRO jsinclude BLOCK %]
209 [% INCLUDE 'datatables.inc' %]
210 [% INCLUDE 'columns_settings.inc' %]
212 $(document).ready(function() {
215 // Setup filters before DataTables initialisation, in case some columns are
217 var filterColumnTimeoutId;
218 var filterColumn = function(e) {
219 clearTimeout(filterColumnTimeoutId);
220 filterColumnTimeoutId = setTimeout(function() {
221 var input = $(e.target);
222 var idx = input.parents('td').index();
223 holdst.api().column(idx + ':visible').search(input.val()).draw();
226 $('#holdst thead input').on('change keyup keydown', filterColumn);
228 var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
229 var holdst = KohaTable("holdst", {
230 "aaSorting": [[ 3, "asc" ]],
232 { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
234 "sDom": 'B<"clearfix">t',
235 "bSortCellsTop": true,
237 }, columns_settings);
243 [% INCLUDE 'intranet-bottom.inc' %]