2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Circulation › Holds to pull</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <!-- Plugin datatables -->
7 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
8 [% INCLUDE 'datatables.inc' %]
9 <script type="text/JavaScript">
11 $(document).ready(function() {
12 var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
14 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
15 { "sType": "title-string", "aTargets" : [ "title-string" ] },
16 { "sType": "string", "aTargets": [ "string-sort" ] } //Target columns that use <br> separators and pull-down menus.
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 | $KohaDates %]</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>
96 <th class="anti-the">Title</th>
97 <th class="string-sort">Libraries</th>
98 <th>Available call numbers</th>
99 <th>Available copy numbers</th>
100 <th>Available enumeration</th>
101 <th class="string-sort">Available itypes</th>
102 <th class="string-sort">Available locations</th>
103 <th class="title-string">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 %]</a></p>
117 [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %]
125 <td>[% reserveloo.holdingbranch %]</td>
126 <td><p>[% reserveloo.itemcallnumber %]</p></td>
127 <td><p>[% reserveloo.copyno %]</p></td>
128 <td><p>[% reserveloo.enumchron %]</p></td>
129 <td>[% reserveloo.itype %]</td>
130 <td>[% reserveloo.location %]</td>
132 <span title="[% reserveloo.reservedate %]">[% reserveloo.reservedate | $KohaDates %] in [% reserveloo.branch %]</span>
133 [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
140 <td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td>
141 <td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
142 <td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
143 <td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
144 <td id="homebranchfilter"></td>
145 <td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
146 <td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
147 <td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
148 <td id="itypefilter"></td>
149 <td id="locationfilter"></td>
155 <b>No items found.</b>
165 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
166 <fieldset class="brief">
167 <h4>Refine results</h4>
173 <input type="text" size="10" id="from" name="from" value="[% from %]" class="datepickerfrom" />
178 <input type="text" size="10" id="to" name="to" value="[% to %]" class="datepickerto" />
181 <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>
182 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
189 [% INCLUDE 'intranet-bottom.inc' %]