Skip to content

Cookbook: Generating FITS XML

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

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.

Cookbook table of contents

Clone this wiki locally