-
Notifications
You must be signed in to change notification settings - Fork 10
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.
Content on the Move to Islandora Kit wiki is licensed under a Creative Commons Attribution 4.0 International License.