From b3e7e3dba277010f5b2ddfd4a73b202743fe3f34 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 24 Jun 2019 17:09:36 +0000 Subject: [PATCH] Bug 23196: Reindent tools/batch_record_modification.tt This patch re-indents the template for batch record modifications. It makes only whitespace changes. It should have no effect on the behavior of the page. To test, apply the patch and perform a diff against master using the '-w' flag: git diff -w origin/master There should be no changes reported. --- .../en/modules/tools/batch_record_modification.tt | 650 ++++++++++----------- 1 file changed, 325 insertions(+), 325 deletions(-) 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 bd58fd2..729894d 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 @@ -8,277 +8,277 @@ -[% INCLUDE 'header.inc' %] -[% INCLUDE 'cat-search.inc' %] + [% INCLUDE 'header.inc' %] + [% INCLUDE 'cat-search.inc' %] - + -
-
-
-
+
+
+
+
-

Batch record modification

+

Batch record modification

- [% IF ( messages ) %] -
+ [% IF ( messages ) %] +
- [% FOREACH message IN messages %] - [% IF message.type == 'success' %] -
- [% ELSIF message.type == 'warning' %] -
- [% ELSIF message.type == 'error' %] -
- [% END %] - [% IF message.code == 'no_action_defined_for_the_template' %] - The selected template (id=[% message.mmtid | html %]) does not exist or no action is defined. - [% ELSIF message.code == 'biblio_not_exists' %] - 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 %] - [% IF message.error %] - (The error was: [% message.error | html %]. See the Koha logfile for more information). - [% END %] -
- [% END %] + [% FOREACH message IN messages %] + [% IF message.type == 'success' %] +
+ [% ELSIF message.type == 'warning' %] +
+ [% ELSIF message.type == 'error' %] +
+ [% END %] + [% IF message.code == 'no_action_defined_for_the_template' %] + The selected template (id=[% message.mmtid | html %]) does not exist or no action is defined. + [% ELSIF message.code == 'biblio_not_exists' %] + 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 %] + [% IF message.error %] + (The error was: [% message.error | html %]. See the Koha logfile for more information). + [% END %] +
+ [% END %] -
- [% END %] +
+ [% END %] - [% IF view == 'form' %] -
-
- Record type -
    -
  1. -
  2. -
-
+ [% IF view == 'form' %] + +
+ Record type +
    +
  1. +
  2. +
+
-

+

-
- +
+ -
-
- Use a file -
    -
  1. -
-
-   -
+
+
+ Use a file +
    +
  1. +
+
+   +
- [% IF lists.count %] -
-
- Or select a list of records -
    -
  1. - - -
  2. -
-
-   -
- [% END %] + [% IF lists.count %] +
+
+ Or select a list of records +
    +
  1. + + +
  2. +
+
+   +
+ [% END %] -
-
- Or enter a list of record numbers -
    -
  1. - - -
  2. -
-
-   -
+
+
+ Or enter a list of record numbers +
    +
  1. + + +
  2. +
+
+   +
-
+
-
- Use MARC Modification Template: -
    -
  1. - - -
  2. -
-
-
- - - Cancel -
-
- [% ELSIF view == 'list' %] - [% IF records %] -
- - - - [% IF recordtype == 'biblio' %] - - - - - - - - - - - - [% FOR biblio IN records %] - - - - - - - [% END %] - -
 BiblionumberTitle 
[% biblio.biblionumber | html %][% biblio.title | html %] - Show MARC -
-
Reminder: this action will modify all selected biblios!
- [% ELSE %] - - - - - - - - - - - - [% FOR authority IN records %] - - - - - - [% END %] - -
AuthidSummary 
[% authority.authid | html %][% PROCESS authresult summary=authority.summary %] Show MARC -
-
Reminder: this action will modify all selected authorities!
- [% END %] -
- - - - - - Cancel -
-
-
Job progress:
0%
-
-
-
- [% ELSE %] -
- No records were modified. New batch record modification -
- [% END %] - [% ELSIF view == 'report' %] - [% IF report.total_records == report.total_success %] -
- All records have successfully been modified! New batch record modification -
- [% ELSE %] -
- [% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred. New batch record modification -
- [% END %] - [% ELSIF view == 'errors' %] - [% FOR error IN errors %] - [% IF error == 'no_template_defined' %] -
- No MARC modification template is defined. You have to create at least one template for using this tool. -
- [% END %] - [% END %] - [% ELSE %] -
- No action defined for the template. -
- [% END %] -
-
+
+ Use MARC Modification Template: +
    +
  1. + + +
  2. +
+
+
+ + + Cancel +
+ + [% ELSIF view == 'list' %] + [% IF records %] +
+ + + + [% IF recordtype == 'biblio' %] + + + + + + + + + + + + [% FOR biblio IN records %] + + + + + + + [% END %] + +
 BiblionumberTitle 
[% biblio.biblionumber | html %][% biblio.title | html %] + Show MARC +
+
Reminder: this action will modify all selected biblios!
+ [% ELSE %] + + + + + + + + + + + + [% FOR authority IN records %] + + + + + + [% END %] + +
AuthidSummary 
[% authority.authid | html %][% PROCESS authresult summary=authority.summary %] Show MARC +
+
Reminder: this action will modify all selected authorities!
+ [% END %] +
+ + + + + + Cancel +
+
+
Job progress:
0%
+
+
+
+ [% ELSE %] +
+ No records were modified. New batch record modification +
+ [% END %] + [% ELSIF view == 'report' %] + [% IF report.total_records == report.total_success %] +
+ All records have successfully been modified! New batch record modification +
+ [% ELSE %] +
+ [% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred. New batch record modification +
+ [% END %] + [% ELSIF view == 'errors' %] + [% FOR error IN errors %] + [% IF error == 'no_template_defined' %] +
+ No MARC modification template is defined. You have to create at least one template for using this tool. +
+ [% END %] + [% END %] + [% ELSE %] +
+ No action defined for the template. +
+ [% END %] +
+
-
- -
-
+
+ +
+
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] @@ -288,90 +288,90 @@