From e89d8b056853806f5e48ea8764f29237b687bdba Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Feb 2019 21:46:01 -0300 Subject: [PATCH] Bug 22417: Adapt the batch_record_modification tool Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Cook --- .../prog/en/modules/admin/background_jobs.tt | 15 +++ .../en/modules/tools/batch_record_modification.tt | 52 ++------ tools/batch_record_modification.pl | 131 +++------------------ 3 files changed, 38 insertions(+), 160 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt index 5d42f4ad08..098b7a3239 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt @@ -76,6 +76,21 @@ Bibliographic record [% m.biblionumber | html %] has not been modified. An error occurred on modifying it. [% CASE 'biblio_modified' %] Bibliographic record [% m.biblionumber | html %] has successfully been modified. +

Next steps

+
    +
  • New batch record modification + [% IF lists.count %] +
  • + + +
  • + [% END %] +
[% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index 66de6f4b1c..dfa649eaa6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -42,12 +42,8 @@ Bibliographic record [% message.biblionumber | html %] does not exist in the database. [% ELSIF message.code == 'authority_not_exists' %] Authority record [% message.authid | html %] does not exist in the database. - [% ELSIF message.code == 'biblio_not_modified' %] - Bibliographic record [% message.biblionumber | html %] has not been modified. An error occurred on modifying it. [% ELSIF message.code == 'authority_not_modified' %] Authority record [% message.authid | html %] has not been modified. An error occurred on modifying it. - [% ELSIF message.code == 'biblio_modified' %] - Bibliographic record [% message.biblionumber | html %] has successfully been modified. [% ELSIF message.code == 'authority_modified' %] Bibliographic record [% message.authid | html %] has successfully been modified. [% END %] @@ -147,7 +143,7 @@ [% ELSIF view == 'list' %] [% IF records %] -
+ - - - - Cancel + -
-
Job progress:
0%
-
-
[% ELSE %]
No records were modified. [% IF recordtype != 'biblio' %]New batch record modification[% END %]
[% END %] - [% ELSIF view == 'report' %] - [% IF report.total_records == report.total_success %] -
- All records have successfully been modified! [% IF recordtype != 'biblio' %]New batch record modification[% END %] -
- [% ELSE %] -
- [% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred. New batch record modification -
- [% END %] - - [% IF recordtype == 'biblio' %] -

Next steps

-
    -
  • New batch record modification - [% IF lists.count %] -
  • - - -
  • - [% END %] -
- [% END %] [% ELSIF view == 'errors' %] [% FOR error IN errors %] [% IF error == 'no_template_defined' %] @@ -284,6 +245,12 @@ [% END %] [% END %] + [% ELSIF view == 'enqueued' %] +
+ The job has been enqueued! It will be processed as soon as possible (FIXME - well, it could depend on a config?) + View detail of the enqueued job + | New batch record modification +
[% ELSE %]
No action defined for the template. @@ -291,7 +258,6 @@ [% END %]
-