Bugzilla – Attachment 53255 Details for
Bug 16370
Set the record encoding to UTF8 when TransformHtmlToMarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16370 - Frameworks without 000 visible won't save UTF8 characters
Bug-16370---Frameworks-without-000-visible-wont-sa.patch (text/plain), 1.58 KB, created by
Liz Rea
on 2016-07-11 02:27:10 UTC
(
hide
)
Description:
Bug 16370 - Frameworks without 000 visible won't save UTF8 characters
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2016-07-11 02:27:10 UTC
Size:
1.58 KB
patch
obsolete
>From 6f6103952025ba1c7e14247ffc249bc445f26bf3 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?C=C3=A9dric=20Dufour?= > <cdufour-keyword-koha.b708e6@idiap.ch> >Date: Mon, 11 Jul 2016 14:23:16 +1200 >Subject: [PATCH] Bug 16370 - Frameworks without 000 visible won't save UTF8 > characters >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Create a framework that doesn't include the 000 in the editor (set to ignore) alternatively, import the attached framework. > >Create or import a record that has UTF8 characters in it into that framework. I used ÄÄÄÄÄÄÄ for the title, because that's easy to spot disappearing. > >Edit the record, and modify any field. You'll notice that the title is no longer displayed after you save it. > >Apply the patch, redo above, fields with UTF8 Characters will be saved correctly > >Note (from Liz): I have no idea if this is the right solution, but it does fix the problem, so I'm formatting this as required for testing/inclusion on behalf of Cédric. > >If you look in the database in biblioitems for this biblio, you'll spot that the MARC has the title saved, but the MARCXML does not. >--- > C4/Biblio.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 2798325..7bb380e 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2546,6 +2546,7 @@ sub TransformHtmlToMarc { > > # creating a new record > my $record = MARC::Record->new(); >+ $record->encoding( 'UTF-8' ); > my @fields; > my ($biblionumbertagfield, $biblionumbertagsubfield) = (-1, -1); > ($biblionumbertagfield, $biblionumbertagsubfield) = >-- >1.9.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 16370
:
50819
|
53254
|
53255
|
53256