qurator-spk / mods4pandas

Extract the MODS/ALTO metadata of a bunch of METS/ALTO files into pandas DataFrames for data analysis
Apache License 2.0
11 stars 0 forks source link

Multiple language tags vs multiple languageTerm tags #3

Closed mikegerber closed 2 years ago

mikegerber commented 2 years ago

Newer input files have two <mods:languageTerm>s in one <mods:language>:

<mods:language>
  <mods:languageTerm authority="iso639-2b" type="code">ger</mods:languageTerm>
  <mods:languageTerm authority="iso639-2b" type="code">eng</mods:languageTerm>
</mods:language>

modstool should not throw an exception here.

mikegerber commented 2 years ago

Fixed in https://github.com/qurator-spk/modstool/commit/75ff143a2541b5c34ecd9e7f0243799abc806900.