2 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Circulation › Holds to pull</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% INCLUDE 'calendar.inc' %]
9 <!-- Plugin datatables -->
10 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
11 [% INCLUDE 'datatables.inc' %]
12 <script type="text/JavaScript">
14 $(document).ready(function() {
15 var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
17 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
18 { "sType": "title-string", "aTargets" : [ "title-string" ] },
19 { "sType": "string", "aTargets": [ "string-sort" ] } //Target columns that use <br> separators and pull-down menus.
21 "sPaginationType": "full_numbers"
23 holdst.fnAddFilters("filter");
24 [%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %]
25 function separateData ( ColumnData ){
27 var new_array = new Array();
28 for ( j=0 ; j<cD.length ; j++ ) {
29 var split_array = cD[j].split(/<br>/gi);
30 for ( k=0 ; k<split_array.length ; k++ ){
31 var str = $.trim(split_array[k].replace(/[\n\r]/g, ''));
32 if ($.inArray(str, new_array) == -1 && str.length > 0 ) {
40 [%# add SeparateData function into createSelect function, so that it does the createSelect on clean data %]
41 function createSelect( data ) {
42 data = separateData(data);
43 var r='<select style="width:99%"><option value="">' + _("None") + '</option>', i, len=data.length;
44 for ( i=0 ; i<len ; i++ ) {
45 r += '<option value="'+data[i]+'">'+data[i]+'</option>';
49 $("#homebranchfilter").each( function () {
50 $(this).html( createSelect( holdst.fnGetColumnData(4) ) );
51 $('select', this).change( function () {
52 var filter_value = $(this).val();
53 holdst.fnFilter( filter_value, 4, true );
56 $("#itypefilter").each( function () {
57 $(this).html( createSelect( holdst.fnGetColumnData(8) ) );
58 $('select', this).change( function () {
59 holdst.fnFilter( $(this).val(), 8 );
62 $("#locationfilter").each( function () {
63 $(this).html( createSelect( holdst.fnGetColumnData(9) ) );
64 $('select', this).change( function () {
65 holdst.fnFilter( $(this).val(), 9 );
72 <body id="circ_pendingreserves" class="circ">
73 [% INCLUDE 'header.inc' %]
74 [% INCLUDE 'circ-search.inc' %]
77 <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>
79 <div id="doc3" class="yui-t2">
85 <h2>Holds to pull[% IF ( run_report ) %] placed between [% from | $KohaDates %] and [% to | $KohaDates %][% END %]</h2>
86 [% IF ( run_report ) %]
87 <h3>Reported on [% todaysdate | $KohaDates %]</h3>
88 <p>The following holds have not been filled. Please retrieve them and check them in.</p>
89 <div class="searchresults">
90 [% IF ( reserveloop ) %]
94 <th>Pull this many items</th>
95 <th>Items available</th>
96 <th>Patrons with holds</th>
97 <th class="anti-the">Title</th>
98 <th class="string-sort">Libraries</th>
99 <th>Available call numbers</th>
100 <th>Available copy numbers</th>
101 <th>Available enumeration</th>
102 <th class="string-sort">Available itypes</th>
103 <th class="string-sort">Available locations</th>
104 <th class="title-string">Earliest hold date</th>
108 [% FOREACH reserveloo IN reserveloop %]
110 [% IF ( reserveloo.borrowernumber ) %]
111 <td><p><b>[% reserveloo.pullcount %]</b></p></td>
112 <td>[% reserveloo.count %]</td>
113 <td>[% reserveloo.rcount %]</td>
116 [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
117 [% reserveloo.title |html %]</a></p>
118 [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %]
127 [% FOREACH holdingbranch IN reserveloo.holdingbranches %]
128 [% Branches.GetName ( holdingbranch ) %]<br>
131 <td><p>[% reserveloo.itemcallnumber %]</p></td>
132 <td><p>[% reserveloo.copyno %]</p></td>
133 <td><p>[% reserveloo.enumchron %]</p></td>
135 [% FOREACH itype IN reserveloo.itypes %]
136 [% ItemTypes.GetDescription( itype ) %]
140 [% FOREACH loc IN reserveloo.locations %]
141 [% AuthorisedValues.GetByCode('LOC', loc) %]<br>
145 <span title="[% reserveloo.reservedate %]">[% reserveloo.reservedate | $KohaDates %] in [% Branches.GetName ( reserveloo.branch ) %]</span>
146 [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fulfilled</p>[% END %]
153 <td><input type="text" class="filter" data-column_num="0" placeholder="Pull this many items" style="width:95%"/></td>
154 <td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
155 <td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
156 <td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
157 <td id="homebranchfilter"></td>
158 <td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
159 <td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
160 <td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
161 <td id="itypefilter"></td>
162 <td id="locationfilter"></td>
168 <b>No items found.</b>
178 <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
179 <fieldset class="brief">
180 <h4>Refine results</h4>
186 <input type="text" size="10" id="from" name="from" value="[% from | $KohaDates %]" class="datepickerfrom" />
191 <input type="text" size="10" id="to" name="to" value="[% to | $KohaDates %]" class="datepickerto" />
194 <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>
195 <fieldset class="action"><input type="submit" name="run_report" value="Submit" class="submit"/></fieldset>
202 [% INCLUDE 'intranet-bottom.inc' %]