Revert "If itemnumber is sent to catalogue/moredetail.pl use it"
Applied wrong version of patch. Oops.
This reverts commit 9eb1465b28.
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
4c54059844
commit
2afc052f64
|
|
@ -50,8 +50,8 @@ 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');
|
||||
# my $bi=$query->param('bi');
|
||||
# $bi = $biblionumber unless $bi;
|
||||
my $data=GetBiblioData($biblionumber);
|
||||
my $dewey = $data->{'dewey'};
|
||||
|
||||
|
|
@ -84,10 +84,6 @@ $data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'};
|
|||
$results[0]=$data;
|
||||
($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items);
|
||||
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}};
|
||||
|
|
|
|||
Loading…
Reference in New Issue