6 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Koha › Circulation › Holds queue</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 <style type="text/css"> p { margin-top: 0; }</style>
14 [% Asset.css("css/datatables.css") %]
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 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc2" class="yui-t7">[% END %]
31 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
36 [% IF ( run_report ) %]
38 <div class="results">[% total %] items found for
39 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) %][% ELSE %]All libraries[% END %]
42 <div class="dialog message">No items found.</div>
44 [% IF ( itemsloop ) %]
48 <th class="hq-title">Title</th>
49 <th class="hq-collection">Collection</th>
50 <th class="hq-itemtype">Item type</th>
51 <th class="hq-callnumber">Call number</th>
52 <th class="hq-copynumber">Copy number</th>
53 <th class="hq-enumchron">Enumeration</th>
54 <th class="hq-barcode">Barcode</th>
55 <th class="hq-patron">Patron</th>
56 <th class="hq-sendto">Send to</th>
57 <th class="hq-date">Date</th>
58 <th class="hq-notes">Notes</th>
62 <span class="filter_column filter_text">
63 <input class="text_filter" type="text" placeholder="Title">
66 <td class="hq-collection">
67 <span class="filter_column filter_text">
68 <input type="text" placeholder="Collection">
71 <td class="hq-itemtype">
72 <span class="filter_column filter_text">
73 <input type="text" placeholder="Item type">
76 <td class="hq-callnumber">
77 <span class="filter_column filter_text">
78 <input type="text" placeholder="Call number">
81 <td class="hq-copynumber">
82 <span class="filter_column filter_text">
83 <input type="text" placeholder="Copy number">
86 <td class="hq-enumchron">
87 <span class="filter_column filter_text">
88 <input type="text" placeholder="Enumeration">
91 <td class="hq-barcode">
92 <span class="filter_column filter_text">
93 <input type="text" placeholder="Barcode">
96 <td class="hq-patron">
97 <span class="filter_column filter_text">
98 <input type="text" placeholder="Patron">
101 <td class="hq-sendto">
102 <span class="filter_column filter_text">
103 <input type="text" placeholder="Send to">
107 <span class="filter_column filter_text">
108 <input type="text" placeholder="Date">
111 <td class="hq-notes">
112 <span class="filter_column filter_text">
113 <input type="text" placeholder="Notes">
118 <tbody>[% FOREACH itemsloo IN itemsloop %]
120 <td class="hq-title">
121 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title | html %]</strong> [% FOREACH s IN itemsloo.subtitle %] [% s %][% END %]</a></p>
123 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber %]</div>
124 <div class="hq-author">[% itemsloo.author %]</div>
125 <div class="hq-pubdata">
126 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %]
128 [% IF ( itemsloo.publicationyear ) %]
129 , [% itemsloo.publicationyear %]
130 [% ELSIF ( itemsloo.copyrightdate ) %]
131 , [% itemsloo.copyrightdate %]
134 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages %] [% END %]
136 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') %][% END %]
138 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn %][% END %]
142 <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) %]</td>
143 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) %]</td>
144 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) %]</em> [% END %][% itemsloo.itemcallnumber %]</td>
145 <td class="hq-copynumber">[% itemsloo.copynumber %]</td>
146 <td class="hq-enumchron">[% itemsloo.enumchron %]</td>
147 <td class="hq-barcode">
148 [% IF ( itemsloo.item_level_request ) %]
149 <em>Only item:</em> <strong>[% itemsloo.barcode %]</strong>
151 <strong>[% itemsloo.barcode %]</strong> <em>or any available</em>
154 <td class="hq-patron">
156 [% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
158 [% UNLESS Koha.Preference('HidePatronName') %]
159 <p>[% itemsloo.patron.phone %]</p>
162 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td>
163 <td class="hq-date"><span title="[% itemsloo.reservedate %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
164 <td class="hq-notes">[% itemsloo.notes %]</td>
171 [% UNLESS ( total ) %]
172 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
173 <fieldset class="rows">
176 <label for="branchlimit">Library: </label>
177 <select name="branchlimit" id="branchlimit">
178 <option value="">All</option>
179 [% PROCESS options_for_libraries libraries => Branches.all( only_from_group => 1 ) %]
183 <fieldset class="action"> <input type="submit" value="Submit" />
184 <input type="hidden" name="run_report" value="1" /></fieldset>
190 [% IF Koha.Preference('CircSidebar') %]
192 <div class="yui-b noprint">
193 [% INCLUDE 'circ-nav.inc' %]
198 [% MACRO jsinclude BLOCK %]
199 [% INCLUDE 'datatables.inc' %]
200 [% INCLUDE 'columns_settings.inc' %]
201 <script type="text/javascript">
202 $(document).ready(function() {
205 // Setup filters before DataTables initialisation, in case some columns are
207 var filterColumnTimeoutId;
208 var filterColumn = function(e) {
209 clearTimeout(filterColumnTimeoutId);
210 filterColumnTimeoutId = setTimeout(function() {
211 var input = $(e.target);
212 var idx = input.parents('td').index();
213 holdst.api().column(idx + ':visible').search(input.val()).draw();
216 $('#holdst thead input').on('change keyup keydown', filterColumn);
218 var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') %];
219 var holdst = KohaTable("holdst", {
220 "aaSorting": [[ 3, "asc" ]],
222 { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
224 "sDom": 'B<"clearfix">t',
225 "bSortCellsTop": true,
227 }, columns_settings);
233 [% INCLUDE 'intranet-bottom.inc' %]