Lines 315-323
sub _handle_one_result {
Link Here
|
315 |
my $raw= $zoomrec->raw(); |
315 |
my $raw= $zoomrec->raw(); |
316 |
my $marcrecord; |
316 |
my $marcrecord; |
317 |
if( $servhref->{servertype} eq 'sru' ) { |
317 |
if( $servhref->{servertype} eq 'sru' ) { |
318 |
$raw= MARC::Record->new_from_xml( $raw, $servhref->{encoding}, $servhref->{syntax} ); |
318 |
$marcrecord= MARC::Record->new_from_xml( $raw, 'UTF-8', |
|
|
319 |
$servhref->{syntax} ); |
320 |
} else { |
321 |
($marcrecord) = MarcToUTF8Record($raw, C4::Context->preference('marcflavour'), $servhref->{encoding} // "iso-5426" ); #ignores charset return values |
319 |
} |
322 |
} |
320 |
($marcrecord) = MarcToUTF8Record($raw, C4::Context->preference('marcflavour'), $servhref->{encoding} // "iso-5426" ); #ignores charset return values |
|
|
321 |
SetUTF8Flag($marcrecord); |
323 |
SetUTF8Flag($marcrecord); |
322 |
my $error; |
324 |
my $error; |
323 |
( $marcrecord, $error ) = _do_xslt_proc($marcrecord, $servhref, $xslh); |
325 |
( $marcrecord, $error ) = _do_xslt_proc($marcrecord, $servhref, $xslh); |
324 |
- |
|
|