Bugzilla – Attachment 141925 Details for
Bug 31718
Change the IF ELSE values in MARC subfields structure breadcrumbs to facilitate translation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31718: Others facilitate translation in frameworks administration
Bug-31718-Others-facilitate-translation-in-framewo.patch (text/plain), 7.32 KB, created by
Katrin Fischer
on 2022-10-15 17:31:13 UTC
(
hide
)
Description:
Bug 31718: Others facilitate translation in frameworks administration
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-10-15 17:31:13 UTC
Size:
7.32 KB
patch
obsolete
>From b8557cf4bdddcfc3290e6215200ed4e5fba3cf5b Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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 > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 c47840ba8e..c33699c945 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 >@@ -374,7 +374,11 @@ > [% END # /IF ( delete_confirm ) %] > > [% IF ( else ) %] >- <h1>MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode | html %])[% ELSE %](default framework)[% END %]</h1> >+ [% IF ( frameworkcode ) %] >+ <h1>MARC subfield structure admin for [% tagfield | html %] (framework [% frameworkcode | html %])</h1> >+ [% ELSE %] >+ <h1>MARC subfield structure admin for [% tagfield | html %] (default framework)</h1> >+ [% END %] > > <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p> > <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p> >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 adee3aec59..e282707b07 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -43,7 +43,7 @@ MARC frameworks › Administration › Koha > <li> > <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]"> > [% IF framework %] >- [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) >+ <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span> > [% ELSE %] > <span>Default MARC framework</span> > [% END%] >@@ -52,10 +52,10 @@ MARC frameworks › Administration › Koha > <li> > <a href="#" aria-current="page"> > [% IF heading_add_tag_p %] >- <span>Add tag</span> >+ <span>Add tag [% searchfield | html %]</span> > [% ELSE %] >- <span>Modify tag</span> >- [% END %] [% searchfield | html %] >+ <span>Modify tag [% searchfield | html %]</span> >+ [% END %] > </a> > </li> > >@@ -63,9 +63,9 @@ MARC frameworks › Administration › Koha > <li> > <a href="#" aria-current="page"> > [% IF framework %] >- [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) >+ <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span> > [% ELSE %] >- Default MARC framework >+ <span>Default MARC framework</span> > [% END %] > </a> > </li> >@@ -74,15 +74,15 @@ MARC frameworks › Administration › Koha > <li> > <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]"> > [% IF framework %] >- [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) >+ <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span> > [% ELSE %] >- Default MARC framework >+ <span>Default MARC framework</span> > [% END %] > </a> > </li> > <li> > <a href="#" aria-current="page"> >- Confirm deletion of tag '[% searchfield | html %]' >+ Confirm deletion of tag [% searchfield | html %] > </a> > </li> > >@@ -90,9 +90,9 @@ MARC frameworks › Administration › Koha > <li> > <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]"> > [% IF framework %] >- [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) >+ <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span> > [% ELSE %] >- Default MARC framework >+ <span>Default MARC framework</span> > [% END %] > </a> > </li> >@@ -116,7 +116,11 @@ MARC frameworks › Administration › Koha > <a class="btn btn-default" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% framework.frameworkcode | uri %]"><i class="fa fa-plus"></i> New tag</a> > </div>[% END %] > >-<h1>MARC Framework for [% IF framework %][% framework.frameworktext | html %] ([% framework.frameworkcode | html %])[% ELSE %]default MARC framework[% END %]</h1> >+[% IF framework %] >+ <h1>MARC Framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</h1> >+[% ELSE %] >+ <h1>MARC Framework for default MARC framework</h1> >+[% END %] > > [% IF ( add_form ) %] > >@@ -285,9 +289,9 @@ MARC frameworks › Administration › Koha > [% END %] > [% END %] > </td> >- <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td> >- <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td> >- <td>[% IF ( loo.important ) %]Yes[% ELSE %]No[% END %]</td> >+ <td>[% IF ( loo.repeatable ) %]<span>Yes</span>[% ELSE %]<span>No</span>[% END %]</td> >+ <td>[% IF ( loo.mandatory ) %]<span>Yes</span>[% ELSE %]<span>No</span>[% END %]</td> >+ <td>[% IF ( loo.important ) %]<span>Yes</span>[% ELSE %]<span>No</span>[% END %]</td> > <td>[% loo.authorised_value | html %]</td> > <td>[% loo.ind1_defaultvalue | html %]</td> > <td>[% loo.ind2_defaultvalue | html %]</td> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31718
:
141526
|
141536
|
141556
|
141557
|
141924
| 141925