-
Notifications
You must be signed in to change notification settings - Fork 10
Cookbook: Generating FITS XML
MIK comes with a post-write hook script that will generate FITS output for newspaper and book pages that is compatible with Islandora FITS. This script will add the FITS output file to the newspaper issue or book ingest package, allowing Islandora to use it instead of generating it on ingest (which will speed up your ingest substantially). To enable it, add the following entry to your .ini file's [WRITER]
section:
postwritehooks[] = "/usr/bin/php extras/scripts/postwritehooks/generate_fits.php"
You will need to make sure that FITS is installed and runs on your system, and that the variables at the top of the script (extras/scripts/postwritehooks/generate_fits.php), $path_to_fits, $fits_output_filename, $obj_filename, and $item_info_field_for_issues, are set properly.
MIK provides a phpunit test to determine if FITS is running on your system. To run this test, change tests/FITS/phpunit.xml to use the path to fits.sh or fits.bat on your system and run phpunit in that directory.
Content on the Move to Islandora Kit wiki is licensed under a Creative Commons Attribution 4.0 International License.