|
|
@ -1237,8 +1237,7 @@ sub searchResults { |
|
|
|
my $marcflavour = C4::Context->preference("marcflavour"); |
|
|
|
# loop through all of the records we've retrieved |
|
|
|
for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) { |
|
|
|
my $marcrecord = |
|
|
|
MARC::Record::new_from_xml( $marcresults[$i], "utf8", $marcflavour ); |
|
|
|
my $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] ); |
|
|
|
my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, '' ); |
|
|
|
$oldbiblio->{subtitle} = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $marcrecord, ''); |
|
|
|
$oldbiblio->{result_number} = $i + 1; |
|
|
|