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

Magnus Enger <mag...@libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mag...@libriotech.no

--- Comment #4 from Magnus Enger <mag...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to