Bugzilla – Attachment 170742 Details for
Bug 37184
Special character encoding problem when importing MARC file from the acquisitions module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37184: Special character encoding problem when importing MARC file from the Acquisitions module
Bug-37184-Special-character-encoding-problem-when-.patch (text/plain), 1.58 KB, created by
Hammat wele
on 2024-08-26 21:23:46 UTC
(
hide
)
Description:
Bug 37184: Special character encoding problem when importing MARC file from the Acquisitions module
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-08-26 21:23:46 UTC
Size:
1.58 KB
patch
obsolete
>From 16bd8e382b19c21d581d108ce9793c47c3304baf Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Mon, 26 Aug 2024 21:21:50 +0000 >Subject: [PATCH] Bug 37184: Special character encoding problem when importing > MARC file from the Acquisitions module >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >1. Go to Cataloging > "Stage records for import". >2. Upload the file "ExportMemento2024061010532869Marc8.mrc" or a MARC8 encoded file. >3. In the form, select the options : > - Record type: Bibliographic > - Character encoding: MARC8 > - Format: MARC >4. Click "Stage for import". >5. Find or create an open basket in the Acquisitions module. >6. Click "add to basket". >7. Select "From a staged file" and select the previous staged file. >9. Click "Select all" to check all records. >10. In the item information tab, choose the Document type. >11. Verify the titles of the records in the basket: > --> Koha replaces accents with symbols � > >12. Apply the patch. >13. Do the same from step 1 and notice there is no more encoding issues. >--- > Koha/Import/Record.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Import/Record.pm b/Koha/Import/Record.pm >index ea238e6254..14fab57e54 100644 >--- a/Koha/Import/Record.pm >+++ b/Koha/Import/Record.pm >@@ -56,7 +56,7 @@ sub get_marc_record { > $format = 'UNIMARCAUTH'; > } > >- my $record = MARC::Record->new_from_xml($self->marcxml, $self->encoding, $format); >+ my $record = MARC::Record->new_from_xml( $self->marcxml, 'UTF-8', $format ); > > return $record; > } >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37184
:
168086
|
168236
|
170742
|
170924
|
173527