From bcb63551daec127a2e95081aa444c12675775b6b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 25 Jun 2020 11:34:25 +0000 Subject: [PATCH] Bug 24899: (follow-up) Add markup comments This patch adds comments to the template to highlight the markup structure. This patch should have no effect on the interface or functionality. --- .../prog/en/modules/admin/matching-rules.tt | 97 +++++++++++----------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt index af33ecb32b..a5f15c4c01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt @@ -2,17 +2,18 @@ [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration › Record matching rules -[% IF ( matching_rule_form ) %] - [% IF ( edit_matching_rule ) %] - › Modify record matching rule - [% ELSE %] - › Add record matching rule +<title> + Koha › Administration › Record matching rules + [% IF ( matching_rule_form ) %] + [% IF ( edit_matching_rule ) %] + › Modify record matching rule + [% ELSE %] + › Add record matching rule + [% END %] + [% END %] + [% IF ( delete_matching_rule_form ) %] + › Confirm deletion of record matching rule "[% code | html %]" [% END %] -[% END %] -[% IF ( delete_matching_rule_form ) %] - › Confirm deletion of record matching rule "[% code | html %]" -[% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -80,7 +81,7 @@ [% IF ( delete_matching_rule_form ) %] › Confirm deletion of record matching rule "[% code | html %]" [% END %] - +
@@ -129,7 +130,7 @@ Required - +

Match points

@@ -193,13 +194,13 @@ [% END %] -
- [% END %] - + + [% END #/FOREACH component %] +
-
- [% END %] - [% ELSE %] +
+ [% END # /FOREACH matchpoint %] + [% ELSE # IF ( edit_matching_rule ) %]
Match point 1 | Add match point | Remove this match point @@ -237,12 +238,12 @@ [% PROCESS norms_select selected_norm="none" id="mp_1_c_1_n_1_norm" name="mp_1_c_1_n_1_norm" %] -
- + +
-
- [% END %] - + + [% END # /IF ( edit_matching_rule ) %] +

Required match checks

@@ -291,8 +292,8 @@ [% END %] -
- [% END %] + + [% END # /FOREACH src_component %] [% FOREACH tgt_component IN matchcheck.tgt_components %]
@@ -322,13 +323,13 @@ [% END %] -
- [% END %] - + + [% END # /FOREACH tgt_component %] +
- - [% END %] - [% ELSE %] + + [% END # /FOREACH matchcheck %] + [% ELSE # IF ( edit_matching_rule ) %]
Match check 1 | Add match check | Remove this match check @@ -383,11 +384,11 @@ [% PROCESS norms_select selected_norm="none" id="mc_1_tgt_c_1_n_1_norm" name="mc_1_tgt_c_1_n_1_norm" %] -
- + +
-
- [% END %] + + [% END # /IF ( edit_matching_rule ) %]
[% IF ( edit_matching_rule ) %] @@ -396,9 +397,9 @@ [% END %] Cancel -
+ - [% END %] + [% END # /IF ( matching_rule_form ) %] [% IF ( delete_matching_rule_form ) %]
@@ -412,7 +413,7 @@
- [% END %] + [% END # /IF ( delete_matching_rule_form ) %] [% IF ( display_list ) %] @@ -453,10 +454,10 @@ [% ELSE %]

There are no saved matching rules.

- [% END %] + [% END # /IF ( available_matching_rules ) %]
[% pagination_bar | $raw %]
- [% END %] + [% END # /IF ( display_list ) %] [% IF ( matching_rule_form ) %] + - [% END %] + + [% END # /IF ( matching_rule_form ) %] -- 2.11.0