From 39f26e9e07f1d82e3ed2cf9f974034d8e242fac7 Mon Sep 17 00:00:00 2001 From: finlayt Date: Tue, 18 Mar 2003 20:25:31 +0000 Subject: [PATCH] fixed a couple of bugs. Note this version of opac-reserve.pl is designed to work with the vanilla template. --- opac/opac-reserve.pl | 4 +++- opac/opac-searchresults.pl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index e73f2f44ea..f6b2d58a94 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -15,6 +15,8 @@ use HTML::Template; my $MAXIMUM_NUMBER_OF_RESERVES = 5; +my $MAXIMUM_NUMBER_OF_RESERVES = 10; + my $query = new CGI; my ($template, $borrowernumber, $cookie) = get_template_and_user({template_name => "opac-reserve.tmpl", @@ -224,7 +226,7 @@ if ($query->param('item_types_selected')) { } # check that you can actually make the reserve. -$template->param(BIBLIOITEMS => \@data); +# $template->param(BIBLIOITEMS => \@data); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-searchresults.pl b/opac/opac-searchresults.pl index b30c718900..6c4d80cd6f 100755 --- a/opac/opac-searchresults.pl +++ b/opac/opac-searchresults.pl @@ -69,7 +69,7 @@ my $startfrom = $query->param('startfrom'); my $subjectitems=$query->param('subjectitems'); if ($subjectitems) { #@results = subsearch($env,$subjectitems, $number_of_results, $startfrom); - @results = subsearch($enc, $subjectitems); + @results = subsearch($env, $subjectitems); $count = $#results+1; } else { ($count, @results) = catalogsearch($env,'',\%search,$number_of_results,$startfrom); -- 2.20.1