MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Separate templates for child/page-level MODS files from code, and make their locations configurable #236

Open mjordan opened 8 years ago

mjordan commented 8 years ago

The MODS.xml files generated by MIK as described in the following toolchain guides use templates that exist within the writer class files. We should separate out these templates into their own files and allow users to configure the path to those template files.

https://github.com/MarcusBarnes/mik/wiki/Toolchain:-CONTENTdm-newspapers https://github.com/MarcusBarnes/mik/wiki/Toolchain:-CSV-newspapers https://github.com/MarcusBarnes/mik/wiki/Toolchain:-CSV-compound-objects

We could provide default templates in a templates directory under src/, for example, and within the [WRITER] section of each .ini, provide a child_metadata_template_path or similar option.

We'd need to document which variables are passed to the templates.

mjordan commented 7 years ago

Perhaps we can use the new InsertXmlFromTemplate metadata manipulator, or a specialized version of it, to do this?