MyCoRe-Org / pica2mods

GNU General Public License v3.0
0 stars 0 forks source link

Do not use `@authority attribute on unknown language codes #28

Closed rsteph-de closed 2 years ago

rsteph-de commented 2 years ago

If a language code is not registered in our rfc5646 classification we must not set the authority attribute on mods:language because this triggers the validation of the value against the classification

WRONG:

<mods:language>
  <mods:languageTerm type="code" authority="rfc5646">???some???</mods:languageTerm>
</mods:language>
rsteph-de commented 2 years ago

Modified Output:

<mods:language><!--unknown language code-->
      <mods:languageTerm type="code">qnn</mods:languageTerm>
</mods:language>