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-12 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 %]
5
    <select name="item_action" id="item_action" class="[% class_name | html %]">
5
    <select name="item_action" id="item_action" class="[% class_name | html %]">
6
        <option value="always_add" [% IF account.item_action == 'always_add' %]selected="selected"[% END %]> Always add items</option>
6
        <option value="always_add" [% IF action == 'always_add' %]selected="selected"[% END %]> Always add items</option>
7
        <option value="add_only_for_matches" [% IF account.item_action == 'add_only_for_matches' %]selected="selected"[% END %]> Add items only if matching bib was found</option>
7
        <option value="add_only_for_matches" [% IF action == 'add_only_for_matches' %]selected="selected"[% END %]> Add items only if matching bib was found</option>
8
        <option value="add_only_for_new" [% IF account.item_action == 'add_only_for_new' %]selected="selected"[% END %]> Add items only if no matching bib was found</option>
8
        <option value="add_only_for_new" [% IF action == 'add_only_for_new' %]selected="selected"[% END %]> Add items only if no matching bib was found</option>
9
        <option value="replace" [% IF account.item_action == 'replace' %]selected="selected"[% END %]> Replace items if matching bib was found (only for existing items)</option>
9
        <option value="replace" [% IF action == 'replace' %]selected="selected"[% END %]> Replace items if matching bib was found (only for existing items)</option>
10
        <option value="ignore" [% IF account.item_action == 'ignore' %]selected="selected"[% END %]> Ignore items</option>
10
        <option value="ignore" [% IF action == 'ignore' %]selected="selected"[% END %]> Ignore items</option>
11
    </select>
11
    </select>
12
[% END %]
12
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-nomatch-action.inc (-2 / +2 lines)
Lines 1-4 Link Here
1
<select name="nomatch_action" id="nomatch_action" class="[% class_name | html %]">
1
<select name="nomatch_action" id="nomatch_action" class="[% class_name | html %]">
2
    <option value="create_new" [% IF account.nomatch_action == 'create_new' %]selected="selected"[% END %]> Add incoming record</option>
2
    <option value="create_new" [% IF action == 'create_new' %]selected="selected"[% END %]> Add incoming record</option>
3
    <option value="ignore" [% IF account.nomatch_action == 'ignore' %]selected="selected"[% END %]> Ignore incoming record</option>
3
    <option value="ignore" [% IF action == 'ignore' %]selected="selected"[% END %]> Ignore incoming record</option>
4
</select>
4
</select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-overlay-action.inc (-3 / +3 lines)
Lines 1-5 Link Here
1
<select name="overlay_action" id="overlay_action" class="[% class_name | html %]">
1
<select name="overlay_action" id="overlay_action" class="[% class_name | html %]">
2
    <option value="replace" [% IF account.overlay_action == 'replace' %]selected="selected"[% END %]> Replace existing record with incoming record</option>
2
    <option value="replace" [% IF action == 'replace' %]selected="selected"[% END %]> Replace existing record with incoming record</option>
3
    <option value="create_new" [% IF account.overlay_action == 'create_new' %]selected="selected"[% END %]> Add incoming record</option>
3
    <option value="create_new" [% IF action == 'create_new' %]selected="selected"[% END %]> Add incoming record</option>
4
    <option value="ignore" [% IF account.overlay_action == 'ignore' %]selected="selected"[% END %]> Ignore incoming record (its items may still be processed)</option>
4
    <option value="ignore" [% IF action == 'ignore' %]selected="selected"[% END %]> Ignore incoming record (its items may still be processed)</option>
5
</select>
5
</select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_order_accounts.tt (-3 / +3 lines)
Lines 208-218 Link Here
208
                    </li>
208
                    </li>
209
                    <li>
209
                    <li>
210
                        <label for="overlay_action">Action if matching record found: </label>
210
                        <label for="overlay_action">Action if matching record found: </label>
211
                        [% INCLUDE 'tools-overlay-action.inc' class_name='select2' %]
211
                        [% INCLUDE 'tools-overlay-action.inc' action=account.overlay_action class_name='select2' %]
212
                    </li>
212
                    </li>
213
                    <li>
213
                    <li>
214
                        <label for="nomatch_action">Action if no match is found: </label>
214
                        <label for="nomatch_action">Action if no match is found: </label>
215
                        [% INCLUDE 'tools-nomatch-action.inc' class_name='select2' %]
215
                        [% INCLUDE 'tools-nomatch-action.inc' action=account.nomatch_action class_name='select2' %]
216
                    </li>
216
                    </li>
217
                </ol>
217
                </ol>
218
            </fieldset>
218
            </fieldset>
Lines 239-245 Link Here
239
                <ol>
239
                <ol>
240
                    <li>
240
                    <li>
241
                        <label for="item_action">How to process items: </label>
241
                        <label for="item_action">How to process items: </label>
242
                        [% INCLUDE 'tools-item-action.inc' class_name='select2' %]
242
                        [% INCLUDE 'tools-item-action.inc' action=account.item_action class_name='select2' %]
243
                    </li>
243
                    </li>
244
                </ol>
244
                </ol>
245
            </fieldset>
245
            </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-4 / +3 lines)
Lines 204-219 Link Here
204
                            </li>
204
                            </li>
205
                            <li>
205
                            <li>
206
                                <label for="overlay_action">Action if matching record found:</label>
206
                                <label for="overlay_action">Action if matching record found:</label>
207
                                [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
207
                                [% INCLUDE 'tools-overlay-action.inc' action=overlay_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
208
                            </li>
208
                            </li>
209
                            <li>
209
                            <li>
210
                                <label for="nomatch_action">Action if no match found:</label>
210
                                <label for="nomatch_action">Action if no match found:</label>
211
                                [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
211
                                [% INCLUDE 'tools-nomatch-action.inc' action=nomatch_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
212
                            </li>
212
                            </li>
213
                            [% IF ( record_type == 'biblio' ) %]
213
                            [% IF ( record_type == 'biblio' ) %]
214
                                <li>
214
                                <li>
215
                                    <label for="item_action">Item processing:</label>
215
                                    <label for="item_action">Item processing:</label>
216
                                    [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
216
                                    [% INCLUDE 'tools-item-action.inc' action=item_action %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
217
                                </li>
217
                                </li>
218
                            [% ELSE %]
218
                            [% ELSE %]
219
                                <input type="hidden" name="item_action" value="ignore" />
219
                                <input type="hidden" name="item_action" value="ignore" />
220
- 

Return to bug 39294