|
Lines 54-59
my $result = GetOptions(
Link Here
|
| 54 |
'add-items' => \$add_items, |
54 |
'add-items' => \$add_items, |
| 55 |
'item-action:s' => \$item_action, |
55 |
'item-action:s' => \$item_action, |
| 56 |
'no-replace' => \$no_replace, |
56 |
'no-replace' => \$no_replace, |
|
|
57 |
'no-create' => \$no_create, |
| 57 |
'comment:s' => \$batch_comment, |
58 |
'comment:s' => \$batch_comment, |
| 58 |
'authorities' => \$authorities, |
59 |
'authorities' => \$authorities, |
| 59 |
'h|help' => \$want_help |
60 |
'h|help' => \$want_help |
|
Lines 118-124
sub process_batch {
Link Here
|
| 118 |
} |
119 |
} |
| 119 |
# set default record overlay behavior |
120 |
# set default record overlay behavior |
| 120 |
SetImportBatchOverlayAction($batch_id, ($no_replace) ? 'ignore' : 'replace'); |
121 |
SetImportBatchOverlayAction($batch_id, ($no_replace) ? 'ignore' : 'replace'); |
| 121 |
SetImportBatchNoMatchAction($batch_id, 'create_new'); |
122 |
SetImportBatchNoMatchAction($batch_id, ($no_create) ? 'ignore' : 'create_new'); |
| 122 |
SetImportBatchItemAction($batch_id, $item_action); |
123 |
SetImportBatchItemAction($batch_id, $item_action); |
| 123 |
print "... looking for matches with records already in database\n"; |
124 |
print "... looking for matches with records already in database\n"; |
| 124 |
$num_with_matches = BatchFindDuplicates($batch_id, $matcher, 10, 100, \&print_progress_and_commit); |
125 |
$num_with_matches = BatchFindDuplicates($batch_id, $matcher, 10, 100, \&print_progress_and_commit); |
|
Lines 194-199
Parameters:
Link Here
|
| 194 |
'ignore', or 'replace' |
195 |
'ignore', or 'replace' |
| 195 |
--no-replace overlay action for record: default is to |
196 |
--no-replace overlay action for record: default is to |
| 196 |
replace extant with the imported record. |
197 |
replace extant with the imported record. |
|
|
198 |
--no-create nomatch action for record: default is to |
| 199 |
create new record with imported record. |
| 197 |
--comment <comment> optional comment to describe |
200 |
--comment <comment> optional comment to describe |
| 198 |
the record batch; if the comment |
201 |
the record batch; if the comment |
| 199 |
has spaces in it, surround the |
202 |
has spaces in it, surround the |
| 200 |
- |
|
|