Skip to content

Convert source files to Mets/Mods format - #50

Open
hizclick wants to merge 1 commit into
developfrom
49-ftr-add-metsmods-export-for-mei-source-files
Open

Convert source files to Mets/Mods format#50
hizclick wants to merge 1 commit into
developfrom
49-ftr-add-metsmods-export-for-mei-source-files

Conversation

@hizclick

@hizclick hizclick commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description, Context and related Issue

Adds the converted METS/MODS files for the two sample source MEI files in this edition, generated from an Edirom source MEI file (facsimile <surface>/<zone> data linked via <measure facs="#zone">), following the model demonstrated by the reference files mets_M001.xml / V0001.mei in this repository.

Each generated file includes:

  • a MODS dmdSec with title, composer (resolved from the linked work file) and identifiers
  • a fileSec with one file group per facsimile surface (DEFAULT/MAX/THUMBS) plus a SCORE file group pointing at the MEI source
  • structMap TYPE="PHYSICAL" with one page div per surface
  • structMap TYPE="MUSICAL" linking each MEI <measure> to its facsimile pixel region (COORDS) and back to its own @xml:id in the MEI file

Added:

  • mets-mods/mets_edirom_source_2b2b26e5.xml (print source, "Erstdruck")
  • mets-mods/mets_edirom_source_47dde5ab.xml (manuscript source, "Autograph")

Refs #49

How Has This Been Tested?

Each file was generated with Saxon-HE 12.5 from its corresponding source in content/sources/ and manually checked to be well-formed, with dmdSec/fileSec/structMap sections populated as expected and the MUSICAL structMap's measure count matching the number of <measure> elements in the source MEI file.

Types of changes

  • New feature (non-breaking change which adds functionality)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ftr] Add METS/MODS export for MEI source files

1 participant