Bug 11096: support the retrieval of large MARCXML records
[koha_fer] / serials / subscription-bib-search.pl
index 8d6310c..089b31b 100755 (executable)
@@ -113,7 +113,7 @@ if ( $op eq "do_search" && $query ) {
 
     for ( my $i = 0 ; $i < $total ; $i++ ) {
         my %resultsloop;
-        my $marcrecord = MARC::File::USMARC::decode( $marcrecords->[$i] );
+        my $marcrecord = C4::Search::new_record_from_zebra( 'biblioserver', $marcrecords->[$i] );
         my $biblio = TransformMarcToKoha( C4::Context->dbh, $marcrecord, '' );
 
         #build the hash for the template.