Bugzilla – Attachment 144408 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: (follow-up) Fix preset display issue
Bug-31694-follow-up-Fix-preset-display-issue.patch (text/plain), 1.85 KB, created by
Shi Yao Wang
on 2022-12-02 21:11:52 UTC
(
hide
)
Description:
Bug 31694: (follow-up) Fix preset display issue
Filename:
MIME Type:
Creator:
Shi Yao Wang
Created:
2022-12-02 21:11:52 UTC
Size:
1.85 KB
patch
obsolete
>From d91684fd9e0c2b2013c9342bb187f0c4a3061b38 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Fri, 2 Dec 2022 16:06:35 -0500 >Subject: [PATCH] Bug 31694: (follow-up) Fix preset display issue > >Preset column should now display the right preset. >--- > .../prog/en/modules/admin/marc-overlay-rules.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 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 0edb2cb125..58f1150067 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 >@@ -430,11 +430,11 @@ > }; > > var overlay_rules_label_to_value = {}; >- overlay_rules_label_to_value["add"] = 1; >- overlay_rules_label_to_value["append"] = 1; >- overlay_rules_label_to_value["remove"] = 1; >- overlay_rules_label_to_value["delete"] = 1; >- overlay_rules_label_to_value["skip"] = 0; >+ overlay_rules_label_to_value[_("Add")] = 1; >+ overlay_rules_label_to_value[_("Append")] = 1; >+ overlay_rules_label_to_value[_("Remove")] = 1; >+ overlay_rules_label_to_value[_("Delete")] = 1; >+ overlay_rules_label_to_value[_("Skip")] = 0; > > function hash_config(config) { > return JSON.stringify(config, Object.keys(config).sort()); >@@ -458,7 +458,7 @@ > operations_config[$operation.data('operation')] = overlay_rules_label_to_value[$operation.text()]; > }); > $('.rule-preset', $this).text( >- operations_config_overlay_rule_preset(operations_config) || _("Custom") >+ $('option[value="' + operations_config_overlay_rule_preset(operations_config) + '"]').text() || _("Custom") > ); > }); > >-- >2.25.1
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