mik icon indicating copy to clipboard operation
mik copied to clipboard

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

Open mjordan opened this issue 8 years ago • 1 comments

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 avatar Aug 08 '16 19:08 mjordan

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

mjordan avatar Nov 25 '16 21:11 mjordan