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 119-125
sub process_batch {
Link Here
|
119 |
} |
120 |
} |
120 |
# set default record overlay behavior |
121 |
# set default record overlay behavior |
121 |
SetImportBatchOverlayAction($batch_id, ($no_replace) ? 'ignore' : 'replace'); |
122 |
SetImportBatchOverlayAction($batch_id, ($no_replace) ? 'ignore' : 'replace'); |
122 |
SetImportBatchNoMatchAction($batch_id, 'create_new'); |
123 |
SetImportBatchNoMatchAction($batch_id, ($no_create) ? 'ignore' : 'create_new'); |
123 |
SetImportBatchItemAction($batch_id, $item_action); |
124 |
SetImportBatchItemAction($batch_id, $item_action); |
124 |
print "... looking for matches with records already in database\n"; |
125 |
print "... looking for matches with records already in database\n"; |
125 |
$num_with_matches = BatchFindDuplicates($batch_id, $matcher, 10, 100, \&print_progress_and_commit); |
126 |
$num_with_matches = BatchFindDuplicates($batch_id, $matcher, 10, 100, \&print_progress_and_commit); |
Lines 195-200
Parameters:
Link Here
|
195 |
'ignore', or 'replace' |
196 |
'ignore', or 'replace' |
196 |
--no-replace overlay action for record: default is to |
197 |
--no-replace overlay action for record: default is to |
197 |
replace extant with the imported record. |
198 |
replace extant with the imported record. |
|
|
199 |
--no-create nomatch action for record: default is to |
200 |
create new record with imported record. |
198 |
--comment <comment> optional comment to describe |
201 |
--comment <comment> optional comment to describe |
199 |
the record batch; if the comment |
202 |
the record batch; if the comment |
200 |
has spaces in it, surround the |
203 |
has spaces in it, surround the |
201 |
- |
|
|