|
Lines 90-96
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 |
$output .= $record->as_usmarc(); |
93 |
my $usmarc = $record->as_usmarc(); |
|
|
94 |
if ($usmarc) { |
| 95 |
#NOTE: If we don't explicitly UTF-8 encode the output, |
| 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 |
} |
| 94 |
} |
102 |
} |
| 95 |
elsif ($format eq 'ris') { |
103 |
elsif ($format eq 'ris') { |
| 96 |
$output .= marc2ris($record); |
104 |
$output .= marc2ris($record); |
| 97 |
- |
|
|