[Koha-bugs] [Bug 3182] New: Non-ASCII framework codes fail to work in cataloguing
bugzilla-daemon at liblime.com
bugzilla-daemon at liblime.com
Mon May 4 10:31:50 CEST 2009
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3182
Summary: Non-ASCII framework codes fail to work in cataloguing
Product: Koha
Version: rel_3_0
Platform: PC
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
Component: Cataloging
AssignedTo: galen.charlton at liblime.com
ReportedBy: hui_nan at mail.ru
Estimated Hours: 0.0
The framework with non-ASCII code (say using some national language) can be
created, but when it is used to create new marc record Koha fails to save that
record with the message:
Tag "" is not a valid tag. at /home/www/koha/lib/C4/Biblio.pm line 2656
The reason for such behaviour is that hidden input element of the web-form
named 'frameworkcode' returns encoded string like
'\xd0\x96\xd0\xa3\xd0\xa0\xd0\x9d' instead of true utf-8 characters.
There are two workarounds:
1. Use ASCII-only for any short-string identifiers in Koha, which is not good
for users who don't speak english (or any other 'ASCII-language').
2. Patch form-retrieval code to implicitly decode such identifiers. For example
the code around the line 821 in /intranet/cgi-bin/cataloguing/addbiblio.pl
could be modified:
instead of
my $frameworkcode = $input->param('frameworkcode');
insert
my $frameworkcode = Encode::decode utf8=>$input->param('frameworkcode');
I believe that the latter modification should be done in some other files and
for some other params too.
--
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the Koha-bugs
mailing list