View | Details | Raw Unified | Return to bug 31694
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-7 / +6 lines)
Lines 430-440 Link Here
430
        };
430
        };
431
431
432
        var overlay_rules_label_to_value = {};
432
        var overlay_rules_label_to_value = {};
433
        overlay_rules_label_to_value["add"] = 1;
433
        overlay_rules_label_to_value[_("Add")] = 1;
434
        overlay_rules_label_to_value["append"] = 1;
434
        overlay_rules_label_to_value[_("Append")] = 1;
435
        overlay_rules_label_to_value["remove"] = 1;
435
        overlay_rules_label_to_value[_("Remove")] = 1;
436
        overlay_rules_label_to_value["delete"] = 1;
436
        overlay_rules_label_to_value[_("Delete")] = 1;
437
        overlay_rules_label_to_value["skip"] = 0;
437
        overlay_rules_label_to_value[_("Skip")] = 0;
438
438
439
        function hash_config(config) {
439
        function hash_config(config) {
440
          return JSON.stringify(config, Object.keys(config).sort());
440
          return JSON.stringify(config, Object.keys(config).sort());
Lines 458-464 Link Here
458
            operations_config[$operation.data('operation')] = overlay_rules_label_to_value[$operation.text()];
458
            operations_config[$operation.data('operation')] = overlay_rules_label_to_value[$operation.text()];
459
          });
459
          });
460
          $('.rule-preset', $this).text(
460
          $('.rule-preset', $this).text(
461
            operations_config_overlay_rule_preset(operations_config) || _("Custom")
461
            $('option[value="' + operations_config_overlay_rule_preset(operations_config) + '"]').text() || _("Custom")
462
          );
462
          );
463
        });
463
        });
464
464
465
- 

Return to bug 31694