Bug 27421: (QA follow-up) Include manage URL and item counts for import commit

Test plan:
Run an stage and import.
Check import commit job.
Click to managed 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:16:22 +00:00 committed by Tomas Cohen Arazi
parent 848813bccf
commit 7b355ee54b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 17 additions and 15 deletions

View file

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

View file

@ -17,7 +17,6 @@
<td>Number of records ignored</td>
<td>[% report.num_ignored | html %]</td>
</tr>
[% IF ( report.record_type == 'biblio' ) %]
<tr>
<td>Number of items added</td>
<td>[% report.num_items_added | html %]</td>
@ -27,11 +26,13 @@
<td>[% report.num_items_replaced | html %]</td>
</tr>
<tr>
<td>Number of items ignored because of duplicate barcode</td>
<td>Number of items ignored</td>
<td>[% report.num_items_errored | html %]</td>
</tr>
[% END %]
</table>
<p>
<a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | url %]">Manage imported batch</a>
</p>
[% END %]
[% END %]