From e0724922154314ad55564679ec8d87076586bd7c Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 5 Sep 2005 16:17:37 +0000 Subject: [PATCH] fix to remove "request" button if there is no item requestable --- C4/Search.pm | 2 +- koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl | 2 +- opac/opac-detail.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 8eb65dc61c..b8c076478b 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1361,7 +1361,7 @@ sub ItemInfo { $sthnflstatus = $dbh->prepare("select lib from authorised_values where category=? and authorised_value=?"); $sthnflstatus->execute($authorised_valuecode,$data->{itemnotforloan}); my ($lib) = $sthnflstatus->fetchrow; - $data->{notforloan} = $lib; + $data->{notforloantext} = $lib; } $results[$i]=$data; $i++; diff --git a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl index 44a192c605..b5388f78f4 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl @@ -143,7 +143,7 @@ On loan - + diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index f1fdc0cf35..48e7ef873d 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -53,7 +53,7 @@ for (my $i = 1; $i < $authorcount; $i++) { my $norequests = 1; foreach my $itm (@items) { - $norequests = 0 unless (($itm->{'wthdrawn'}) || ($itm->{'itemlost'}) ||(!$itm->{'itemnumber'})); + $norequests = 0 unless (($itm->{'wthdrawn'}) || ($itm->{'itemlost'}) || ($itm->{'itemnotforloan'}) ||(!$itm->{'itemnumber'})); $itm->{$itm->{'publictype'}} = 1; } -- 2.39.5