From 52dc337ced743becc00209ab5a1806b891fe2998 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Aug 2022 07:34:06 +0000 Subject: [PATCH] Bug 27421: (QA follow-up) Similar changes for revert commit Test plan: Look at job results when reverting imported batch. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/BackgroundJob/MARCImportRevertBatch.pm | 1 + .../marc_import_revert_batch.inc | 25 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Koha/BackgroundJob/MARCImportRevertBatch.pm b/Koha/BackgroundJob/MARCImportRevertBatch.pm index a1cdaeb28b..bd125a07e8 100644 --- a/Koha/BackgroundJob/MARCImportRevertBatch.pm +++ b/Koha/BackgroundJob/MARCImportRevertBatch.pm @@ -83,6 +83,7 @@ sub process { num_errors => $num_errors, num_reverted => $num_reverted, num_ignored => $num_ignored, + import_batch_id => $import_batch_id, }; my $data = $self->decoded_data; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_revert_batch.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_revert_batch.inc index 2ad8117ded..0ba816ddaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_revert_batch.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_revert_batch.inc @@ -3,31 +3,32 @@ [% BLOCK report %] [% SET report = job.report %] [% IF report %] -
Success: Import reversed
+
Success: Import reverted
- [% IF ( report.record_type == 'biblio' ) %] - - - - - - - - - [% END %] - + + + + + + + + +
Number of records deleted [% report.num_deleted | html %]
Number of items deleted[% report.num_items_deleted | html %]
Number of records not deleted due to items on loan[% report.num_errors | html %]
Number of records changed backNumber of records reverted [% report.num_reverted | html %]
Number of records ignored [% report.num_ignored | html %]
Number of items deleted[% report.num_items_deleted | html %]
Number of errors[% report.num_errors | html %]
+

+ Manage reverted batch +

[% END %] [% END %] -- 2.39.5