diff --git a/roblib_update_book_ocr.module b/roblib_update_book_ocr.module index 2ed7577..fdfd56b 100644 --- a/roblib_update_book_ocr.module +++ b/roblib_update_book_ocr.module @@ -86,7 +86,7 @@ function roblib_update_book_ocr_batch($pages, $object) { ]; } 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['message'] = t('Retrieving OCR for page !p %pid', [ - '!p' => $context['results']['pages_processed'], + $context['message'] = t('Retrieving OCR for page %pid', [ '%pid' => $page, ]); 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); } catch (Exception $e) { //TODO something - $context['message'] = t('Error retrieving OCR for page !p %pid', [ - '!p' => $context['results']['pages_processed'], + $context['message'] = t('Error retrieving OCR for page %pid', [ '%pid' => $page, ]); watchdog('roblib_update_book_ocr', $e->getMessage(), NULL, WATCHDOG_ERROR, NULL);