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

Write a post-write hook script to reformat output so it can be used in the Islandora REST Ingester #448

Closed mjordan closed 6 years ago

mjordan commented 6 years ago

The Islandora REST Ingester requires that input data for single-file objects is arranged in subdirectories, e.g.,

sampleinput/
 ├── foo
 │   ├── MODS.xml
 │   └── OBJ.png
 ├── bar
 │   ├── MODS.xml
 │   └── OBJ.jpg
 └── baz
    ├── MODS.xml
    └── OJB.jpg

A post-write hook script can create this arrangement.

Input for compound, book, and newspaper issue objects is same as MIK already creates, so these content types won't require a post-write hook script.

mjordan commented 6 years ago

I've moved this issue over to the REST Ingester repo. Closing for now, if anyone wants to include the script MIK, let me know and I'll reopen and we can go from there.