From e6728be7dfc927528f3eb94975a85c187329798e Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 7 Oct 2022 15:08:44 -1000 Subject: [PATCH] Bug 31718: Others facilitate translation in frameworks administration Some other IF/ELSE/END can be changed to facilitate translation Test plan : Always test with default framework and with another framework and compare with and without patch 1) View subfields of field => Check the h1 in page 2) Perform actions on a field (create, modify, delete) => Check breadcrumbs and h1 in page 3) View the framework table => Check columns Repeatable, Mandatory, Important --- .../modules/admin/marc_subfields_structure.tt | 6 +++- .../prog/en/modules/admin/marctagstructure.tt | 34 +++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 9d84dd2c97..1af75cc897 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -371,7 +371,11 @@ [% END # /IF ( delete_confirm ) %] [% IF ( else ) %] -

MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode | html %])[% ELSE %](default framework)[% END %]

+ [% IF ( frameworkcode ) %] +

MARC subfield structure admin for [% tagfield | html %] (framework [% frameworkcode | html %])

+ [% ELSE %] +

MARC subfield structure admin for [% tagfield | html %] (default framework)

+ [% END %]

This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.

The column 'Koha field' shows that the subfield is linked with a Koha field.

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index 94dd186424..92bfe7516a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -41,7 +41,7 @@ MARC frameworks › Administration › Koha
  • [% IF framework %] - [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) + [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] Default MARC framework [% END%] @@ -50,10 +50,10 @@ MARC frameworks › Administration › Koha
  • [% IF heading_add_tag_p %] - Add tag + Add tag [% searchfield | html %] [% ELSE %] - Modify tag - [% END %] [% searchfield | html %] + Modify tag [% searchfield | html %] + [% END %]
  • @@ -61,9 +61,9 @@ MARC frameworks › Administration › Koha
  • [% IF framework %] - [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) + [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] - Default MARC framework + Default MARC framework [% END %]
  • @@ -72,15 +72,15 @@ MARC frameworks › Administration › Koha
  • [% IF framework %] - [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) + [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] - Default MARC framework + Default MARC framework [% END %]
  • - Confirm deletion of tag '[% searchfield | html %]' + Confirm deletion of tag [% searchfield | html %]
  • @@ -88,9 +88,9 @@ MARC frameworks › Administration › Koha
  • [% IF framework %] - [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) + [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) [% ELSE %] - Default MARC framework + Default MARC framework [% END %]
  • @@ -113,7 +113,11 @@ MARC frameworks › Administration › Koha New tag [% END %] -

    MARC Framework for [% IF framework %][% framework.frameworktext | html %] ([% framework.frameworkcode | html %])[% ELSE %]default MARC framework[% END %]

    +[% IF framework %] +

    MARC Framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])

    +[% ELSE %] +

    MARC Framework for default MARC framework

    +[% END %] [% IF ( add_form ) %] @@ -282,9 +286,9 @@ MARC frameworks › Administration › Koha [% END %] [% END %] - [% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %] - [% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %] - [% IF ( loo.important ) %]Yes[% ELSE %]No[% END %] + [% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %] + [% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %] + [% IF ( loo.important ) %]Yes[% ELSE %]No[% END %] [% loo.authorised_value | html %] [% loo.ind1_defaultvalue | html %] [% loo.ind2_defaultvalue | html %] -- 2.35.4