#778 closed defect (fixed)
Language codes not always stripped from descriptions
Reported by: | Twan Goosen | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | VLO-3.3 |
Component: | VLO web app | Version: | |
Keywords: | Cc: | teckart@informatik.uni-leipzig.de |
Description
When there are multiple description fields, the language code prefixes do not get stripped out in the view (in VLO-3.2 in production).
Change History (4)
comment:1 Changed 9 years ago by
Cc: | teckart@informatik.uni-leipzig.de added |
---|
comment:3 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
As mentioned by Jörg, the language codes in this case were not lower case ISO 639 three letter codes whereas the web app was assuming that they always are in this context. The responsible regex is now a bit more relaxed, see r6404.
It would be nice, but not critical, to make sure that the xml:lang based content language prefix for description fields would always be converted to ISO639 by the importer, as it does for values in the languageCode field. I will make a separate ticket and close this one.
Note: See
TracTickets for help on using
tickets.
Just a note: The language codes in the the example aren't ISO 639 language codes, but IETF language tags ( https://en.wikipedia.org/wiki/IETF_language_tag ).
AFAIK, language tags aren't supported by the VLO yet; should they? Or is it a case for metadata curation?
EDIT: The usage of a language tag for xml:lang is legal by the XML specification (see: http://www.w3.org/TR/REC-xml/ ) --- I tend to ask for support of it.