slub / mets-mods2tei

Convert bibliographic meta data in MODS format to TEI headers
Apache License 2.0
8 stars 7 forks source link

Fix TEI validation errors #44

Open wrznr opened 4 years ago

wrznr commented 4 years ago

After consultation with @tboenig, it turns out that with a few modifications we can reach full compatibility with the DTABf, almost:

bertsky commented 2 years ago
  • collection information as textclass

We should reserve the tei:profileDesc/tei:textClass mechanism for mods:subject and mods:classification, as implemented here.

The proper representation for mods:relatedItem/@type=series is not tei:creation, but tei:msDesc/tei:msIdentifier/tei:collection IMO, as implemented here.

  • editionStmt one level higher

Fixed here

In addition to the above, when validating against TEI itself (xmlstarlet val -r tei_all.rng tei.xml), one can immediately see lots of invalidities caused by wrong order of elements. (For example, under tei:publicationStmt, we need publisher < date < pubPlace < idno < availability, whereas we do add_place < add_date < add_publisher < set_availability < add_identifier.)

bertsky commented 2 years ago

The proper representation for mods:relatedItem/@type=series is not tei:creation, but tei:msDesc/tei:msIdentifier/tei:collection IMO, as implemented here.

  • editionStmt one level higher

Fixed here

Not a fix, because not in DTABf either, see discussion here. So let's move mods:relatedItem/@type=series into sourceDesc/biblFull/seriesStmt!