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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-item-action.inc (-6 / +6 lines)
Lines 1-4 Link Here
1
[% IF account.item_action == 'ignore' AND num_items == 0 %]
1
[% IF action == 'ignore' AND num_items == 0 %]
2
    No items were found during staging
2
    No items were found during staging
3
    <input type ="hidden" name="item_action" value="ignore">
3
    <input type ="hidden" name="item_action" value="ignore">
4
[% ELSE %]
4
[% ELSE %]
Lines 7-37 Link Here
7
    [% ELSE %]
7
    [% ELSE %]
8
        <select name="item_action" id="item_action">
8
        <select name="item_action" id="item_action">
9
    [% END %]
9
    [% END %]
10
        [% IF ( account.item_action == 'always_add' ) %]
10
        [% IF ( action == 'always_add' ) %]
11
            <option value="always_add" selected="selected">
11
            <option value="always_add" selected="selected">
12
        [% ELSE %]
12
        [% ELSE %]
13
            <option value="always_add">
13
            <option value="always_add">
14
        [% END %]
14
        [% END %]
15
            Always add items</option>
15
            Always add items</option>
16
        [% IF ( account.item_action == 'add_only_for_matches' ) %]
16
        [% IF ( action == 'add_only_for_matches' ) %]
17
            <option value="add_only_for_matches" selected="selected">
17
            <option value="add_only_for_matches" selected="selected">
18
        [% ELSE %]
18
        [% ELSE %]
19
            <option value="add_only_for_matches">
19
            <option value="add_only_for_matches">
20
        [% END %]
20
        [% END %]
21
            Add items only if matching bib was found</option>
21
            Add items only if matching bib was found</option>
22
        [% IF ( account.item_action == 'add_only_for_new' ) %]
22
        [% IF ( action == 'add_only_for_new' ) %]
23
            <option value="add_only_for_new" selected="selected">
23
            <option value="add_only_for_new" selected="selected">
24
        [% ELSE %]
24
        [% ELSE %]
25
            <option value="add_only_for_new">
25
            <option value="add_only_for_new">
26
        [% END %]
26
        [% END %]
27
            Add items only if no matching bib was found</option>
27
            Add items only if no matching bib was found</option>
28
        [% IF ( account.item_action == 'replace' ) %]
28
        [% IF ( action == 'replace' ) %]
29
            <option value="replace" selected="selected">
29
            <option value="replace" selected="selected">
30
        [% ELSE %]
30
        [% ELSE %]
31
            <option value="replace">
31
            <option value="replace">
32
        [% END %]
32
        [% END %]
33
            Replace items if matching bib was found (only for existing items)</option>
33
            Replace items if matching bib was found (only for existing items)</option>
34
        [% IF ( account.item_action == 'ignore' ) %]
34
        [% IF ( action == 'ignore' ) %]
35
            <option value="ignore" selected="selected">
35
            <option value="ignore" selected="selected">
36
        [% ELSE %]
36
        [% ELSE %]
37
            <option value="ignore">
37
            <option value="ignore">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-nomatch-action.inc (-2 / +2 lines)
Lines 3-15 Link Here
3
[% ELSE %]
3
[% ELSE %]
4
    <select name="nomatch_action" id="nomatch_action">
4
    <select name="nomatch_action" id="nomatch_action">
5
[% END %]
5
[% END %]
6
    [% IF ( account.nomatch_action == 'create_new' ) %]
6
    [% IF ( action == 'create_new' ) %]
7
        <option value="create_new" selected="selected">
7
        <option value="create_new" selected="selected">
8
    [% ELSE %]
8
    [% ELSE %]
9
        <option value="create_new">
9
        <option value="create_new">
10
    [% END %]
10
    [% END %]
11
        Add incoming record</option>
11
        Add incoming record</option>
12
    [% IF ( account.nomatch_action == 'ignore' ) %]
12
    [% IF ( action == 'ignore' ) %]
13
        <option value="ignore" selected="selected">
13
        <option value="ignore" selected="selected">
14
    [% ELSE %]
14
    [% ELSE %]
15
        <option value="ignore">
15
        <option value="ignore">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-overlay-action.inc (-3 / +3 lines)
Lines 3-21 Link Here
3
[% ELSE %]
3
[% ELSE %]
4
    <select name="overlay_action" id="overlay_action">
4
    <select name="overlay_action" id="overlay_action">
5
[% END %]
5
[% END %]
6
    [% IF ( account.overlay_action == 'replace' ) %]
6
    [% IF ( action == 'replace' ) %]
7
        <option value="replace"  selected="selected">
7
        <option value="replace"  selected="selected">
8
    [% ELSE %]
8
    [% ELSE %]
9
        <option value="replace">
9
        <option value="replace">
10
    [% END %]
10
    [% END %]
11
        Replace existing record with incoming record</option>
11
        Replace existing record with incoming record</option>
12
    [% IF ( account.overlay_action == 'create_new' ) %]
12
    [% IF ( action == 'create_new' ) %]
13
        <option value="create_new" selected="selected">
13
        <option value="create_new" selected="selected">
14
    [% ELSE %]
14
    [% ELSE %]
15
        <option value="create_new">
15
        <option value="create_new">
16
    [% END %]
16
    [% END %]
17
        Add incoming record</option>
17
        Add incoming record</option>
18
    [% IF ( account.overlay_action == 'ignore' ) %]
18
    [% IF ( action == 'ignore' ) %]
19
        <option value="ignore" selected="selected">
19
        <option value="ignore" selected="selected">
20
    [% ELSE %]
20
    [% ELSE %]
21
        <option value="ignore">
21
        <option value="ignore">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_order_accounts.tt (-3 / +3 lines)
Lines 219-229 MARC order accounts Link Here
219
                                </li>
219
                                </li>
220
                                <li>
220
                                <li>
221
                                    <label for="overlay_action">Action if matching record found: </label>
221
                                    <label for="overlay_action">Action if matching record found: </label>
222
                                    [% INCLUDE 'tools-overlay-action.inc' class_name='select2' %]
222
                                    [% INCLUDE 'tools-overlay-action.inc' action=account.overlay_action class_name='select2' %]
223
                                </li>
223
                                </li>
224
                                <li>
224
                                <li>
225
                                    <label for="nomatch_action">Action if no match is found: </label>
225
                                    <label for="nomatch_action">Action if no match is found: </label>
226
                                    [% INCLUDE 'tools-nomatch-action.inc' class_name='select2' %]
226
                                    [% INCLUDE 'tools-nomatch-action.inc' action=account.nomatch_action class_name='select2' %]
227
                                </li>
227
                                </li>
228
                            </ol>
228
                            </ol>
229
                        </fieldset>
229
                        </fieldset>
Lines 250-256 MARC order accounts Link Here
250
                            <ol>
250
                            <ol>
251
                                <li>
251
                                <li>
252
                                    <label for="item_action">How to process items: </label>
252
                                    <label for="item_action">How to process items: </label>
253
                                    [% INCLUDE 'tools-item-action.inc' class_name='select2' %]
253
                                    [% INCLUDE 'tools-item-action.inc' action=account.item_action class_name='select2' %]
254
                                </li>
254
                                </li>
255
                            </ol>
255
                            </ol>
256
                        </fieldset>
256
                        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-4 / +3 lines)
Lines 209-215 Link Here
209
                                <li>
209
                                <li>
210
                                    [% IF ( can_commit ) %]
210
                                    [% IF ( can_commit ) %]
211
                                        <label for="overlay_action">Action if matching record found:</label>
211
                                        <label for="overlay_action">Action if matching record found:</label>
212
                                        [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
212
                                        [% INCLUDE 'tools-overlay-action.inc' action=overlay_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
213
                                    [% ELSE %]
213
                                    [% ELSE %]
214
                                        <span class="label">Action if matching record found:</span>
214
                                        <span class="label">Action if matching record found:</span>
215
                                        [% IF ( overlay_action == 'replace' ) %]
215
                                        [% IF ( overlay_action == 'replace' ) %]
Lines 226-232 Link Here
226
                                <li>
226
                                <li>
227
                                    [% IF ( can_commit ) %]
227
                                    [% IF ( can_commit ) %]
228
                                        <label for="nomatch_action">Action if no match found:</label>
228
                                        <label for="nomatch_action">Action if no match found:</label>
229
                                        [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
229
                                        [% INCLUDE 'tools-nomatch-action.inc' action=nomatch_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
230
                                    [% ELSE %]
230
                                    [% ELSE %]
231
                                        <span class="label">Action if no match found:</span>
231
                                        <span class="label">Action if no match found:</span>
232
                                        [% IF ( nomatch_action == 'create_new' ) %]
232
                                        [% IF ( nomatch_action == 'create_new' ) %]
Lines 242-248 Link Here
242
                                    <li>
242
                                    <li>
243
                                        [% IF ( can_commit ) %]
243
                                        [% IF ( can_commit ) %]
244
                                            <label for="item_action">Item processing:</label>
244
                                            <label for="item_action">Item processing:</label>
245
                                            [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
245
                                            [% INCLUDE 'tools-item-action.inc' action=item_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
246
                                        [% ELSE %]
246
                                        [% ELSE %]
247
                                            <span class="label">Item processing:</span>
247
                                            <span class="label">Item processing:</span>
248
                                            [% IF ( item_action == 'always_add' ) %]
248
                                            [% IF ( item_action == 'always_add' ) %]
249
- 

Return to bug 39294