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 type="text/css"> 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 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc2" class="yui-t7">[% END %]
32 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
37 [% IF ( run_report ) %]
39 <div class="results">[% total | html %] items found for
40 [% IF ( branchlimit ) %][% Branches.GetName( branchlimit ) | html %][% ELSE %]All libraries[% END %]
43 <div class="dialog message">No items found.</div>
45 [% IF ( itemsloop ) %]
49 <th class="hq-title">Title</th>
50 <th class="hq-collection">Collection</th>
51 <th class="hq-itemtype">Item type</th>
52 <th class="hq-callnumber">Call number</th>
53 <th class="hq-copynumber">Copy number</th>
54 <th class="hq-enumchron">Enumeration</th>
55 <th class="hq-barcode">Barcode</th>
56 <th class="hq-patron">Patron</th>
57 <th class="hq-sendto">Send to</th>
58 <th class="hq-date">Date</th>
59 <th class="hq-notes">Notes</th>
63 <span class="filter_column filter_text">
64 <input class="text_filter" type="text" placeholder="Title">
67 <td class="hq-collection">
68 <span class="filter_column filter_text">
69 <input type="text" placeholder="Collection">
72 <td class="hq-itemtype">
73 <span class="filter_column filter_text">
74 <input type="text" placeholder="Item type">
77 <td class="hq-callnumber">
78 <span class="filter_column filter_text">
79 <input type="text" placeholder="Call number">
82 <td class="hq-copynumber">
83 <span class="filter_column filter_text">
84 <input type="text" placeholder="Copy number">
87 <td class="hq-enumchron">
88 <span class="filter_column filter_text">
89 <input type="text" placeholder="Enumeration">
92 <td class="hq-barcode">
93 <span class="filter_column filter_text">
94 <input type="text" placeholder="Barcode">
97 <td class="hq-patron">
98 <span class="filter_column filter_text">
99 <input type="text" placeholder="Patron">
102 <td class="hq-sendto">
103 <span class="filter_column filter_text">
104 <input type="text" placeholder="Send to">
108 <span class="filter_column filter_text">
109 <input type="text" placeholder="Date">
112 <td class="hq-notes">
113 <span class="filter_column filter_text">
114 <input type="text" placeholder="Notes">
119 <tbody>[% FOREACH itemsloo IN itemsloop %]
121 <td class="hq-title">
122 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber | html %]"><strong>[% itemsloo.title | html %]</strong> [% FOREACH s IN itemsloo.subtitle %] [% s | html %][% END %]</a></p>
124 <div class="hq-biblionumber content_hidden">[% itemsloo.biblionumber | html %]</div>
125 <div class="hq-author">[% itemsloo.author | html %]</div>
126 <div class="hq-pubdata">
127 [% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %]
129 [% IF ( itemsloo.publicationyear ) %]
130 , [% itemsloo.publicationyear | html %]
131 [% ELSIF ( itemsloo.copyrightdate ) %]
132 , [% itemsloo.copyrightdate | html %]
135 [% IF ( itemsloo.pages ) %]: [% itemsloo.pages | html %] [% END %]
137 [% IF ( itemsloo.item('size') ) %][% itemsloo.item('size') | html %][% END %]
139 [% IF ( itemsloo.isbn ) %]ISBN: [% itemsloo.isbn | html %][% END %]
143 <td class="hq-collection">[% AuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode ) | html %]</td>
144 <td class="hq-itemtype">[% ItemTypes.GetDescription( itemsloo.itype ) | html %]</td>
145 <td class="hq-callnumber">[% IF ( itemsloo.location ) %]<em>[% AuthorisedValues.GetByCode( 'LOC', itemsloo.location ) | html %]</em> [% END %][% itemsloo.itemcallnumber | html %]</td>
146 <td class="hq-copynumber">[% itemsloo.copynumber | html %]</td>
147 <td class="hq-enumchron">[% itemsloo.enumchron | html %]</td>
148 <td class="hq-barcode">
149 [% IF ( itemsloo.item_level_request ) %]
150 <em>Only item:</em> <strong>[% itemsloo.barcode | html %]</strong>
152 <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
155 <td class="hq-patron">
157 [% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
159 [% UNLESS Koha.Preference('HidePatronName') %]
160 <p>[% itemsloo.patron.phone | html %]</p>
163 <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) | html %]</td>
164 <td class="hq-date"><span title="[% itemsloo.reservedate | html %]">[% itemsloo.reservedate | $KohaDates %]</span></td>
165 <td class="hq-notes">[% itemsloo.notes | html %]</td>
172 [% UNLESS ( total ) %]
173 <form name="f" action="/cgi-bin/koha/circ/view_holdsqueue.pl" method="post">
174 <fieldset class="rows">
177 <label for="branchlimit">Library: </label>
178 <select name="branchlimit" id="branchlimit">
179 <option value="">All</option>
180 [% PROCESS options_for_libraries libraries => Branches.all( only_from_group => 1 ) %]
184 <fieldset class="action"> <input type="submit" value="Submit" />
185 <input type="hidden" name="run_report" value="1" /></fieldset>
191 [% IF Koha.Preference('CircSidebar') %]
193 <div class="yui-b noprint">
194 [% INCLUDE 'circ-nav.inc' %]
199 [% MACRO jsinclude BLOCK %]
200 [% INCLUDE 'datatables.inc' %]
201 [% INCLUDE 'columns_settings.inc' %]
202 <script type="text/javascript">
203 $(document).ready(function() {
206 // Setup filters before DataTables initialisation, in case some columns are
208 var filterColumnTimeoutId;
209 var filterColumn = function(e) {
210 clearTimeout(filterColumnTimeoutId);
211 filterColumnTimeoutId = setTimeout(function() {
212 var input = $(e.target);
213 var idx = input.parents('td').index();
214 holdst.api().column(idx + ':visible').search(input.val()).draw();
217 $('#holdst thead input').on('change keyup keydown', filterColumn);
219 var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
220 var holdst = KohaTable("holdst", {
221 "aaSorting": [[ 3, "asc" ]],
223 { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
225 "sDom": 'B<"clearfix">t',
226 "bSortCellsTop": true,
228 }, columns_settings);
234 [% INCLUDE 'intranet-bottom.inc' %]