Prevents log error:
        EXPR:at pos 14: non-initialized variable notforloantext
---
 catalogue/moredetail.pl                            |    3 +++
 .../prog/en/modules/catalogue/moredetail.tmpl      |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl
index 4736ded..76ec022 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 bb38bcd..97fec1f 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 @@
             <!-- TMPL_IF NAME="copyvol" --><li><span class="label">Copy / Vol 
:</span> <!-- TMPL_VAR NAME="copyvol" -->&nbsp;</li> <!-- /TMPL_IF -->  
             <!-- TMPL_IF NAME="replacementprice" --><li><span 
class="label">Replacement Price:</span> <!-- TMPL_VAR NAME="replacementprice" 
-->&nbsp;</li> <!-- /TMPL_IF -->
             </ol></div>
-           <div class="listgroup"><h4>Statuses <!-- TMPL_IF 
EXPR="notforloantext || itemlost || damaged || wthdrawn" -->( 
+           <div class="listgroup"><h4>Statuses <!-- TMPL_IF 
NAME="status_advisory" -->( 
                 <!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR 
name="notforloantext" --> <!-- /TMPL_IF -->
                 <!-- TMPL_IF name="itemlost"-->Lost<!-- /TMPL_IF --> 
                 <!-- TMPL_IF NAME="damaged" -->Damaged<!-- /TMPL_IF -->
-- 
1.5.5.GIT

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to