[Koha-bugs] [Bug 25082] Unknown language code if 041 $a is linked to an authorized value list

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 6 11:18:20 CEST 2020


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

--- Comment #27 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Hi Jonathan, 

trying to explain. Please have a look at

Please have a look at:
http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=C4/XSLT.pm;h=1b3941c7fbed071c559d4de64c0df83c119743cc;hb=4071924f7f9438c344e878a86d29792f83c06704#l55

to start with. It explains what happens, when you map an authorised value to a
MARC field.

(In reply to Jonathan Druart from comment #26)
> Sorry but still wrong.
> 
> Summary, using 041 _ _ ‡adut‡axxx‡ager‡aita‡aspa‡beng
> 
> * No mapping
> Before:
> Language: Dutch, Unknown language code, German, Italian, Spanish. Summary
> language: English. 
> After: 
> Language: Dutch, xxx, German, Italian, Spanish. Summary language: English. 
> Mapped with LANG (no AV)

We display the code instead of the "Unknown language", that was an intentional
change.
The code displaying here will not always be a code, if the AV is mapped, it's
the description.


> * Mapped with LANG (no AVs yet)
> Before:
> Language: Unknown language code, Unknown language code, Unknown language
> code, Unknown language code, Unknown language code. Summary language:
> English. 
> After:
> Language: , , , , . Summary language: English. 

I assume, and you might be able to verify, that transformMARCXML4XSLT is to
blame for this, not the XSLT. I think if the language code doesn't exist in
LANG, it gives us "". I cannot do anything about this on XSLT level.

> * Create 2 LANG (xxx=description xyz, spa=Spanish)
> Before:
> Language: Unknown language code, Unknown language code, Unknown language
> code, Unknown language code, Unknown language code. Summary language:
> English. 
> After:
> Language: , description xyz, , , Spanish. Summary language: English.

Ok, this is harder. 

What I could do, if we get "" from transformMARCXML4XSLT is a fallback if code
= "" display "Unknown language". Would this be ok?

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


More information about the Koha-bugs mailing list