Bug 16578: Same fix for the staff interface
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works as first patch No errors Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
7d4844e171
commit
3948102f2a
|
|
@ -69,6 +69,9 @@ if ($op eq "export") {
|
|||
($error, $marc) = marc2marc($marc, 'marcstd', C4::Context->preference('marcflavour'));
|
||||
$format = "marcstd";
|
||||
}
|
||||
if ( $format =~ /utf8/ or $format =~ /marcstd/ ) {
|
||||
binmode STDOUT, ':encoding(UTF-8)';
|
||||
}
|
||||
print $query->header(
|
||||
-type => 'application/octet-stream',
|
||||
-attachment=>"bib-$biblionumber.$format");
|
||||
|
|
|
|||
Loading…
Reference in New Issue