From 5b02e7ae91455094fe7d542f22a8dc677daf0cc8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Aug 2022 07:16:22 +0000 Subject: [PATCH] Bug 27421: (QA follow-up) Include manage URL and item counts for import commit Content-Type: text/plain; charset=utf-8 Test plan: Run an stage and import. Check import commit job. Click to managed batch. Signed-off-by: Marcel de Rooy --- Koha/BackgroundJob/MARCImportCommitBatch.pm | 3 +- .../marc_import_commit_batch.inc | 29 ++++++++++--------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Koha/BackgroundJob/MARCImportCommitBatch.pm b/Koha/BackgroundJob/MARCImportCommitBatch.pm index 6cd5292023..57faa99c51 100644 --- a/Koha/BackgroundJob/MARCImportCommitBatch.pm +++ b/Koha/BackgroundJob/MARCImportCommitBatch.pm @@ -86,7 +86,8 @@ sub process { num_items_added => $num_items_added, num_items_replaced => $num_items_replaced, num_items_errored => $num_items_errored, - num_ignored => $num_ignored + num_ignored => $num_ignored, + import_batch_id => $import_batch_id, }; my $data = $self->decoded_data; $data->{messages} = \@messages; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_commit_batch.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_commit_batch.inc index ff32dbcc56..3d358f9b83 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_commit_batch.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/marc_import_commit_batch.inc @@ -17,21 +17,22 @@ Number of records ignored [% report.num_ignored | html %] - [% IF ( report.record_type == 'biblio' ) %] - - Number of items added - [% report.num_items_added | html %] - - - Number of items replaced - [% report.num_items_replaced | html %] - - - Number of items ignored because of duplicate barcode - [% report.num_items_errored | html %] - - [% END %] + + Number of items added + [% report.num_items_added | html %] + + + Number of items replaced + [% report.num_items_replaced | html %] + + + Number of items ignored + [% report.num_items_errored | html %] + +

+ Manage imported batch +

[% END %] [% END %] -- 2.20.1