Browse Source

removed call to batch process

master
ppound 5 years ago
parent
commit
0b3ca8ff81
  1. 8
      roblib_update_book_ocr.module

8
roblib_update_book_ocr.module

@ -86,7 +86,7 @@ function roblib_update_book_ocr_batch($pages, $object) {
]; ];
} }
batch_set($batch); batch_set($batch);
batch_process('islandora/object/' . $object->id); //batch_process('islandora/object/' . $object->id);
} }
/** /**
@ -112,8 +112,7 @@ function _roblib_update_book_ocr_update_book($page, $total, $parent_pid, &$conte
$context['results']['parent'] = $parent_pid; $context['results']['parent'] = $parent_pid;
} }
$context['message'] = t('Retrieving OCR for page !p %pid', [ $context['message'] = t('Retrieving OCR for page %pid', [
'!p' => $context['results']['pages_processed'],
'%pid' => $page, '%pid' => $page,
]); ]);
try { try {
@ -121,8 +120,7 @@ function _roblib_update_book_ocr_update_book($page, $total, $parent_pid, &$conte
$context['results']['ocr'] .= roblib_update_book_ocr_get_ocr($page); $context['results']['ocr'] .= roblib_update_book_ocr_get_ocr($page);
} catch (Exception $e) { } catch (Exception $e) {
//TODO something //TODO something
$context['message'] = t('Error retrieving OCR for page !p %pid', [ $context['message'] = t('Error retrieving OCR for page %pid', [
'!p' => $context['results']['pages_processed'],
'%pid' => $page, '%pid' => $page,
]); ]);
watchdog('roblib_update_book_ocr', $e->getMessage(), NULL, WATCHDOG_ERROR, NULL); watchdog('roblib_update_book_ocr', $e->getMessage(), NULL, WATCHDOG_ERROR, NULL);

Loading…
Cancel
Save