[Koha-bugs] [Bug 20545] Add multi-language support to SIP2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 16 13:06:18 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20545

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magnus at libriotech.no

--- Comment #4 from Magnus Enger <magnus at libriotech.no> ---
This hints at a bug in the SIP2 implementation in Koha. In the SIP2 standard
that Katrin references in Comment 1, "language" is listed as a "3-char, fixed
length required field". The contents of this field should be the 3-digit
language codes that Katrin lists. 

As fas as I can tell, Koha uses the contents of the borrowers.lang database
field for the language, using 000 if the field is not set:
http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=C4/SIP/ILS/Patron.pm;h=23c576493fbc6214905efd1297225057a80c537a;hb=HEAD#l252

If a language code like nb-NO is used for the language in SIP2 the language
info will have both the wrong length and the wrong format. 

As far as I can tell, we should have a mapping somewhere from the codes we use
in borrowers.lang to the 3-digit codes required by SIP2. 

Not sure if it makes sense to fix this as part of the present bug or if it
should be a separate bug.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list