1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Holds to pull</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <!-- Plugin datatables -->
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/JavaScript" language="JavaScript">
10 $(document).ready(function() {
11 [% IF (dateformat == 'metric') %]
12 dt_add_type_uk_date();
14 var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
16 { "sType": "string", "aTargets": [ 4, 8, 9 ] } //Target columns that use <br> separators and pull-down menus. FIXME: Use class names instead of indexes.
19 holdst.fnAddFilters("filter");
20 [%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %]
21 function separateData ( ColumnData ){
23 var new_array = new Array();
24 for ( j=0 ; j<cD.length ; j++ ) {
25 var split_array = cD[j].split(/<br>/gi);
26 for ( k=0 ; k<split_array.length ; k++ ){
27 var check_array = $.inArray(split_array[k], new_array);
28 if (check_array == -1) {
29 new_array.push(split_array[k]);
36 [%# add SeparateData function into createSelect function, so that it does the createSelect on clean data %]
37 function createSelect( data ) {
38 data = separateData(data);
39 var r='<select style="width:99%"><option value="">None</option>', i, len=data.length;
40 for ( i=0 ; i<len ; i++ ) {
41 r += '<option value="'+data[i]+'">'+data[i]+'</option>';
45 $("#homebranchfilter").each( function () {
46 $(this).html( createSelect( holdst.fnGetColumnData(4) ) );
47 $('select', this).change( function () {
48 var filter_value = $(this).val();
50 filter_value = "(^|>)"+filter_value+"($|<)";
52 holdst.fnFilter( filter_value, 4, true );
55 $("#itypefilter").each( function () {
56 $(this).html( createSelect( holdst.fnGetColumnData(8) ) );
57 $('select', this).change( function () {
58 holdst.fnFilter( $(this).val(), 8 );
61 $("#locationfilter").each( function () {
62 $(this).html( createSelect( holdst.fnGetColumnData(9) ) );
63 $('select', this).change( function () {
64 holdst.fnFilter( $(this).val(), 9 );
71 <body id="circ_pendingreserves" class="circ">
72 [% INCLUDE 'header.inc' %]
73 [% INCLUDE 'circ-search.inc' %]
76 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Holds to pull</div>
78 <div id="doc3" class="yui-t2">
84 <h2>Holds to pull[% IF ( run_report ) %] placed between [% from %] and [% to %][% END %]</h2>
85 [% IF ( run_report ) %]
86 <h3>Reported on [% todaysdate %]</h3>
87 <p>The following holds have not been filled. Please retrieve them and check them in.</p>
88 <div class="searchresults">
89 [% IF ( reserveloop ) %]
93 <th>Pull this many items</th>
94 <th>Items available</th>
95 <th>Patrons with holds</th>
98 <th>Available call numbers</th>
99 <th>Available copy numbers</th>
100 <th>Available enumeration</th>
101 <th>Available itypes</th>
102 <th>Available locations</th>
103 <th>Earliest hold date</th>
107 [% FOREACH reserveloo IN reserveloop %]
109 [% IF ( reserveloo.borrowernumber ) %]
110 <td><p><b>[% reserveloo.pullcount %]</b></p></td>
111 <td>[% reserveloo.count %]</td>
112 <td>[% reserveloo.rcount %]</td>
115 [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
116 [% reserveloo.title |html %]
117 </a> [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %]
126 <td>[% reserveloo.holdingbranch %]</td>
127 <td><p>[% reserveloo.itemcallnumber %]</p></td>
128 <td><p>[% reserveloo.copyno %]</p></td>
129 <td><p>[% reserveloo.enumchron %]</p></td>
130 <td>[% reserveloo.itype %]</td>
131 <td>[% reserveloo.location %]</td>
133 <p>[% reserveloo.reservedate %]</p>
134 <p>in [% reserveloo.branch %]</p>
135 [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
142 <td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td>
143 <td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
144 <td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
145 <td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
146 <td id="homebranchfilter"></td>
147 <td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
148 <td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
149 <td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
150 <td id="itypefilter"></td>
151 <td id="locationfilter"></td>
157 <b>No items found.</b>
167 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
168 <fieldset class="brief">
169 <h4>Refine results</h4>
175 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
180 <input type="text" size="10" id="to" name="to" value="[% to %]" class="datepickerto" />
183 <p><i>(Inclusive, default is [% HoldsToPullStartDate %] days ago to [% IF ( HoldsToPullEndDate ) %][% HoldsToPullEndDate %] days ahead[% ELSE %]today[% END %], set other date ranges as needed. )</i></p>
184 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
191 [% INCLUDE 'intranet-bottom.inc' %]