|
|
@ -21,6 +21,13 @@ function islandora_run_derivatives(AbstractObject $object, $dsid) { |
|
|
|
islandora_derivative_logging($logging_results); |
|
|
|
islandora_derivative_logging($logging_results); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
|
|
|
|
$operations = islandora_do_batch_derivatives( |
|
|
|
|
|
|
|
$object, |
|
|
|
|
|
|
|
array( |
|
|
|
|
|
|
|
'source_dsid' => $dsid, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if ($operations) { |
|
|
|
batch_set( |
|
|
|
batch_set( |
|
|
|
// Title won't show for batch in a batch. |
|
|
|
// Title won't show for batch in a batch. |
|
|
|
array( |
|
|
|
array( |
|
|
@ -32,16 +39,12 @@ function islandora_run_derivatives(AbstractObject $object, $dsid) { |
|
|
|
array('@label' => $object->label) |
|
|
|
array('@label' => $object->label) |
|
|
|
), |
|
|
|
), |
|
|
|
'file' => drupal_get_path('module', 'islandora') . '/includes/regenerate_derivatives.form.inc', |
|
|
|
'file' => drupal_get_path('module', 'islandora') . '/includes/regenerate_derivatives.form.inc', |
|
|
|
'operations' => islandora_do_batch_derivatives( |
|
|
|
'operations' => $operations, |
|
|
|
$object, |
|
|
|
|
|
|
|
array( |
|
|
|
|
|
|
|
'source_dsid' => $dsid, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Kicks off derivative functions based upon hooks and conditions. |
|
|
|
* Kicks off derivative functions based upon hooks and conditions. |
|
|
|