Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimal commit to correct batch_gui #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flummingbird
Copy link

Resolves #22
@mjordan special thanks to you!

@MarcusBarnes
Copy link
Owner

@flummingbird Would it be possible to either attach or send me a sample batch of compound objects to test the pr against? Thanks in advance.

@flummingbird
Copy link
Author

flummingbird commented Oct 30, 2018 via email

@bondjimbond
Copy link

So, some problems:

First, I zipped up the top-level directory (root) where paths are root/object1/child1 etc.

Result: A single compound object called MODS, every file in all directories is its child.

Second, I tried zipping all the child objects together (no root directory). Result: errors.

Notice: Undefined index: icbp_verbose in IslandoraCompoundBatchPreprocessor->preprocess() (line 20 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Warning: Missing argument 1 for get_dir_name() in get_dir_name() (line 77 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/structure.inc).
Warning: Missing argument 1 for get_dir_name() in get_dir_name() (line 77 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/structure.inc).
Warning: Missing argument 1 for get_dir_name() in get_dir_name() (line 77 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/structure.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).

Third, tried the first approach again, but with structure.xml appropriately included. Result: errors.

Notice: Undefined index: icbp_verbose in IslandoraCompoundBatchPreprocessor->preprocess() (line 20 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Warning: Missing argument 1 for get_dir_name() in get_dir_name() (line 77 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/structure.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).
Notice: Undefined variable: input_path in IslandoraCompoundBatchPreprocessor->preprocess() (line 66 of /var/www/drupal/sites/all/modules/islandora_compound_batch/includes/preprocessor.inc).

Fourth, tried the second approach (zip compound object directories together, no root directory), with structure.xml generated. Result: Success!

Conclusions:

  • Need to include documentation/warnings/etc. for exactly how the ZIP file should be structured, because people will get it wrong.
  • Question: Typical use case is that people will create their batches locally, then ingest via the UI. How do we expect them to get structure.xml created and in the right places? When working via Drush it's annoying but plausible to run create_structure_files.php beforehand, but less so when working from the UI and generating zips in whatever way.
  • Could the batch process (both in Drush and in the UI) check for structure.xml files in the directory tree, and run the script if they aren't present?

@bondjimbond
Copy link

Further notes: For the batch that was ingested successfully, I never did get derivatives out of them. Perhaps it's not calling for derivative generation? Ingesting via Drush there were no problems.

@flummingbird
Copy link
Author

flummingbird commented Jan 22, 2019 via email

@flummingbird
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants