|
Lines 90-104
if ($bib_list && $format) {
Link Here
|
| 90 |
next unless $record; |
90 |
next unless $record; |
| 91 |
|
91 |
|
| 92 |
if ($format eq 'iso2709') { |
92 |
if ($format eq 'iso2709') { |
| 93 |
my $usmarc = $record->as_usmarc(); |
93 |
#NOTE: If we don't explicitly UTF-8 encode the output, |
| 94 |
if ($usmarc) { |
94 |
#the browser will guess the encoding, and it won't always choose UTF-8. |
| 95 |
#NOTE: If we don't explicitly UTF-8 encode the output, |
95 |
$output .= encode("UTF-8", $record->as_usmarc()) // q{}; |
| 96 |
#the browser will guess the encoding, and it won't always choose UTF-8. |
|
|
| 97 |
my $bytes = encode("UTF-8", $usmarc); |
| 98 |
if ($bytes) { |
| 99 |
$output .= $bytes; |
| 100 |
} |
| 101 |
} |
| 102 |
} |
96 |
} |
| 103 |
elsif ($format eq 'ris') { |
97 |
elsif ($format eq 'ris') { |
| 104 |
$output .= marc2ris($record); |
98 |
$output .= marc2ris($record); |
| 105 |
- |
|
|