From 757f42d94b1ac1940ac6f2c6026894040eb477cf Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Fri, 20 Jun 2008 14:36:31 -0500 Subject: [PATCH] Replace EXPR. Prevents log error: EXPR:at pos 14: non-initialized variable notforloantext Signed-off-by: Joshua Ferraro --- catalogue/moredetail.pl | 3 +++ .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 4736ded588..76ec022eb6 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -94,6 +94,9 @@ foreach my $item (@items){ $item->{'datelastseen'} = format_date($item->{'datelastseen'}); $item->{'ordernumber'} = $ordernum; $item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'}; + if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) { + $item->{status_advisory} = 1; + } if (C4::Context->preference("IndependantBranches")) { #verifying rights diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl index bb38bcdbd3..97fec1f70a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl @@ -50,7 +50,7 @@
  • Copy / Vol :  
  • Replacement Price:  
  • -

    Statuses ( +

    Statuses ( Lost Damaged -- 2.39.5