https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25082 --- Comment #27 from Katrin Fischer <katrin.fischer@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=1b394... 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.