Lines 291-298
sub _handle_one_result {
Link Here
|
291 |
my $raw= $zoomrec->raw(); |
291 |
my $raw= $zoomrec->raw(); |
292 |
my $marcrecord; |
292 |
my $marcrecord; |
293 |
if( $servhref->{servertype} eq 'sru' ) { |
293 |
if( $servhref->{servertype} eq 'sru' ) { |
294 |
$marcrecord= MARC::Record->new_from_xml( $raw, 'UTF-8', |
294 |
$marcrecord = MARC::Record->new_from_xml( $raw, 'UTF-8', $servhref->{syntax} ); |
295 |
$servhref->{syntax} ); |
295 |
SetMarcUnicodeFlag( $marcrecord, C4::Context->preference("marcflavour") ); |
296 |
} else { |
296 |
} else { |
297 |
($marcrecord) = MarcToUTF8Record($raw, C4::Context->preference('marcflavour'), $servhref->{encoding} // "iso-5426" ); #ignores charset return values |
297 |
($marcrecord) = MarcToUTF8Record($raw, C4::Context->preference('marcflavour'), $servhref->{encoding} // "iso-5426" ); #ignores charset return values |
298 |
} |
298 |
} |
299 |
- |
|
|