Skip to content

Cookbook: Having MIK validate the MODS.xml files it creates

Mark Jordan edited this page Jan 28, 2016 · 6 revisions

MIK provides a post-write hook script that will validate the MODS.xml files it creates against the MODS 3.5 schema. The file is located at extras/scripts/postwritehooks/validate_mods.php.

To use this script, add the following line to the [WRITER] section of your .ini files:

[WRITER]
...
postwritehooks[] = "/usr/bin/php extras/scripts/postwritehooks/validate_mods.php"

You may need to adjust the path to your PHP executable.

Your MIK log will contains entries confirming that the MODS.xml file in a package passed validation or failed.

Cookbook table of contents

Clone this wiki locally