[MLZ] MODS export RFC5646 confusion

When exporting my collection to mods, the resulting file doesn't pass validation because of multiple errors (two per item) concerning RFC5646.
These are the errors:

E [Xerces] cvc-enumeration-valid: Value 'rfc5646' is not facet-valid with respect to enumeration '[rfc3066, iso639-2b, iso639-3, rfc4646]'. It must be a value from the enumeration.

and the other.

E [Xerces] cvc-attribute.3: The value 'rfc5646' of attribute 'authority' on element 'languageTerm' is not valid with respect to its type, 'languageAuthorityAttributeDefinition'.

Before I go off on a wild goose chase, could someone tell me if this is a known issue, bad user input, wad...
  • edited January 12, 2015
    I haven't seen that before. The language codes should be valid - the process behind RFC 5646 doesn't allow for removing codes once approved. Hmm. It's not the language codes themselves though, is it: it's the language tag schema declaration.

    It looks like the validator is requiring a declaration of rfc4646, which was superceded back in 2009 by 5646. We could try changing the declaration in the translator, but before that, it might be worth checking to see if the MODS validation schema is up to date.
  • edited January 12, 2015
    Hello Frank,

    thank you, as usual, for the prompt reply
    doh have you tried turning it on and off again?
    Current schema from MLZ is:

    modsCollection xmlns="http://www.loc.gov/mods/v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd"

    3.5 was released July 2013
    3.6 is on its way

    changing to
    http://www.loc.gov/standards/mods/v3/mods-3-5.xsd
    solves the issue.

    Should be an easy fix, maybe go to 3.6 straight away?

    Found two remaining errors due to bad user input.

    All is good now.
    Greetings DP
  • So there was a mismatch between the MODS version I declared in the header, and the BCP 47 RFC doc that I declared in the content. Sorry about the confusion.

    Does validation clear for you at 3.6?
  • 3.6 appears to still be in planning phase. So it doesn't work. 3.5 is the way to go.
  • Thanks! Done.
  • Great! I just checked the zotero translator github, and the MODS.js doesn't include any references to the most current schema.

    Is this of interest to regular zotero?
Sign In or Register to comment.