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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-08-19 07:34:06 +00:00 committed by Tomas Cohen Arazi
parent 7b355ee54b
commit 52dc337ced
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 14 additions and 12 deletions

View file

@ -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;

View file

@ -3,31 +3,32 @@
[% BLOCK report %]
[% SET report = job.report %]
[% IF report %]
<div class="dialog message">Success: Import reversed</div>
<div class="dialog message">Success: Import reverted</div>
<table>
<tr>
<td>Number of records deleted</td>
<td>[% report.num_deleted | html %]</td>
</tr>
[% IF ( report.record_type == 'biblio' ) %]
<tr>
<td>Number of items deleted</td>
<td>[% report.num_items_deleted | html %]</td>
</tr>
<tr>
<td>Number of records not deleted due to items on loan</td>
<td>[% report.num_errors | html %]</td>
</tr>
[% END %]
<tr>
<td>Number of records changed back</td>
<td>Number of records reverted</td>
<td>[% report.num_reverted | html %]</td>
</tr>
<tr>
<td>Number of records ignored</td>
<td>[% report.num_ignored | html %]</td>
</tr>
<tr>
<td>Number of items deleted</td>
<td>[% report.num_items_deleted | html %]</td>
</tr>
<tr>
<td>Number of errors</td>
<td>[% report.num_errors | html %]</td>
</tr>
</table>
<p>
<a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | url %]">Manage reverted batch</a>
</p>
[% END %]
[% END %]