Bug #4451

Dublin Core.XML export not using ISO language code

Added by Jessica Bushey over 8 years ago. Updated about 8 years ago.

Status:VerifiedStart date:12/18/2012
Priority:HighDue date:
Assignee:José Raddaoui Marín% Done:

0%

Category:Import/Export
Target version:Release 1.4.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

Create description in Dublin Core. Select a language from the drop-down list (e.g., English and French). Save description.
Export as DC.XML

Resulting Error:
<language>English</language>
<language>French</language>

Expected Result: (this is just an example, there are other options)
<dc:language xsi:type="dcterms:ISO639-2"> eng</dc:language>

Further Instruction:
The language of the intellectual content of the resource. Recommended best practice is defined by RFC 1766 (Tags for the Identification of Languages) which includes a 2-letter Language Code (from the ISO 639 standard, Codes for the representation of names of languages) followed optionally by a two letter country code (from the ISO 3166 standard, Codes for the representation of the names of countries.
Other sources say best practice recommends use of: ISO 639-2: [[http://www.loc.gov/standards/iso639-2/php/code_list.php]] which combines the lang code with country code, e.g., en-US for english United States.


Related issues

Related to Access to Memory (AtoM) - Bug #4302: DC XML import/export roundtripping Verified
Related to Access to Memory (AtoM) - Bug #4821: Event dialogue (Names and Dates) in Dublin Core template ... Verified 03/20/2013
Blocked by Access to Memory (AtoM) - Bug #5013: ISO 639: add support for 639-3 Verified 04/28/2013

History

#1 Updated by Jessica Bushey over 8 years ago

I've tried tweaking it a couple different ways and I can't get it to import properly into AtoM.
I've tried:

<dc:language>eng</dc:language>
<dc:language>en</dc:language>

#2 Updated by Jessica Bushey over 8 years ago

Peter has suggested we use ISO-639-3 for language encoding. As this is what CMR is using. And ISO 639-3 is legit under the Dublin Core specifications. It is 3 char lang codes.

#3 Updated by Jessica Bushey over 8 years ago

  • Priority changed from Medium to High

#4 Updated by Jesús García Crespo over 8 years ago

  • Assignee changed from Mike Cantelon to Jesús García Crespo

#5 Updated by David Juhasz over 8 years ago

  • Assignee changed from Jesús García Crespo to José Raddaoui Marín
  • Target version changed from Release 2.1.0 to Release 1.4.0

#6 Updated by Jesús García Crespo over 8 years ago

  • Assignee changed from José Raddaoui Marín to Jesús García Crespo

#7 Updated by José Raddaoui Marín over 8 years ago

  • Assignee changed from Jesús García Crespo to José Raddaoui Marín

#8 Updated by José Raddaoui Marín about 8 years ago

  • Status changed from New to QA/Review

#9 Updated by Dan Gillean about 8 years ago

  • Status changed from QA/Review to Verified

Also available in: Atom PDF