@@ -, +, @@ --- .../background_jobs/update_elastic_index.inc | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc @@ -1,18 +1,19 @@ [% USE Koha %] +[% SET report = job.decoded_data %] [% BLOCK report %] - [% SET report = job.report %] - [% IF report %] - [% IF report.total_records == 1 %] - [% IF report.total_success == 1 %] -
The records have successfully been reindexed!
- [% END %] + [% IF job.status == 'finished' %] + [% IF report %] +
+ [% report.record_ids.size | html %] records have successfully been reindexed. +
[% ELSE %]
- [% report.total_success | html %] / [% report.total_records | html %] records have successfully been reindexed. Some errors occurred. - [% IF job.status == 'cancelled' %]The job has been cancelled before it finished.[% END %] + Job data could not be read, see the logs for details
[% END %] + [% ELSIF job.status == 'cancelled' %] + The job has been cancelled before it finished. [% END %] [% END %] @@ -32,7 +33,16 @@ [% END %] [% END %] + [% IF report %] +

Record ids:

+ + [% END %] [% END %] + [% BLOCK js %] [% END %] --