($itemnumber != $itm->{itemnumber}));
}
+my $record=GetMarcBiblio($biblionumber);
+
+my $hostrecords;
+# adding items linked via host biblios
+my @hostitems = GetHostItemsInfo($record);
+if (@hostitems){
+ $hostrecords =1;
+ push (@items,@hostitems);
+}
+
+
+
my $totalcount=@all_items;
my $showncount=@items;
my $hiddencount = $totalcount - $showncount;
$item->{'datelastseen'} = format_date( $item->{'datelastseen'} );
$item->{'copyvol'} = $item->{'copynumber'};
+ # item has a host number if its biblio number does not match the current bib
+ if ($item->{biblionumber} ne $biblionumber){
+ $item->{hostbiblionumber} = $item->{biblionumber};
+ $item->{hosttitle} = GetBiblioData($item->{biblionumber})->{title};
+ }
+
my $order = GetOrderFromItemnumber( $item->{'itemnumber'} );
$item->{'ordernumber'} = $order->{'ordernumber'};
$item->{'basketno'} = $order->{'basketno'};