Some (most?) Islandora users package up their objects for batch import in .zip files so they can upload them via the GUI. iipqa should allow users to validate the .zip. https://github.com/wapmorgan/UnifiedArchive appears to be a suitable Composer-friendly library for unzipping.
Proposed implementation would be that if the value of the target is a directory, iipqa would operate as it now does; if the target is a .zip, iipqa would unzip it into a temporary location and then apply its tests.
Any requirements for the structure of the .zip, such as that all import packages must be children of the top-level of the zip, should be checked as follows:
Single: all files must be immediate children of the zip root.
Book: each book folder is an immediate child of the zip root.
Newspaper: each newspaper issue folder is an immediate child of the zip root.
Compound: Islandora Compound Batch only accepts input from directories, not zip archives.
Some (most?) Islandora users package up their objects for batch import in .zip files so they can upload them via the GUI. iipqa should allow users to validate the .zip. https://github.com/wapmorgan/UnifiedArchive appears to be a suitable Composer-friendly library for unzipping.
Proposed implementation would be that if the value of the target is a directory, iipqa would operate as it now does; if the target is a .zip, iipqa would unzip it into a temporary location and then apply its tests.
Any requirements for the structure of the .zip, such as that all import packages must be children of the top-level of the zip, should be checked as follows: