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 (-16 / +15 lines)
Lines 108-118 Link Here
108
                                <th>
108
                                <th>
109
                                    <select name="preset">
109
                                    <select name="preset">
110
                                        <option value="" selected>Custom</option>
110
                                        <option value="" selected>Custom</option>
111
                                        <option value="Protect">Protect</option>
111
                                        <option value="protect">Protect</option>
112
                                        <option value="Overwrite">Overwrite</option>
112
                                        <option value="overwrite">Overwrite</option>
113
                                        <option value="Add new">Add new</option>
113
                                        <option value="add">Add new</option>
114
                                        <option value="Add and append">Add and append</option>
114
                                        <option value="addappend">Add and append</option>
115
                                        <option value="Protect from deletion">Protect from deletion</option>
115
                                        <option value="protectfromdeletion">Protect from deletion</option>
116
                                    </select>
116
                                    </select>
117
                                </th>
117
                                </th>
118
                                <th class="rule-operation-action-edit">
118
                                <th class="rule-operation-action-edit">
Lines 173-183 Link Here
173
                                    <th>
173
                                    <th>
174
                                        <select name="preset">
174
                                        <select name="preset">
175
                                            <option value="" selected>Custom</option>
175
                                            <option value="" selected>Custom</option>
176
                                            <option value="Protect">Protect</option>
176
                                            <option value="protect">Protect</option>
177
                                            <option value="Overwrite">Overwrite</option>
177
                                            <option value="overwrite">Overwrite</option>
178
                                            <option value="Add new">Add new</option>
178
                                            <option value="add">Add new</option>
179
                                            <option value="Add and append">Add and append</option>
179
                                            <option value="addappend">Add and append</option>
180
                                            <option value="Protect from deletion">Protect from deletion</option>
180
                                            <option value="protectfromdeletion">Protect from deletion</option>
181
                                        </select>
181
                                        </select>
182
                                    </th>
182
                                    </th>
183
                                    <td class="rule-operation-action-edit">
183
                                    <td class="rule-operation-action-edit">
Lines 371-401 Link Here
371
        }));
371
        }));
372
372
373
        var overlay_rules_presets = {};
373
        var overlay_rules_presets = {};
374
        overlay_rules_presets[_("Protect")] = {
374
        overlay_rules_presets[_("protect")] = {
375
          'add': 0,
375
          'add': 0,
376
          'append': 0,
376
          'append': 0,
377
          'remove': 0,
377
          'remove': 0,
378
          'delete': 0
378
          'delete': 0
379
        };
379
        };
380
        overlay_rules_presets[_("Overwrite")] = {
380
        overlay_rules_presets[_("overwrite")] = {
381
          'add': 1,
381
          'add': 1,
382
          'append': 1,
382
          'append': 1,
383
          'remove': 1,
383
          'remove': 1,
384
          'delete': 1
384
          'delete': 1
385
        };
385
        };
386
        overlay_rules_presets[_("Add new")] = {
386
        overlay_rules_presets[_("add")] = {
387
          'add': 1,
387
          'add': 1,
388
          'append': 0,
388
          'append': 0,
389
          'remove': 0,
389
          'remove': 0,
390
          'delete': 0
390
          'delete': 0
391
        };
391
        };
392
        overlay_rules_presets[_("Add and append")] = {
392
        overlay_rules_presets[_("addappend")] = {
393
          'add': 1,
393
          'add': 1,
394
          'append': 1,
394
          'append': 1,
395
          'remove': 0,
395
          'remove': 0,
396
          'delete': 0
396
          'delete': 0
397
        };
397
        };
398
        overlay_rules_presets[_("Protect from deletion")] = {
398
        overlay_rules_presets[_("protectfromdeletion")] = {
399
          'add': 1,
399
          'add': 1,
400
          'append': 1,
400
          'append': 1,
401
          'remove': 1,
401
          'remove': 1,
402
- 

Return to bug 31694