Lines 153-163
foreach my $biblioNumber (@biblionumbers) {
Link Here
|
153 |
my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber }); |
153 |
my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber }); |
154 |
|
154 |
|
155 |
# flag indicating existence of at least one item linked via a host record |
155 |
# flag indicating existence of at least one item linked via a host record |
156 |
my $hostitemsflag; |
|
|
157 |
# adding items linked via host biblios |
156 |
# adding items linked via host biblios |
158 |
my @hostitemInfos = GetHostItemsInfo($marcrecord); |
157 |
my @hostitemInfos = GetHostItemsInfo($marcrecord); |
159 |
if (@hostitemInfos){ |
158 |
if (@hostitemInfos){ |
160 |
$hostitemsflag =1; |
|
|
161 |
push (@itemInfos,@hostitemInfos); |
159 |
push (@itemInfos,@hostitemInfos); |
162 |
} |
160 |
} |
163 |
|
161 |
|
Lines 553-559
foreach my $biblioNum (@biblionumbers) {
Link Here
|
553 |
|
551 |
|
554 |
# if the items belongs to a host record, show link to host record |
552 |
# if the items belongs to a host record, show link to host record |
555 |
if ( $itemInfo->{biblionumber} ne $biblioNum ) { |
553 |
if ( $itemInfo->{biblionumber} ne $biblioNum ) { |
556 |
$biblioLoopIter{hostitemsflag} = 1; |
|
|
557 |
$itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber}; |
554 |
$itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber}; |
558 |
$itemLoopIter->{hosttitle} = Koha::Biblios->find( $itemInfo->{biblionumber} )->title; |
555 |
$itemLoopIter->{hosttitle} = Koha::Biblios->find( $itemInfo->{biblionumber} )->title; |
559 |
} |
556 |
} |