virtUOS / edusharing-opencast-importer

This importer harvests episodes (lecture recordings) from Opencast instances and push it as external references to an Edusharing instance.
GNU General Public License v3.0
2 stars 2 forks source link

Added possibility to map (non-iso639-1) languages #47

Closed mirjan-hoffmann closed 3 years ago

mirjan-hoffmann commented 3 years ago

Sometimes the value in the language field is not an ISO-639-1 code (as required in edu-sharing), but e.g. "deu". Therefore the value has to be adjusted. An idea was to use only the first two characters of the field (or use an iso-639-2 -> iso-639-1 mapping) - but experience has shown that this can lead to errors if users can enter free text here (e.g. "silent movie" or similar). Therefore I implemented the possibility to solve the problem via the mapping configuration.

mirjan-hoffmann commented 3 years ago

tested on twillo Test -> works as expected

discussed with @ffeyen : can be merged