...
This will populate the queue (stored in the Drupal database) with base entries for an administrator to approve and start the processing. The queue of preprocessed items can then be processed either through a drush command or the admin console.
Drush(6 and 7):
drush -v --user=admin --uri=http://localhost islandora_batch_ingest
...
Info |
---|
Drush made the target parameter reserved as of Drush 7. To allow for backwards compatibility, this will be preserved. The parameter has been renamed scan_target . |
Web options
Options are available for processing include:
...
Command-line Book Batch options interaction with the Book Solution Pack ingest settings:
Code Block |
---|
|
Options:
--aggregate_ocr A flag to cause OCR to be aggregated to books, if OCR is also being generated per-page.
--content_models A comma-separated list of content models to assign to the objects. Only applies to the "book" level object.
--create_pdfs A flag to cause PDFs to be created in books. Page PDF creation is dependant on the configuration within Drupal proper.
--directory_dedup A flag to indicate that we should avoid repreprocessing books which are located in directories.
--do_not_generate_hocr A flag to allow for conditional HOCR generation.
--do_not_generate_ocr A flag to allow for conditional OCR generation.
--email_admin A flag to notify the site admin when the book is fully ingested (depends on Rules being enabled).
--namespace The namespace for objects created by this command. Defaults to namespce set in fedora config.
--output_set_id A flag to indicate whether to print the set ID of the preprocessed book.
--page_progression A flag to indicate the page progression for the book. If not specified will default to LR.
--parent The collection to which the generated items should be added. Only applies to the "book" level object. If "directory" and the directory containing the book description is a valid PID, it will be set as the parent. If this is specified and itself is a PID, all books will be related to the given PID.
--parent_relationship_pred The predicate of the relationship to the parent. Defaults to "isMemberOfCollection".
--parent_relationship_uri The namespace URI of the relationship to the parent. Defaults to "info:fedora/fedora-system:def/relations-external#".
--target The target to directory or zip file to scan. Required.
--type Either "directory" or "zip". Required.
--wait_for_metadata A flag to indicate that we should hold off on trying to ingest books until we have metadata available for themat the book level.
Aliases: ibbp
Example that will work inside of islandora_vagrant:
/var/www/drupal$ drush -v -u 1 --uri=http://localhost islandora_book_batch_preprocess --content_models=islandora:bookCModel --namespace=islandora --parent=islandora:1 --type=directory --target=/vagrant/dir_of_books --create_pdfs=TRUE |
- The options --create_pdfs and --aggregate_ocr will have no effect if the box for the corresponding option is not checked on the Book Solution Pack configuration page (admin/islandora/solution_pack_config/book).
- So, if "PDF datasteam" is checked on the SP configuration page, then the option --create_pdfs will create a book-level (aggregated) PDF datastream.
- Likewise, if "OCR datastreams" is checked, then the option --aggregate_ocr will create a book-level (aggregated) OCR datastream.