Nick Clemens
eded6edacc
This fixes an error where we send a blank string to Marc::Field->as_string The subroutine fails as the regex is marked as incomplete as there is nothing between the brackets Also fixes a missing hidden input for 'item_action' when no items are staged during import 1 - Define a new matching rule with no subfields Match-threshold: 1000 Record type: bibliographic record Search-index: Other-control-number Score: 1000 Tag: 035 Subfields: Offset: Length: 2 - Attempt to stage a record with an 035 using this rule (i will attach example to bug) 3 - Staging fails 4 - Stage again with no matching rule 5 - Manage the staged record, try to apply the matching rule 6 - It fails, 500 error 7 - Apply patch 8 - Restart all the things 9 - Apply rule again, it works! 10 - Stage the record again using the rule for matching 11 - It stages and matches! Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
[% IF item_action_ignore AND num_items == 0 %]
|
|
No items were found during staging
|
|
<input type ="hidden" name="item_action" value="ignore">
|
|
[% ELSE %]
|
|
<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>
|
|
[% END %]
|