From 374c898122c5acb91c656581b4d1d636c72de9fb Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Mon, 14 Sep 2009 10:50:56 +0200 Subject: [PATCH] Fix broken moredetail.pl --- catalogue/moredetail.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 4e66eec8f8..fbe27004d5 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -51,8 +51,8 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({ my $biblionumber=$query->param('biblionumber'); my $title=$query->param('title'); -# my $bi=$query->param('bi'); -# $bi = $biblionumber unless $bi; +my $bi=$query->param('bi'); +$bi = $biblionumber unless $bi; my $data=GetBiblioData($biblionumber); my $dewey = $data->{'dewey'}; @@ -81,6 +81,7 @@ my $itemtypes = GetItemTypes; $data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'}; $results[0]=$data; +my $itemnumber; ($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items); foreach my $item (@items){ $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw); -- 2.39.5