View | Details | Raw Unified | Return to bug 6086
Collapse All | Expand All

(-)a/circ/pendingreserves.pl (-127 / +33 lines)
Lines 34-44 use C4::Debug; Link Here
34
use Date::Calc qw/Today Add_Delta_YMD/;
34
use Date::Calc qw/Today Add_Delta_YMD/;
35
35
36
my $input = new CGI;
36
my $input = new CGI;
37
my $order = $input->param('order');
38
my $startdate=$input->param('from');
37
my $startdate=$input->param('from');
39
my $enddate=$input->param('to');
38
my $enddate=$input->param('to');
40
my $run_report=$input->param('run_report');
39
my $run_report=$input->param('run_report');
41
my $report_page=$input->param('report_page');
42
40
43
my $theme = $input->param('theme');    # only used if allowthemeoverride is set
41
my $theme = $input->param('theme');    # only used if allowthemeoverride is set
44
42
Lines 69-97 my $author; Link Here
69
my ( $year, $month, $day ) = Today();
67
my ( $year, $month, $day ) = Today();
70
my $todaysdate     = sprintf("%-04.4d-%-02.2d-%02.2d", $year, $month, $day);
68
my $todaysdate     = sprintf("%-04.4d-%-02.2d-%02.2d", $year, $month, $day);
71
my $yesterdaysdate = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day,   0, 0, -1));
69
my $yesterdaysdate = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day,   0, 0, -1));
72
#changed from delivered range of 10 years-yesterday to 2 days ago-today
70
# changed from delivered range of 10 years-yesterday to 2 days ago-today
73
# Find two days ago for the default shelf pull start and end dates
71
# Find two days ago for the default shelf pull start and end dates
74
my $pastdate       = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day, 0, 0, -2));
72
my $pastdate       = sprintf("%-04.4d-%-02.2d-%02.2d", Add_Delta_YMD($year, $month, $day, 0, 0, -2));
75
73
76
#		Predefine the start and end dates if they are not already defined
74
# Predefine the start and end dates if they are not already defined
77
$startdate =~ s/^\s+//;
75
$startdate =~ s/^\s+//;
78
$startdate =~ s/\s+$//;
76
$startdate =~ s/\s+$//;
79
$enddate =~ s/^\s+//;
77
$enddate =~ s/^\s+//;
80
$enddate =~ s/\s+$//;
78
$enddate =~ s/\s+$//;
81
#		Check if null, should string match, if so set start and end date to yesterday
79
# Check if null, should string match, if so set start and end date to yesterday
82
if (!defined($startdate) or $startdate eq "") {
80
if (!defined($startdate) or $startdate eq "") {
83
	$startdate = format_date($pastdate);
81
    $startdate = format_date($pastdate);
84
}
82
}
85
if (!defined($enddate) or $enddate eq "") {
83
if (!defined($enddate) or $enddate eq "") {
86
	$enddate = format_date($todaysdate);
84
    $enddate = format_date($todaysdate);
87
}
85
}
88
86
89
87
90
my @reservedata;
88
my @reservedata;
91
my ($prev_results, $next_results, $next_or_previous) = (0,0,0);
92
if ( $run_report ) {
89
if ( $run_report ) {
93
    my $dbh    = C4::Context->dbh;
90
    my $dbh    = C4::Context->dbh;
94
    my ($sqlorderby, $sqldatewhere, $sqllimitoffset) = ("","","");
91
    my $sqldatewhere = "";
95
    $debug and warn format_date_in_iso($startdate) . "\n" . format_date_in_iso($enddate);
92
    $debug and warn format_date_in_iso($startdate) . "\n" . format_date_in_iso($enddate);
96
    my @query_params = ();
93
    my @query_params = ();
97
    if ($startdate) {
94
    if ($startdate) {
Lines 103-129 if ( $run_report ) { Link Here
103
        push @query_params, format_date_in_iso($enddate);
100
        push @query_params, format_date_in_iso($enddate);
104
    }
101
    }
105
102
106
    $sqllimitoffset = " LIMIT 251";
107
    if ($report_page) {
108
        $sqllimitoffset  .= " OFFSET=?";
109
        push @query_params, ($report_page * 250);
110
    }
111
112
    if ($order eq "biblio") {
113
        $sqlorderby = " ORDER BY biblio.title ";
114
    } elsif ($order eq "itype") {
115
        $sqlorderby = " ORDER BY l_itype, location, l_itemcallnumber ";
116
    } elsif ($order eq "location") {
117
        $sqlorderby = " ORDER BY location, l_itemcallnumber, holdingbranch ";
118
    } elsif ($order eq "date") {
119
        $sqlorderby = " ORDER BY l_reservedate, location, l_itemcallnumber ";
120
    } elsif ($order eq "library") {
121
        $sqlorderby = " ORDER BY holdingbranch, l_itemcallnumber, location ";
122
    } elsif ($order eq "call") {
123
        $sqlorderby = " ORDER BY l_itemcallnumber, holdingbranch, location ";    
124
    } else {
125
        $sqlorderby = " ORDER BY biblio.title ";
126
    }
127
    my $strsth =
103
    my $strsth =
128
    "SELECT min(reservedate) as l_reservedate,
104
    "SELECT min(reservedate) as l_reservedate,
129
            reserves.borrowernumber as borrowernumber,
105
            reserves.borrowernumber as borrowernumber,
Lines 176-285 if ( $run_report ) { Link Here
176
        $strsth .= " AND items.holdingbranch=? ";
152
        $strsth .= " AND items.holdingbranch=? ";
177
        push @query_params, C4::Context->userenv->{'branch'};
153
        push @query_params, C4::Context->userenv->{'branch'};
178
    }
154
    }
179
    $strsth .= " GROUP BY reserves.biblionumber " . $sqlorderby;
155
    $strsth .= " GROUP BY reserves.biblionumber ORDER BY biblio.title ";
180
156
181
    my $sth = $dbh->prepare($strsth);
157
    my $sth = $dbh->prepare($strsth);
182
    $sth->execute(@query_params);
158
    $sth->execute(@query_params);
183
159
184
    my $previous;
185
    my $this;
186
    while ( my $data = $sth->fetchrow_hashref ) {
160
    while ( my $data = $sth->fetchrow_hashref ) {
187
        $this=$data->{biblionumber}.":".$data->{borrowernumber};
188
        my @itemlist;
189
        push(
161
        push(
190
            @reservedata,
162
            @reservedata,
191
            {
163
            {
192
                reservedate      => format_date( $data->{l_reservedate} ),
164
                reservedate      	=> format_date( $data->{l_reservedate} ),
193
                priority         => $data->{priority},
165
                priority         	=> $data->{priority},
194
                name             => $data->{l_patron},
166
                name             	=> $data->{l_patron},
195
                title            => $data->{title},
167
                title            	=> $data->{title},
196
                author           => $data->{author},
168
                author           	=> $data->{author},
197
                borrowernumber   => $data->{borrowernumber},
169
                borrowernumber   	=> $data->{borrowernumber},
198
                itemnum          => $data->{itemnumber},
170
                itemnum          	=> $data->{itemnumber},
199
                phone            => $data->{phone},
171
                phone            	=> $data->{phone},
200
                email            => $data->{email},
172
                email            	=> $data->{email},
201
                biblionumber     => $data->{biblionumber},
173
                biblionumber     	=> $data->{biblionumber},
202
                statusw          => ( $data->{found} eq "W" ),
174
                statusw          	=> ( $data->{found} eq "W" ),
203
                statusf          => ( $data->{found} eq "F" ),
175
                statusf          	=> ( $data->{found} eq "F" ),
204
                holdingbranch    => $data->{l_holdingbranch},
176
                holdingbranch    	=> $data->{l_holdingbranch},
205
                branch           => $data->{l_branch},
177
                branch           	=> $data->{l_branch},
206
                itemcallnumber   => $data->{l_itemcallnumber},
178
                itemcallnumber   	=> $data->{l_itemcallnumber},
207
                enumchron        => $data->{l_enumchron},
179
                enumchron        	=> $data->{l_enumchron},
208
		copyno           => $data->{l_copynumber},
180
		copyno           	=> $data->{l_copynumber},
209
                notes            => $data->{notes},
181
                notes            	=> $data->{notes},
210
                notificationdate => $data->{notificationdate},
182
                notificationdate 	=> $data->{notificationdate},
211
                reminderdate     => $data->{reminderdate},
183
                reminderdate     	=> $data->{reminderdate},
212
                count				  => $data->{icount},
184
                count			=> $data->{icount},
213
                rcount			  => $data->{rcount},
185
                rcount			=> $data->{rcount},
214
                pullcount		  => $data->{icount} <= $data->{rcount} ? $data->{icount} : $data->{rcount},
186
                pullcount		=> $data->{icount} <= $data->{rcount} ? $data->{icount} : $data->{rcount},
215
                itype				  => $data->{l_itype},
187
                itype			=> $data->{l_itype},
216
                location			  => $data->{l_location}
188
                location		=> $data->{l_location}
217
            }
189
            }
218
        );
190
        );
219
        $previous=$this;
220
    }
191
    }
221
222
    $sth->finish;
192
    $sth->finish;
223
224
    # Next Page?
225
    if ($report_page > 0) {
226
        $prev_results = $report_page  - 1;
227
    }
228
    if ( scalar(@reservedata) > 250 ) {
229
        $next_results = $report_page + 1;
230
        pop(@reservedata); # .. we retrieved 251 results
231
    }
232
    if ($prev_results || $next_results) {
233
        $next_or_previous = 1;
234
    }
235
236
    # *** I doubt any of this is needed now with the above fixes *** -d.u.
237
238
    #$strsth=~ s/AND reserves.itemnumber is NULL/AND reserves.itemnumber is NOT NULL/;
239
    #$strsth=~ s/LEFT JOIN items ON items.biblionumber=reserves.biblionumber/LEFT JOIN items ON items.biblionumber=reserves.itemnumber/;
240
    #$sth = $dbh->prepare($strsth);
241
    #if (C4::Context->preference('IndependantBranches')){
242
    #       $sth->execute(C4::Context->userenv->{'branch'});
243
    #}
244
    #else {
245
    #       $sth->execute();
246
    #}
247
    #while ( my $data = $sth->fetchrow_hashref ) {
248
    #    $this=$data->{biblionumber}.":".$data->{borrowernumber};
249
    #    my @itemlist;
250
    #    push(
251
    #        @reservedata,
252
    #        {
253
    #            reservedate      => format_date( $data->{l_reservedate} ),
254
    #            priority         => $data->{priority},
255
    #            name             => $data->{l_patron},
256
    #            title            => $data->{title},
257
    #            author           => $data->{author},
258
    #            borrowernumber   => $data->{borrowernumber},
259
    #            itemnum          => $data->{itemnumber},
260
    #            phone            => $data->{phone},
261
    #            email            => $data->{email},
262
    #            biblionumber     => $data->{biblionumber},
263
    #            statusw          => ( $data->{found} eq "W" ),
264
    #            statusf          => ( $data->{found} eq "F" ),
265
    #            holdingbranch    => $data->{l_holdingbranch},
266
    #            branch           => $data->{l_branch},
267
    #            itemcallnumber   => $data->{l_itemcallnumber},
268
    #            notes            => $data->{notes},
269
    #            notificationdate => $data->{notificationdate},
270
    #            reminderdate     => $data->{reminderdate},
271
    #            count				  => $data->{icount},
272
    #            rcount			  => $data->{rcount},
273
    #            pullcount		  => $data->{icount} <= $data->{rcount} ? $data->{icount} : $data->{rcount},
274
    #            itype				  => $data->{l_itype},
275
    #            location			  => $data->{l_location},
276
    #            thisitemonly     => 1,
277
    # 
278
    #        }
279
    #    );
280
    #    $previous=$this;
281
    #}
282
    #$sth->finish;
283
}
193
}
284
194
285
$template->param(
195
$template->param(
Lines 287-300 $template->param( Link Here
287
    from                => $startdate,
197
    from                => $startdate,
288
    to              	=> $enddate,
198
    to              	=> $enddate,
289
    run_report          => $run_report,
199
    run_report          => $run_report,
290
    report_page         => $report_page,
291
    prev_results        => $prev_results,
292
    next_results        => $next_results,
293
    next_or_previous    => $next_or_previous,
294
    reserveloop     	=> \@reservedata,
200
    reserveloop     	=> \@reservedata,
295
    "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1,
201
    "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1,
296
    DHTMLcalendar_dateformat =>  C4::Dates->DHTMLcalendar(),
202
    DHTMLcalendar_dateformat =>  C4::Dates->DHTMLcalendar(),
297
	dateformat    => C4::Context->preference("dateformat"),
203
    dateformat    => C4::Context->preference("dateformat"),
298
);
204
);
299
205
300
output_html_with_http_headers $input, $cookie, $template->output;
206
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-142 / +97 lines)
Lines 7-31 Link Here
7
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar.js"></script>
7
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar.js"></script>
8
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-en.js"></script>
8
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-en.js"></script>
9
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-setup.js"></script>
9
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-setup.js"></script>
10
<!-- End of additions -->
10
<!-- Plugin datatables -->
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
11
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
13
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
12
<script type="text/JavaScript" language="JavaScript">
14
<script type="text/JavaScript" language="JavaScript">
13
//<![CDATA[
15
//<![CDATA[
14
$.tablesorter.addParser({
16
$(document).ready(function() {
15
    id: 'articles', 
17
  var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
16
    is: function(s) {return false;  }, 
18
  }));
17
    format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
19
  holdst.fnAddFilters("filter");
18
    type: 'text' 
20
  function createSelect( data ) {
21
      var r='<select style="width:99%"><option value="">None</option>', i, len=data.length;
22
      for ( i=0 ; i<len ; i++ ) {
23
	  r += '<option value="'+data[i]+'">'+data[i]+'</option>';
24
      }
25
      return r+'</select>';
26
  }
27
  $("#homebranchfilter").each( function () {
28
      $(this).html( createSelect( holdst.fnGetColumnData(4) ) );
29
      $('select', this).change( function () {
30
	  holdst.fnFilter( $(this).val(), 4 );
31
      } );
32
  } );
33
  $("#itypefilter").each( function () {
34
      $(this).html( createSelect( holdst.fnGetColumnData(8) ) );
35
      $('select', this).change( function () {
36
	  holdst.fnFilter( $(this).val(), 8 );
37
      } );
38
  } );
39
  $("#locationfilter").each( function () {
40
      $(this).html( createSelect( holdst.fnGetColumnData(9) ) );
41
      $('select', this).change( function () {
42
	  holdst.fnFilter( $(this).val(), 9 );
43
      } );
44
  } );
19
});
45
});
20
	 $(document).ready(function() {
21
	 	$("th a").hide();
22
		$.tablesorter.defaults.widgets = ['zebra'];
23
		$("#holdst").tablesorter({[% IF ( dateformat == 'metric' ) %]
24
		dateFormat: 'uk',[% END %]
25
			sortList: [[3,0]],
26
			headers: { 0:{sorter:false},1:{sorter:false},3: { sorter: 'articles' },7:{sorter:false}}
27
		}); 
28
 	 });
29
//]]>
46
//]]>
30
</script>
47
</script>
31
</head>
48
</head>
Lines 49-179 $.tablesorter.addParser({ Link Here
49
<div class="searchresults">
66
<div class="searchresults">
50
    [% IF ( reserveloop ) %]
67
    [% IF ( reserveloop ) %]
51
    <table id="holdst">
68
    <table id="holdst">
52
    <thead>
69
	<thead>
53
    <tr>
70
	    <tr>
54
        <th>
71
		<th>Pull This Many Items</th>        
55
				Pull This Many Items
72
		<th>Items Available</th>
56
        </th>        
73
		<th>Patrons with Holds</th>
57
        <th>
74
		<th>Title</th>
58
				Items Available
75
		<th>Libraries</th>
59
        </th>
76
		<th>Available Call Numbers</th>
60
        <th>
77
		<th>Available Copy No</th>
61
				Patrons with Holds
78
		<th>Available Enumeration</th>
62
        </th>
79
		<th>Available Itypes</th>
63
        <th>Title
80
		<th>Available Locations</th>
64
        <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=biblio&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
81
		<th>Earliest Hold Date</th>
65
        </th>
82
	    </tr>
66
        <th>
83
	</thead>
67
            Libraries
84
	<tbody>
68
				<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=library&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
85
	    [% FOREACH reserveloo IN reserveloop %]
69
        </th>
86
	    <tr>
70
        <th>
87
		[% IF ( reserveloo.borrowernumber ) %]
71
            Available Call Numbers
88
		    <td><p><b>[% reserveloo.pullcount %]</b></p></td>
72
				<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=call&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
89
		    <td>[% reserveloo.count %]</td>  
73
        </th>
90
		    <td>[% reserveloo.rcount %]</td> 
74
        <th>
91
		    <td>
75
            Available Copy No
92
			<p>
76
        </th>
93
		[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
77
        <th>
94
				    [% reserveloo.title |html %] [% reserveloo.subtitle %]
78
            Available Enumeration
95
				</a>
79
        </th>
96
			</p>
80
        <th>
97
		    </td>
81
            Available Itypes
98
		[% ELSE %]
82
				<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=itype&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
99
		    <td>"</td>
83
        </th>
100
		    <td>"</td>
84
        <th>
101
		    <td>"</td>
85
            Available Locations
102
		    <td>"</td>
86
				<a href="/cgi-bin/koha/circ/pendingreserves.pl?order=location&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
103
		[% END %]
87
        </th>
104
		<td>[% reserveloo.holdingbranch %]</td>
88
        <th >Earliest Hold Date
105
		<td><p>[% reserveloo.itemcallnumber %]</p></td>
89
            <a href="/cgi-bin/koha/circ/pendingreserves.pl?order=date&amp;from=[% from %]&amp;to=[% to %]">Sort</a>
106
		<td><p>[% reserveloo.copyno %]</p></td>
90
        </th>
107
		<td><p>[% reserveloo.enumchron %]</p></td>
91
    </tr>
108
		<td>[% reserveloo.itype %]</td> 
92
    </thead>
109
		<td>[% reserveloo.location %]</td>
93
    <tbody>
110
		<td width="15%">
94
        [% IF ( next_or_previous ) %]
111
		    <p>[% reserveloo.reservedate %]</p>
95
        <tr>
112
		    <p>in [% reserveloo.branch %]</p>
96
            <td colspan="3" align="left">
113
		    [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
97
            [% IF ( prev_results ) %]
114
		</td>
98
                <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
115
	    </tr>
99
                    <input type="hidden" name="from" value="[% from %]">
116
	    [% END %]
100
                    <input type="hidden" name="to" value="[% to %]">
117
	</tbody>
101
                    <input type="hidden" name="report_page" value="[% prev_results %]">
118
	<tfoot>
102
                    <input type="submit" name="run_report" value="&lt; Prev">
119
	    <tr>
103
                </form>
120
		<td><input type="text" class="filter" data-column_num="0" placeholder="Pull This many items" style="width:95%"/></td>
104
            [% END %]
121
		<td><input type="text" class="filter" data-column_num="1" placeholder="Items available" style="width:95%"/></td>
105
            </td>
122
		<td><input type="text" class="filter" data-column_num="2" placeholder="Patron holds" style="width:95%"/></td>
106
            <td colspan="3"></td>
123
		<td><input type="text" class="filter" data-column_num="3" placeholder="Title" style="width:95%"/></td>
107
            <td colspan="3" align="right">
124
		<td id="homebranchfilter"></td>
108
            [% IF ( next_results ) %]
125
		<td><input type="text" class="filter" data-column_num="5" placeholder="Call number" style="width:95%"/></td>
109
                <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
126
		<td><input type="text" class="filter" data-column_num="6" placeholder="Available copy" style="width:95%"/></td>
110
                    <input type="hidden" name="from" value="[% from %]">
127
		<td><input type="text" class="filter" data-column_num="7" placeholder="Available enumeration" style="width:95%"/></td>
111
                    <input type="hidden" name="to" value="[% to %]">
128
		<td id="itypefilter"></td>
112
                    <input type="hidden" name="report_page" value="[% next_results %]">
129
		<td id="locationfilter"></td>
113
                    <input type="submit" name="run_report" value="Next &gt;">
130
		<td></td>
114
                </form>
131
	    </tr>
115
            [% END %]
132
	</tfoot>
116
            </td>
117
        </tr>
118
        [% END %]
119
        [% FOREACH reserveloo IN reserveloop %]
120
        <tr>
121
            [% IF ( reserveloo.borrowernumber ) %]
122
                <td><p><b>[% reserveloo.pullcount %]</b></p></td>
123
                <td>[% reserveloo.count %]</td>  
124
                <td>[% reserveloo.rcount %]</td> 
125
                <td>
126
                    <p>
127
            [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
128
                                [% reserveloo.title |html %] [% reserveloo.subtitle %]
129
                            </a>
130
                    </p>
131
                </td>
132
            [% ELSE %]
133
                <td colspan="3">
134
                    &nbsp;
135
                </td>
136
                <td>"</td>
137
            [% END %]
138
            <td><p>[% reserveloo.holdingbranch %]</p></td>
139
            <td><p>[% reserveloo.itemcallnumber %]</p></td>
140
            <td><p>[% reserveloo.copyno %]</p></td>
141
            <td><p>[% reserveloo.enumchron %]</p></td>
142
            <td><p>[% reserveloo.itype %]</p></td> 
143
            <td><p>[% reserveloo.location %]</p></td>
144
            <td width="15%">
145
                <p>[% reserveloo.reservedate %]</p>
146
                <p>in [% reserveloo.branch %]</p>
147
                [% IF ( reserveloo.statusw ) %]<p>Waiting</p>[% END %][% IF ( reserveloo.statusf ) %]<p>Fullfilled</p>[% END %]
148
            </td>
149
        </tr>
150
        [% END %]
151
        [% IF ( next_or_previous ) %]
152
        <tr>
153
            <td colspan="3" align="left">
154
            [% IF ( prev_results ) %]
155
                <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
156
                    <input type="hidden" name="from" value="[% from %]">
157
                    <input type="hidden" name="to" value="[% to %]">
158
                    <input type="hidden" name="report_page" value="[% prev_results %]">
159
                    <input type="submit" name="run_report" value="&lt; Prev">
160
                </form>
161
            [% END %]
162
            </td>
163
            <td colspan="3"></td>
164
            <td colspan="3" align="right">
165
            [% IF ( next_results ) %]
166
                <form action="/cgi-bin/koha/circ/pendingreserves.pl" method="POST">
167
                    <input type="hidden" name="from" value="[% from %]">
168
                    <input type="hidden" name="to" value="[% to %]">
169
                    <input type="hidden" name="report_page" value="[% next_results %]">
170
                    <input type="submit" name="run_report" value="Next &gt;">
171
                </form>
172
            [% END %]
173
            </td>
174
        </tr>
175
        [% END %]
176
    </tbody>
177
    </table>
133
    </table>
178
    [% ELSE %]
134
    [% ELSE %]
179
        <b>No items found.</b>
135
        <b>No items found.</b>
180
- 

Return to bug 6086