Bug 10283: Hide "many items" on second tab when using OpacSeparateHoldings
[koha.git] / catalogue / moredetail.pl
index f0cfb13..a925285 100755 (executable)
@@ -168,7 +168,7 @@ foreach my $item (@items){
     }
     $item->{'datereceived'}            = $order->{'datereceived'};
 
-    if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) {
+    if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{withdrawn}) {
         $item->{status_advisory} = 1;
     }
 
@@ -214,6 +214,7 @@ $template->param(
     hidepatronname      => $hidepatronname,
 );
 $template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
+$template->{'VARS'}->{'searchid'} = $query->param('searchid');
 
 
 my ( $holdcount, $holds ) = GetReservesFromBiblionumber($biblionumber,1);