MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Work on #391. #399

Closed mjordan closed 7 years ago

mjordan commented 7 years ago

Github issue: (#391)

What does this Pull Request do?

Adds a shutdown hook script to generate structure.xml files for compound objects.

What's new?

This PR adapts https://github.com/MarcusBarnes/islandora_compound_batch/blob/master/extras/scripts/create_structure_files.php for use as a shutdown hook script.

This does not depend on #396.

How should this be tested?

  1. check out the issue-391 branch.
  2. unzip the attached file, move the .ini, mappings, and metadata files out of the resulting directory, and adjust paths in the .ini file to suit your local environment.
  3. in the mik directory, run ./mik -c issue-391.ini.
  4. running tree on your output directory should reveal a structure.xml file in each of the compound object directories.

Additional Notes

We should update https://github.com/MarcusBarnes/mik/wiki/Shutdown-hooks to document this new script.

Interested parties

@MarcusBarnes

mjordan commented 7 years ago

Looks like I neglected to attach the test data for this PR too, sorry. Here it is.

issue-391.zip

MarcusBarnes commented 7 years ago

Appears to work as described. Thank you @mjordan.