Remove string processing (redundant to new pagination_bar)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joe Atzberger 2008-05-27 18:05:59 -05:00 committed by Joshua Ferraro
parent a99164a3a1
commit 366affe120
1 changed files with 8 additions and 7 deletions

View File

@ -209,13 +209,8 @@ if ($filter = $input->param('approved_by')) { # borrowernumber from link
$debug and print STDERR "filters: " . Dumper(\%filters);
my $tagloop = get_approval_rows(\%filters);
my $qstring = $input->query_string;
$qstring =~ s/([&;])*\blimit=\d+//; # remove pagination vars
# $qstring =~ s/([&;])*\bpage=\d+//; # remove pagination vars
# $qstring =~ s/\&[\&]+/&/g; # compress duplicates
# $qstring =~ s/;;+/;/g; # compress duplicates
# $qstring =~ s/\&;//g; # remove empties
# $qstring =~ s/;+$//; # remove trailing delim
$qstring =~ s/^;+//; # remove leading delim
$qstring =~ s/([&;])*\blimit=\d+//; # remove pagination var
$qstring =~ s/^;+//; # remove leading delims
$qstring = "limit=$pagesize" . ($qstring ? '&amp;' . $qstring : '');
$debug and print STDERR "number of approval_rows: " . scalar(@$tagloop) . "rows\n";
(scalar @errors) and $template->param(message_loop=>\@errors);
@ -236,3 +231,9 @@ $template->param(
output_html_with_http_headers $input, $cookie, $template->output;
__END__
=head1 AUTHOR
Joe Atzberger
atz AT liblime.com
=cut