7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
10 [% PROCESS 'i18n.inc' %]
11 [% SET footerjs = 1 %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 <title>[% FILTER collapse %]
14 [% t("Holds queue") | html %] ›
15 [% t("Circulation") | html %] ›
16 [% t("Koha") | html %]
18 [% INCLUDE 'doc-head-close.inc' %]
19 <style> p { margin-top: 0; }</style>
22 <body id="circ_view_holdsqueue" class="circ">
23 [% WRAPPER 'header.inc' %]
24 [% INCLUDE 'circ-search.inc' %]
27 [% WRAPPER 'sub-header.inc' %]
28 [% WRAPPER breadcrumbs %]
29 [% WRAPPER breadcrumb_item %]
30 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
32 [% IF ( run_report ) %]
33 [% WRAPPER breadcrumb_item %]
34 <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
36 [% WRAPPER breadcrumb_item bc_active= 1 %]
41 [% WRAPPER breadcrumb_item bc_active= 1 %]
42 <span>Holds queue</span>
45 [% END #/ WRAPPER breadcrumbs %]
46 [% END #/ WRAPPER sub-header.inc %]
48 <div class="main container-fluid">
50 <div class="col-sm-12">
54 [% IF ( total || Koha.Preference('CircSidebar') ) %]
55 <div class="col-sm-10 col-sm-push-2">
57 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
62 [% IF ( run_report ) %]
64 <div class="results">[% total | html %] <span>items found for</span>
65 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]<span>All libraries</span>[% END %]
66 [% IF ( itemtypeslimit ) %] <span>and item type: [% ItemTypes.GetDescription( itemtypeslimit ) | html %]</span>[% END %]
67 [% IF ( ccodeslimit ) %] <span>and collection: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode' authorised_value = ccodeslimit ) | html %]</span>[% END %]
68 [% IF ( locationslimit ) %] <span>and shelving location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location' authorised_value = locationslimit ) | html %]</span>[% END %]
71 <div class="dialog message">No items found.</div>
73 [% IF ( itemsloop ) %]
74 <div class="page-section">
78 <th class="hq-title anti-the">Title</th>
79 <th class="hq-holdingbranch">Current library</th>
80 <th class="hq-collection">Collection</th>
81 <th class="hq-itemtype">Item type</th>
82 <th class="hq-callnumber">Call number</th>
83 <th class="hq-copynumber">Copy number</th>
84 <th class="hq-enumchron">Enumeration</th>
85 <th class="hq-barcode">Barcode</th>
86 <th class="hq-patron">Patron</th>
87 <th class="hq-patroncategory">Patron category</th>
88 <th class="hq-sendto">Send to</th>
89 <th class="hq-date">Date</th>
90 <th class="hq-notes">Notes</th>
94 <span class="filter_column filter_text">
95 <input class="text_filter" type="text" placeholder="Title">
98 <td class="hq-holdingbranch">
99 <span class="filter_column filter_text">
100 <input class="text_filter" type="text" placeholder="Current library">
103 <td class="hq-collection">
104 <span class="filter_column filter_text">
105 <input type="text" placeholder="Collection">
108 <td class="hq-itemtype">
109 <span class="filter_column filter_text">
110 <input type="text" placeholder="Item type">
113 <td class="hq-callnumber">
114 <span class="filter_column filter_text">
115 <input type="text" placeholder="Call number">
118 <td class="hq-copynumber">
119 <span class="filter_column filter_text">
120 <input type="text" placeholder="Copy number">
123 <td class="hq-enumchron">
124 <span class="filter_column filter_text">
125 <input type="text" placeholder="Enumeration">
128 <td class="hq-barcode">
129 <span class="filter_column filter_text">
130 <input type="text" placeholder="Barcode">
133 <td class="hq-patron">
134 <span class="filter_column filter_text">
135 <input type="text" placeholder="Patron">
138 <td class="hq-patroncategory">
139 <span class="filter_column filter_text">
140 <input type="text" placeholder="Patron category">
143 <td class="hq-sendto">
144 <span class="filter_column filter_text">
145 <input type="text" placeholder="Send to">
149 <span class="filter_column filter_text">
150 <input type="text" placeholder="Date">
153 <td class="hq-notes">
154 <span class="filter_column filter_text">
155 <input type="text" placeholder="Notes">
160 <tbody>[% FOREACH itemsloo IN itemsloop %]
162 <td class="hq-title">
164 [% INCLUDE 'biblio-title.inc' biblio=itemsloo.biblio link = 1 %]
166 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
167 <div class="hq-author">[% itemsloo.biblio.author | html %]</div>
168 [% IF ( itemsloo.biblio.biblioitem.editionstatement ) %]<div class="hq-editionstatement">[% itemsloo.biblio.biblioitem.editionstatement | html %]</div>[% END %]
169 <div class="hq-pubdata">
170 [% IF ( itemsloo.biblio.biblioitem.publishercode ) %][% itemsloo.biblio.biblioitem.publishercode | html %][% END %]
172 [% IF ( itemsloo.biblio.biblioitem.publicationyear ) %]
173 , [% itemsloo.biblio.biblioitem.publicationyear | html %]
174 [% ELSIF ( itemsloo.biblio.copyrightdate ) %]
175 , [% itemsloo.biblio.copyrightdate | html %]
178 [% IF ( itemsloo.biblio.biblioitem.pages ) %]: [% itemsloo.biblio.biblioitem.pages | html %] [% END %]
180 [% IF ( itemsloo.biblio.biblioitem.size ) %][% itemsloo.biblio.biblioitem.size | html %][% END %]
182 [% IF ( itemsloo.biblio.biblioitem.isbn ) %]<span>ISBN: [% itemsloo.biblio.biblioitem.isbn | html %]</span>[% END %]
185 <td class="hq-holdingbranch">[% Branches.GetName( itemsloo.holdingbranch ) | html %]</td>
186 <td class="hq-collection">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemsloo.item.ccode ) | html %]</td>
187 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.item.effective_itemtype ) | html %]</td>
188 <td class="hq-callnumber">[% IF ( itemsloo.item.location ) %]<em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => itemsloo.item.location ) | html %]</em> [% END %][% itemsloo.item.itemcallnumber | html %]</td>
189 <td class="hq-copynumber">[% itemsloo.item.copynumber | html %]</td>
190 <td class="hq-enumchron">[% itemsloo.item.enumchron | html %]</td>
191 <td class="hq-barcode">
192 [% IF ( itemsloo.item_level_request ) %]
193 <em>Only item:</em> <strong><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% itemsloo.itemnumber | uri %]&biblionumber=[% itemsloo.biblionumber | uri %]#item[% itemsloo.itemnumber | uri %]">[% itemsloo.barcode | html %]</a></strong>
194 [% ELSIF itemsloo.item.item_group %]
195 <strong><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% itemsloo.itemnumber | uri %]&biblionumber=[% itemsloo.biblionumber | uri %]#item[% itemsloo.itemnumber | uri %]">[% itemsloo.barcode | html %]</a></strong> <em>or any item from item group <strong>[% itemsloo.item.item_group.description | html %]</strong></em>
197 <strong><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% itemsloo.itemnumber | uri %]&biblionumber=[% itemsloo.biblionumber | uri %]#item[% itemsloo.itemnumber | uri %]">[% itemsloo.barcode | uri %]</a></strong> <em>or any available</em>
200 <td class="hq-patron">
202 [% INCLUDE 'patron-title.inc' invert_name=1 patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
204 [% UNLESS Koha.Preference('HidePatronName') %]
205 <p>[% itemsloo.patron.phone | html %]</p>
208 <td class="hq-patroncategory">[% itemsloo.patron.category.description | html %] ([% itemsloo.patron.categorycode | html %])</td>
209 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
210 <td class="hq-date" data-order="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</td>
211 <td class="hq-notes">[% itemsloo.notes | html %]</td>
216 </div> <!-- /.page-section -->
220 [% UNLESS ( total ) %]
221 [% branchlimit = Branches.GetLoggedInBranchcode %]
222 [% PROCESS filter_form %]
225 </div> <!-- /.col-sm-10.col-sm-push-2 -->
226 [% IF ( total || Koha.Preference('CircSidebar') ) %]
227 <div class="col-sm-2 col-sm-pull-10">
230 [% PROCESS filter_form %]
232 [% IF Koha.Preference('CircSidebar') %]
233 [% INCLUDE 'circ-nav.inc' %]
236 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
238 </div> <!-- /.row -->
241 </div> <!-- /.col-sm-12 -->
242 </div> <!-- /.row -->
244 [% BLOCK filter_form %]
245 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl">
247 <fieldset class="brief">
249 <fieldset class="rows">
253 <label for="branchlimit">Library: </label>
254 <select name="branchlimit" id="branchlimit">
255 [% IF CAN_user_superlibrarian || !Koha.Preference('IndependentBranches') %]
256 <option value="">All</option>
258 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchlimit, only_from_group => 1 ) %]
262 <label for="itemtypeslimit">Item type: </label>
263 <select name="itemtypeslimit" id="itemtypeslimit">
264 <option value="">All</option>
265 [% PROCESS options_for_item_types itemtypes => ItemTypes.Get(), selected_itemtype => itemtypeslimit %]
269 <label for="ccodeslimit">Collection: </label>
270 <select name="ccodeslimit" id="ccodeslimit">
271 <option value="">All</option>
272 [% PROCESS options_for_authorised_values authorised_values => AuthorisedValues.GetAuthValueDropbox( 'CCODE' ), selected_av => ccodeslimit %]
276 <label for="locationslimit">Shelving location: </label>
277 <select name="locationslimit" id="locationslimit">
278 <option value="">All</option>
279 [% PROCESS options_for_authorised_values authorised_values => AuthorisedValues.GetAuthValueDropbox( 'LOC' ), selected_av => locationslimit %]
283 <fieldset class="action">
284 <input type="submit" class="btn btn-primary" value="Submit" />
285 <input type="hidden" name="run_report" value="1" />
291 [% MACRO jsinclude BLOCK %]
292 [% INCLUDE 'datatables.inc' %]
293 [% INCLUDE 'columns_settings.inc' %]
295 $(document).ready(function() {
298 // Setup filters before DataTables initialisation, in case some columns are
300 var filterColumnTimeoutId;
301 var filterColumn = function(e) {
302 clearTimeout(filterColumnTimeoutId);
303 filterColumnTimeoutId = setTimeout(function() {
304 var input = $(e.target);
305 var idx = input.parents('td').index();
306 holdst.api().column(idx + ':visible').search(input.val()).draw();
309 $('#holdst thead input').on('change keyup keydown', filterColumn);
311 var table_settings = [% TablesSettings.GetTableSettings('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
312 var holdst = KohaTable("holdst", {
313 "dom": 'B<"clearfix">t',
314 "orderCellsTop": true,
322 [% INCLUDE 'intranet-bottom.inc' %]