[Koha-bugs] [Bug 29333] Importing UNIMARC authorities in MARCXML UTF-8 breaks the encoding
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 20 06:12:14 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29333
--- Comment #4 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Mmmm
diff --git a/catalogue/showmarc.pl b/catalogue/showmarc.pl
index 8292bfe746..ab6c29487f 100755
--- a/catalogue/showmarc.pl
+++ b/catalogue/showmarc.pl
@@ -61,7 +61,9 @@ if(!ref $record) {
}
if($view eq 'card' || $view eq 'html') {
- my $xml = $importid ? $record->as_xml(): GetXmlBiblio($biblionumber);
+ my $marcflavour = C4::Context->preference('marcflavour');
+ my $format = $marcflavour eq 'UNIMARC' ? 'UNIMARCAUTH' : 'USMARC';
+ my $xml = $importid ? $record->as_xml($format):
GetXmlBiblio($biblionumber);
This should be only for authorities no ?
showmarc.pl is also used to display biblio records
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list