Lines 373-379
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
Link Here
|
373 |
|
373 |
|
374 |
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); |
374 |
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); |
375 |
# change back when ive fixed request.pl |
375 |
# change back when ive fixed request.pl |
376 |
my @all_items = GetItemsInfo( $biblionumber ); |
376 |
my @all_items = GetItemsInfo( $biblionumber, 1 ); |
377 |
|
377 |
|
378 |
# adding items linked via host biblios |
378 |
# adding items linked via host biblios |
379 |
my $marcflavour = C4::Context->preference("marcflavour"); |
379 |
my $marcflavour = C4::Context->preference("marcflavour"); |
Lines 387-393
if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC'){
Link Here
|
387 |
foreach my $hostfield ( $record->field($analyticfield)) { |
387 |
foreach my $hostfield ( $record->field($analyticfield)) { |
388 |
my $hostbiblionumber = $hostfield->subfield("0"); |
388 |
my $hostbiblionumber = $hostfield->subfield("0"); |
389 |
my $linkeditemnumber = $hostfield->subfield("9"); |
389 |
my $linkeditemnumber = $hostfield->subfield("9"); |
390 |
my @hostitemInfos = GetItemsInfo($hostbiblionumber); |
390 |
my @hostitemInfos = GetItemsInfo( $hostbiblionumber, 1); |
391 |
foreach my $hostitemInfo (@hostitemInfos){ |
391 |
foreach my $hostitemInfo (@hostitemInfos){ |
392 |
if ($hostitemInfo->{itemnumber} eq $linkeditemnumber){ |
392 |
if ($hostitemInfo->{itemnumber} eq $linkeditemnumber){ |
393 |
push(@all_items, $hostitemInfo); |
393 |
push(@all_items, $hostitemInfo); |