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 431-441 Link Here
431
        };
431
        };
432
432
433
        var overlay_rules_label_to_value = {};
433
        var overlay_rules_label_to_value = {};
434
        overlay_rules_label_to_value["add"] = 1;
434
        overlay_rules_label_to_value[_("Add")] = 1;
435
        overlay_rules_label_to_value["append"] = 1;
435
        overlay_rules_label_to_value[_("Append")] = 1;
436
        overlay_rules_label_to_value["remove"] = 1;
436
        overlay_rules_label_to_value[_("Remove")] = 1;
437
        overlay_rules_label_to_value["delete"] = 1;
437
        overlay_rules_label_to_value[_("Delete")] = 1;
438
        overlay_rules_label_to_value["skip"] = 0;
438
        overlay_rules_label_to_value[_("Skip")] = 0;
439
439
440
        function hash_config(config) {
440
        function hash_config(config) {
441
          return JSON.stringify(config, Object.keys(config).sort());
441
          return JSON.stringify(config, Object.keys(config).sort());
Lines 459-465 Link Here
459
            operations_config[$operation.data('operation')] = overlay_rules_label_to_value[$operation.text()];
459
            operations_config[$operation.data('operation')] = overlay_rules_label_to_value[$operation.text()];
460
          });
460
          });
461
          $('.rule-preset', $this).text(
461
          $('.rule-preset', $this).text(
462
            operations_config_overlay_rule_preset(operations_config) || _("Custom")
462
            $('option[value="' + operations_config_overlay_rule_preset(operations_config) + '"]').text() || _("Custom")
463
          );
463
          );
464
        });
464
        });
465
465
466
- 

Return to bug 31694