Koha/koha-tmpl/intranet-tmpl/prog/en/includes/tools-item-action.inc
Elliott Davis 1dba9c6409 Bug 7131: teach MARC import how to overlay items
When staging biblios with items attached you previously had only two
options, add or don't add.

This patch adds a third option to replace an item record if a match is
found on itemnumber or barcode, else it adds the item.

Test Plan:
1) Stage a file of biblios with items attached.
2) Import the batch into the catalog.
3) Run the indexer so the matcher will match
4) Modify the item data for at least one bib in the file
5) Re-stage the file with the item matching option set to "Replace
   items if matching bib was found"
6) Let the indexer run again
7) You should see updated item information after the overlay

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Henry Bankhead <hbankhead@losgatosca.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-30 04:31:07 +00:00

32 lines
1.4 KiB
HTML

<select name="item_action" id="item_action">
[% IF ( item_action_always_add ) %]
<option value="always_add" selected="selected">
[% ELSE %]
<option value="always_add">
[% END %]
Always add items</option>
[% IF ( item_action_add_only_for_matches ) %]
<option value="add_only_for_matches" selected="selected">
[% ELSE %]
<option value="add_only_for_matches">
[% END %]
Add items only if matching bib was found</option>
[% IF ( item_action_add_only_for_new ) %]
<option value="add_only_for_new" selected="selected">
[% ELSE %]
<option value="add_only_for_new">
[% END %]
Add items only if no matching bib was found</option>
[% IF ( item_action_replace ) %]
<option value="replace" selected="selected">
[% ELSE %]
<option value="replace">
[% END %]
Replace items if matching bib was found (only for existing items)</option>
[% IF ( item_action_ignore ) %]
<option value="ignore" selected="selected">
[% ELSE %]
<option value="ignore">
[% END %]
Ignore items</option>
</select>