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

Make extensions of page images configurable in CSV Book and Newspaper toolchains #495

Closed mjordan closed 5 years ago

mjordan commented 5 years ago

https://github.com/MarcusBarnes/mik/blob/master/src/filegetters/CsvBooks.php#L12 and https://github.com/MarcusBarnes/mik/blob/master/src/filegetters/CsvNewspapers.php#L11 hardcode $allowed_file_extensions_for_OBJ = array('tiff', 'tif', 'jp2'). But Islandora Book Batch (and I assume Newspaper Batch), can ingest pages that are JPEGs. We should allow the alllowed extenstions to be configurable, with a default of 'tiff', 'tif', 'jp2', and 'jpg'.

mjordan commented 5 years ago

I've updated the wiki pages for the CSV Books and CSV Newspapers toolchains to document how to use the new allowed_file_extensions_for_OBJ configuration option.