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 holdst.fnAddFilters("filter");
17 [%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %]
18 function separateData ( ColumnData ){
20 var new_array = new Array();
21 for ( j=0 ; j<cD.length ; j++ ) {
22 var split_array = cD[j].split(/<br>/gi);
23 for ( k=0 ; k<split_array.length ; k++ ){
24 var check_array = $.inArray(split_array[k], new_array);
25 if (check_array == -1) {
26 new_array.push(split_array[k]);
33 [%# add SeparateData function into createSelect function, so that it does the createSelect on clean data %]
34 function createSelect( data ) {
35 data = separateData(data);
36 var r='<select style="width:99%"><option value="">None</option>', i, len=data.length;
37 for ( i=0 ; i<len ; i++ ) {
38 r += '<option value="'+data[i]+'">'+data[i]+'</option>';
42 $("#homebranchfilter").each( function () {
43 $(this).html( createSelect( holdst.fnGetColumnData(4) ) );
44 $('select', this).change( function () {
45 var filter_value = $(this).val();
47 filter_value = "(^|>)"+filter_value+"($|<)";
49 holdst.fnFilter( filter_value, 4, true );
52 $("#itypefilter").each( function () {
53 $(this).html( createSelect( holdst.fnGetColumnData(8) ) );
54 $('select', this).change( function () {
55 holdst.fnFilter( $(this).val(), 8 );
58 $("#locationfilter").each( function () {
59 $(this).html( createSelect( holdst.fnGetColumnData(9) ) );
60 $('select', this).change( function () {
61 holdst.fnFilter( $(this).val(), 9 );
68 <body id="circ_pendingreserves" class="circ">
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'circ-search.inc' %]
73 <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>
75 <div id="doc3" class="yui-t2">
81 <h2>Holds to pull[% IF ( run_report ) %] placed between [% from %] and [% to %][% END %]</h2>
82 [% IF ( run_report ) %]
83 <h3>Reported on [% todaysdate %]</h3>
84 <p>The following holds have not been filled. Please retrieve them and check them in.</p>
85 <div class="searchresults">
86 [% IF ( reserveloop ) %]
90 <th>Pull this many items</th>
91 <th>Items available</th>
92 <th>Patrons with holds</th>
95 <th>Available call numbers</th>
96 <th>Available copy numbers</th>
97 <th>Available enumeration</th>
98 <th>Available itypes</th>
99 <th>Available locations</th>
100 <th>Earliest hold date</th>
104 [% FOREACH reserveloo IN reserveloop %]
106 [% IF ( reserveloo.borrowernumber ) %]
107 <td><p><b>[% reserveloo.pullcount %]</b></p></td>
108 <td>[% reserveloo.count %]</td>
109 <td>[% reserveloo.rcount %]</td>
112 [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
113 [% reserveloo.title |html %]
114 </a> [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %]
123 <td>[% reserveloo.holdingbranch %]</td>
124 <td><p>[% reserveloo.itemcallnumber %]</p></td>
125 <td><p>[% reserveloo.copyno %]</p></td>
126 <td><p>[% reserveloo.enumchron %]</p></td>
127 <td>[% reserveloo.itype %]</td>
128 <td>[% reserveloo.location %]</td>
130 <p>[% reserveloo.reservedate %]</p>
131 <p>in [% reserveloo.branch %]</p>
132 [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
139 <td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td>
140 <td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
141 <td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
142 <td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
143 <td id="homebranchfilter"></td>
144 <td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
145 <td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
146 <td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
147 <td id="itypefilter"></td>
148 <td id="locationfilter"></td>
154 <b>No items found.</b>
164 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
165 <fieldset class="brief">
166 <h4>Refine results</h4>
172 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
177 <input type="text" size="10" id="to" name="to" value="[% to %]" class="datepickerto" />
180 <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>
181 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
188 [% INCLUDE 'intranet-bottom.inc' %]