From 0b3ca8ff81b7581f4bd138020bc003fbca51c846 Mon Sep 17 00:00:00 2001 From: ppound Date: Mon, 1 Jun 2020 09:38:18 -0300 Subject: [PATCH] removed call to batch process --- roblib_update_book_ocr.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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);