From 89ab601a6ac6178d911b8cda23face93794d2347 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 20 Oct 2022 17:59:19 +0000 Subject: [PATCH] Bug 31811: Add 'page-section' to MARC modification templates pages This patch adds "page-section" divs to the MARC modification templates template so that sections are properly defined and content has adequate contrast. Note: The patch includes indentation changes, so please ignore whitespace when checking the diff. To test, apply the patch and go to Cataloging -> MARC modification templates. The main content should be surrounded by a white box whether you're looking at the list of templates, the the action add/edit form. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../tools/marc_modification_templates.tt | 195 +++++++++--------- 1 file changed, 99 insertions(+), 96 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 56883bb135..436c726ba1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -87,123 +87,126 @@

MARC modification templates [% template_id | html %]

- - - - - - - - - - [% FOREACH TemplatesLoo IN TemplatesLoop %] - - - - - - [% END %] - -
IdTemplateActions
[% TemplatesLoo.template_id | html %][% TemplatesLoo.name | html %] - Edit actions - Duplicate - Delete -
- - [% ELSE %] - -

Actions for [% template_name | html %]

- - [% IF ( ActionsLoop ) %] - - +
+
- - - - - - + + + - [% FOREACH ActionsLoo IN ActionsLoop %] + [% FOREACH TemplatesLoo IN TemplatesLoop %] + + + + [% END %] + +
Change orderRankActionDescription  IdTemplateActions
[% TemplatesLoo.template_id | html %][% TemplatesLoo.name | html %] - - - - - - - + Edit actions + Duplicate + Delete +
+ - - - + [% ELSE %] - - - - +

Actions for [% template_name | html %]

- [% ActionsLoo.ordering | html %] - - [% IF ( ActionsLoo.action_delete_field ) %] Delete [% END %] - [% IF ( ActionsLoo.action_add_field ) %] Add new [% END %] - [% IF ( ActionsLoo.action_update_field ) %] Update existing or add new [% END %] - [% IF ( ActionsLoo.action_move_field ) %] Move [% END %] - [% IF ( ActionsLoo.action_copy_field ) %] Copy [% END %] - [% IF ( ActionsLoo.action_copy_and_replace_field ) %] Copy and replace [% END %] - - [% UNLESS ( ActionsLoo.action_update_field ) %] - [% IF ( ActionsLoo.field_number ) %] - 1st + [% IF ( ActionsLoop ) %] +
+ + + + + + + + + + + + + [% FOREACH ActionsLoo IN ActionsLoop %] + + + + + - - - - - [% END # /FOREACH ActionsLoo %] - -
Change orderRankActionDescription  
+ + + + + + + + + + + + + + + + [% ActionsLoo.ordering | html %] + [% IF ( ActionsLoo.action_delete_field ) %] Delete [% END %] + [% IF ( ActionsLoo.action_add_field ) %] Add new [% END %] + [% IF ( ActionsLoo.action_update_field ) %] Update existing or add new [% END %] + [% IF ( ActionsLoo.action_move_field ) %] Move [% END %] + [% IF ( ActionsLoo.action_copy_field ) %] Copy [% END %] + [% IF ( ActionsLoo.action_copy_and_replace_field ) %] Copy and replace [% END %] + + [% UNLESS ( ActionsLoo.action_update_field ) %] + [% IF ( ActionsLoo.field_number ) %] + 1st + [% END %] [% END %] - [% END %] - field + field - [% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield.length ) %]$[% ActionsLoo.from_subfield | html %][% END %] + [% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield.length ) %]$[% ActionsLoo.from_subfield | html %][% END %] - [% IF ( ActionsLoo.field_value ) %] - with value [% ActionsLoo.field_value | html %] - [% END %] + [% IF ( ActionsLoo.field_value ) %] + with value [% ActionsLoo.field_value | html %] + [% END %] - [% IF ( ActionsLoo.to_field ) %] - to [% ActionsLoo.to_field | html %][% IF ( ActionsLoo.to_subfield.length ) %]$[% ActionsLoo.to_subfield | html %][% END %] + [% IF ( ActionsLoo.to_field ) %] + to [% ActionsLoo.to_field | html %][% IF ( ActionsLoo.to_subfield.length ) %]$[% ActionsLoo.to_subfield | html %][% END %] - [% IF ( ActionsLoo.to_regex_search ) %] - using RegEx s/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %] + [% IF ( ActionsLoo.to_regex_search ) %] + using RegEx s/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %] + [% END %] [% END %] - [% END %] - [% IF ( ActionsLoo.conditional ) %] - [% IF ( ActionsLoo.conditional_if ) %] if [% END %] - [% IF ( ActionsLoo.conditional_unless ) %] unless [% END %] + [% IF ( ActionsLoo.conditional ) %] + [% IF ( ActionsLoo.conditional_if ) %] if [% END %] + [% IF ( ActionsLoo.conditional_unless ) %] unless [% END %] - [% ActionsLoo.conditional_field | html %][% IF ( ActionsLoo.conditional_subfield.length ) %]$[% ActionsLoo.conditional_subfield | html %][% END %] + [% ActionsLoo.conditional_field | html %][% IF ( ActionsLoo.conditional_subfield.length ) %]$[% ActionsLoo.conditional_subfield | html %][% END %] - [% IF ( ActionsLoo.conditional_comparison_exists ) %] exists [% END %] - [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] does not exist [% END %] - [% IF ( ActionsLoo.conditional_comparison_equals ) %] matches [% END %] - [% IF ( ActionsLoo.conditional_comparison_not_equals ) %] does not match [% END %] + [% IF ( ActionsLoo.conditional_comparison_exists ) %] exists [% END %] + [% IF ( ActionsLoo.conditional_comparison_not_exists ) %] does not exist [% END %] + [% IF ( ActionsLoo.conditional_comparison_equals ) %] matches [% END %] + [% IF ( ActionsLoo.conditional_comparison_not_equals ) %] does not match [% END %] - [% IF ( ActionsLoo.conditional_regex ) %] RegEx m/[% END %][% ActionsLoo.conditional_value | html %][% IF ( ActionsLoo.conditional_regex ) %]/[% END %] - [% END %] - [% ActionsLoo.description | html %] - Edit - - Delete -
+ [% IF ( ActionsLoo.conditional_regex ) %] RegEx m/[% END %][% ActionsLoo.conditional_value | html %][% IF ( ActionsLoo.conditional_regex ) %]/[% END %] + [% END %] + + [% ActionsLoo.description | html %] + + Edit + + + Delete + + + [% END # /FOREACH ActionsLoo %] + + +
[% ELSE %]

There are no defined actions for this template.

[% END # /IF ActionsLoop %] -- 2.20.1