fixed a couple of bugs. Note this version of opac-reserve.pl is designed to work with the vanilla template.

This commit is contained in:
finlayt 2003-03-18 20:25:31 +00:00
parent 17fc3564a5
commit 39f26e9e07
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);