Revert "If itemnumber is sent to catalogue/moredetail.pl use it"
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 2 Sep 2008 20:36:02 +0000 (15:36 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 2 Sep 2008 20:36:02 +0000 (15:36 -0500)
Applied wrong version of patch.  Oops.

This reverts commit 9eb1465b2874a8a65195065bed083d26614ca287.

catalogue/moredetail.pl

index 9dea37a..5d09087 100755 (executable)
@@ -51,7 +51,6 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({
 
 my $biblionumber=$query->param('biblionumber');
 my $title=$query->param('title');
-my $itemnumber=$query->param('itemnumber');
 # my $bi=$query->param('bi');
 # $bi = $biblionumber unless $bi;
 my $data=GetBiblioData($biblionumber);
@@ -85,10 +84,6 @@ my $itemtypes = GetItemTypes;
 $data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'};
 $results[0]=$data;
 foreach my $item (@items){
-    if ( $itemnumber && $itemnumber != $item->{'itemnumber'} ) {
-       undef $item;
-       next;
-    }
     $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw);
     $item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw);
     $item->{'collection'} = $ccodes->{$item->{ccode}};