gbif / ipt

GBIF Integrated Publishing Toolkit (IPT)
https://www.gbif.org/ipt
Apache License 2.0
128 stars 57 forks source link

Use of 3-letter language codes #468

Closed kbraak closed 9 years ago

kbraak commented 9 years ago
Concerning the following field: Eml:eml/additionalMetadata/metadata/metadataLanguage

which defines the language used for documenting metadata.

We currently provide a controlled list based on 2-letter language codes but both INSPIRE
(EU directive) and North American Profile of ISO 19115 recommend use of the three letter
codes from ISO 639-2/B (bibliographic codes), as defined at http://www.loc.gov/standards/iso639-2/.

3-letter codes should also be used for eml:eml/dataset/language (the language of the
resource as opposed to language of metadata).

Original issue reported on code.google.com by eotuama.gbif on 2010-11-18 16:30:28

kbraak commented 9 years ago
(No text was entered with this change)

Original issue reported on code.google.com by timrobertson100 on 2010-11-18 20:06:52

kbraak commented 9 years ago
The XML source file for the controlled list of 3-letter language codes is available
here: http://rs.gbif.org/vocabulary/iso/639-2.xml. This is derived from the code list:
http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt 

Original issue reported on code.google.com by eotuama.gbif on 2010-11-22 11:34:20

kbraak commented 9 years ago
updated vocabulary with french translation and alternative terms: http://rs.gbif.org/vocabulary/iso/639-2.xml

Original issue reported on code.google.com by wixner on 2010-11-22 13:01:21

kbraak commented 9 years ago
Use the 3 letter code vocab in the IPT for dropdowns. Might cause problems with the
internationalisation as the locale returned by the server is the 2 letter code. We
need to make sure that the VocabulariesManager.getI18nVocab(String uri, String lang,
boolean sortAlphabetically) method and all our the vocabularies are keyed on the 2
letter code!

This 3 letter code really is only for EML within the IPT.

Original issue reported on code.google.com by wixner on 2010-11-22 19:54:39

kbraak commented 9 years ago
see r2536

Original issue reported on code.google.com by wixner on 2010-11-22 19:55:00

kbraak commented 9 years ago
(No text was entered with this change)

Original issue reported on code.google.com by timrobertson100 on 2010-11-23 08:31:12

kbraak commented 9 years ago
well, its already in the trunk, so I guess it needs to be fully tested in RC1 already

Original issue reported on code.google.com by wixner on 2010-11-24 22:21:49

kbraak commented 9 years ago
(No text was entered with this change)

Original issue reported on code.google.com by timrobertson100 on 2010-11-26 15:55:11