From e0a7b19ee5d43270adc00bc4fdb47e8d592522b7 Mon Sep 17 00:00:00 2001 From: finlayt Date: Tue, 15 Oct 2002 23:36:01 +0000 Subject: [PATCH] added request button, and check to see if it is requestable. --- opac/opac-detail.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 658be14566..a73960fede 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -20,6 +20,7 @@ my $template = gettemplate ("opac-detail.tmpl", "opac"); $template->param(loggedinuser => $loggedinuser); my $biblionumber=$query->param('bib'); +$template->param(biblionumber => $biblionumber); # change back when ive fixed request.pl @@ -36,6 +37,15 @@ for (my $i = 1; $i < $authorcount; $i++) { $dat->{'additional'} .= "|" . $addauthor->[$i]->{'author'}; } # for +my $norequests = 1; +foreach my $itm (@items) { + $norequests = 0 unless $itm->{'notforloan'}; +} + +$template->param(norequests => $norequests); + + + my @results; $results[0]=$dat; -- 2.39.5