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 <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 anti-the">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 title-string">Date</th>
63 <th class="hq-notes">Notes</th>
67 <span class="filter_column filter_text">
68 <input class="text_filter" type="text" placeholder="Title">
71 <td class="hq-collection">
72 <span class="filter_column filter_text">
73 <input type="text" placeholder="Collection">
76 <td class="hq-itemtype">
77 <span class="filter_column filter_text">
78 <input type="text" placeholder="Item type">
81 <td class="hq-callnumber">
82 <span class="filter_column filter_text">
83 <input type="text" placeholder="Call number">
86 <td class="hq-copynumber">
87 <span class="filter_column filter_text">
88 <input type="text" placeholder="Copy number">
91 <td class="hq-enumchron">
92 <span class="filter_column filter_text">
93 <input type="text" placeholder="Enumeration">
96 <td class="hq-barcode">
97 <span class="filter_column filter_text">
98 <input type="text" placeholder="Barcode">
101 <td class="hq-patron">
102 <span class="filter_column filter_text">
103 <input type="text" placeholder="Patron">
106 <td class="hq-sendto">
107 <span class="filter_column filter_text">
108 <input type="text" placeholder="Send to">
112 <span class="filter_column filter_text">
113 <input type="text" placeholder="Date">
116 <td class="hq-notes">
117 <span class="filter_column filter_text">
118 <input type="text" placeholder="Notes">
123 <tbody>[% FOREACH itemsloo IN itemsloop %]
125 <td class="hq-title">
127 [% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
130 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
131 <div class="hq-author">[% itemsloo.author | html %]</div>
132 [% IF ( itemsloo.editionstatement ) %]<div class="hq-editionstatement">[% itemsloo.editionstatement | html %]</div>[% END %]
133 <div class="hq-pubdata">
134 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %]
136 [% IF ( itemsloo.publicationyear ) %]
137 , [% itemsloo.publicationyear | html %]
138 [% ELSIF ( itemsloo.copyrightdate ) %]
139 , [% itemsloo.copyrightdate | html %]
142 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
144 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
146 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn | html %][% END %]
150 <td class="hq-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemsloo.ccode ) | html %]</td>
151 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) | html %]</td>
152 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => itemsloo.location ) | html %]</em> [% END %][% itemsloo.itemcallnumber | html %]</td>
153 <td class="hq-copynumber">[% itemsloo.copynumber | html %]</td>
154 <td class="hq-enumchron">[% itemsloo.enumchron | html %]</td>
155 <td class="hq-barcode">
156 [% IF ( itemsloo.item_level_request ) %]
157 <em>Only item:</em> <strong>[% itemsloo.barcode | html %]</strong>
159 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
162 <td class="hq-patron">
164 [% INCLUDE 'patron-title.inc' invert_name=1 patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
166 [% UNLESS Koha.Preference('HidePatronName') %]
167 <p>[% itemsloo.patron.phone | html %]</p>
170 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
171 <td class="hq-date"><span title="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
172 <td class="hq-notes">[% itemsloo.notes | html %]</td>
179 [% UNLESS ( total ) %]
180 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
181 <fieldset class="rows">
184 <label for="branchlimit">Library: </label>
185 <select name="branchlimit" id="branchlimit">
186 <option value="">All</option>
187 [% PROCESS options_for_libraries libraries => Branches.all( only_from_group => 1 ) %]
191 <fieldset class="action"> <input type="submit" value="Submit" />
192 <input type="hidden" name="run_report" value="1" /></fieldset>
196 [% IF Koha.Preference('CircSidebar') %]
197 </div> <!-- /.col-sm-10.col-sm-push-2 -->
198 <div class="col-sm-2 col-sm-pull-10">
200 [% INCLUDE 'circ-nav.inc' %]
202 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
203 </div> <!-- /.row -->
207 </div> <!-- /.col-sm-12 -->
208 </div> <!-- /.row -->
210 [% MACRO jsinclude BLOCK %]
211 [% INCLUDE 'datatables.inc' %]
212 [% INCLUDE 'columns_settings.inc' %]
214 $(document).ready(function() {
217 // Setup filters before DataTables initialisation, in case some columns are
219 var filterColumnTimeoutId;
220 var filterColumn = function(e) {
221 clearTimeout(filterColumnTimeoutId);
222 filterColumnTimeoutId = setTimeout(function() {
223 var input = $(e.target);
224 var idx = input.parents('td').index();
225 holdst.api().column(idx + ':visible').search(input.val()).draw();
228 $('#holdst thead input').on('change keyup keydown', filterColumn);
230 var columns_settings = [% TablesSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
231 var holdst = KohaTable("holdst", {
232 "aaSorting": [[ 3, "asc" ]],
233 "sDom": 'B<"clearfix">t',
234 "bSortCellsTop": true,
236 }, columns_settings);
242 [% INCLUDE 'intranet-bottom.inc' %]