From 9678cfc38dfe9394239a445df2d19e57657e9f79 Mon Sep 17 00:00:00 2001
From: Chris Cormack
+ " /> - + diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 6eb8b9519b..7c1ad03f31 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -151,6 +151,7 @@ my %itemtypes; my @duedates; #die @items; my %itemhash; +my $forloan; foreach my $itm (@items) { push @duedates, { date_due => format_date( $itm->{'date_due'} ) } if defined $itm->{'date_due'}; @@ -175,6 +176,9 @@ foreach my $itm (@items) { } } $itemhash{$itm->{'itemnumber'}}=$itm; + if (!$itm->{'notforloan'} && !$itm->{'itemnotforloan'}){ + $forloan=1; + } } $template->param( ITEMS => \@duedates ); @@ -424,6 +428,7 @@ foreach my $biblioitemnumber (@biblioitemnumbers) { # display infos $template->param( + forloan => $forloan, bibitemloop => \@bibitemloop, ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5