Bugzilla – Attachment 142579 Details for
Bug 31694
MARC overlay rules presets don't change anything if presets are translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31694: MARC overlay rules presets don't change anything if presets are translated
Bug-31694-MARC-overlay-rules-presets-dont-change-a.patch (text/plain), 5.16 KB, created by
Katrin Fischer
on 2022-10-24 22:44:28 UTC
(
hide
)
Description:
Bug 31694: MARC overlay rules presets don't change anything if presets are translated
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-10-24 22:44:28 UTC
Size:
5.16 KB
patch
obsolete
>From 3254b95f2620ed6662d20559b0198e50cbcb93a8 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Wed, 5 Oct 2022 15:48:46 -0400 >Subject: [PATCH] Bug 31694: MARC overlay rules presets don't change anything > if presets are translated > >This patch corrects option value names in MARC overlay rules to prevent >them from being translated. > >To test: >1. Install a new language >1.1. In a terminal, run the following commands >gulp po:update >cd misc/translator >./translate install xx-XX >1.2. Go to Administration > Global system preferences >1.3. Search for language >1.4. In the language syspref check the box for the language you just installed >1.5. Save >2. In the staff interface in English, go to Administration > Record >overlay rules >3. In the column 'Preset' try the various options, note that the >'Added', 'Appended', 'Removed', and 'Deleted' settings change depending >on the chosen preset >4. Change the interface language >5. Redo step 3, notice that if the preset name is translated, the other >settings don't change >6. Apply patch >7. Redo step 3, the presets should now change the settings >--- > .../en/modules/admin/marc-overlay-rules.tt | 30 +++++++++---------- > 1 file changed, 15 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >index 49e9441c88..030d79e28a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >@@ -106,11 +106,11 @@ > <th> > <select name="preset"> > <option value="" selected>Custom</option> >- <option value="Protect">Protect</option> >- <option value="Overwrite">Overwrite</option> >- <option value="Add new">Add new</option> >- <option value="Add and append">Add and append</option> >- <option value="Protect from deletion">Protect from deletion</option> >+ <option value="protect">Protect</option> >+ <option value="overwrite">Overwrite</option> >+ <option value="add">Add new</option> >+ <option value="addappend">Add and append</option> >+ <option value="protectfromdeletion">Protect from deletion</option> > </select> > </th> > <th class="rule-operation-action-edit"> >@@ -171,11 +171,11 @@ > <th> > <select name="preset"> > <option value="" selected>Custom</option> >- <option value="Protect">Protect</option> >- <option value="Overwrite">Overwrite</option> >- <option value="Add new">Add new</option> >- <option value="Add and append">Add and append</option> >- <option value="Protect from deletion">Protect from deletion</option> >+ <option value="protect">Protect</option> >+ <option value="overwrite">Overwrite</option> >+ <option value="add">Add new</option> >+ <option value="addappend">Add and append</option> >+ <option value="protectfromdeletion">Protect from deletion</option> > </select> > </th> > <td class="rule-operation-action-edit"> >@@ -368,31 +368,31 @@ > })); > > var overlay_rules_presets = {}; >- overlay_rules_presets[_("Protect")] = { >+ overlay_rules_presets[_("protect")] = { > 'add': 0, > 'append': 0, > 'remove': 0, > 'delete': 0 > }; >- overlay_rules_presets[_("Overwrite")] = { >+ overlay_rules_presets[_("overwrite")] = { > 'add': 1, > 'append': 1, > 'remove': 1, > 'delete': 1 > }; >- overlay_rules_presets[_("Add new")] = { >+ overlay_rules_presets[_("add")] = { > 'add': 1, > 'append': 0, > 'remove': 0, > 'delete': 0 > }; >- overlay_rules_presets[_("Add and append")] = { >+ overlay_rules_presets[_("addappend")] = { > 'add': 1, > 'append': 1, > 'remove': 0, > 'delete': 0 > }; >- overlay_rules_presets[_("Protect from deletion")] = { >+ overlay_rules_presets[_("protectfromdeletion")] = { > 'add': 1, > 'append': 1, > 'remove': 1, >-- >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 31694
:
141401
|
142579
|
142580
|
142598
|
144407
|
144408
|
144409
|
149601
|
149602
|
155123
|
155124
|
155125
|
155126
|
159121
|
159122
|
159123
|
159124
|
159192
|
159250
|
159251
|
159252
|
159253
|
160194
|
160195
|
160196
|
160197
|
160198