Browse Source

derivatives in batches so derivatives that need to batch can run

pull/489/head
willtp87 11 years ago
parent
commit
3f4cdaea9d
  1. 20
      includes/derivatives.inc

20
includes/derivatives.inc

@ -21,9 +21,25 @@ function islandora_run_derivatives(AbstractObject $object, $dsid) {
islandora_derivative_logging($logging_results); islandora_derivative_logging($logging_results);
} }
else { else {
islandora_do_batch_derivatives($object, array( batch_set(
// Title won't show for batch in a batch.
array(
'init_message' => t('Preparing derivatives for @label', array('@label' => $object->label)),
'error_message' => t('An error occured creating derivatives.'),
'progress_message' => t(
'Creating derivatives for @label <br/>Time elapsed: @elapsed <br/>
Estimated time remaining @estimate.',
array('@label' => $object->label)
),
'file' => drupal_get_path('module', 'islandora') . '/includes/regenerate_derivatives.form.inc',
'operations' => islandora_do_batch_derivatives(
$object,
array(
'source_dsid' => $dsid, 'source_dsid' => $dsid,
)); )
),
)
);
} }
} }

Loading…
Cancel
Save