Lines 21-30
my $batch_number = "";
Link Here
|
21 |
my $list_batches = 0; |
21 |
my $list_batches = 0; |
22 |
my $revert = 0; |
22 |
my $revert = 0; |
23 |
my $want_help = 0; |
23 |
my $want_help = 0; |
|
|
24 |
my $framework = ''; |
24 |
|
25 |
|
25 |
my $result = GetOptions( |
26 |
my $result = GetOptions( |
26 |
'batch-number:s' => \$batch_number, |
27 |
'batch-number:s' => \$batch_number, |
27 |
'list-batches' => \$list_batches, |
28 |
'list-batches' => \$list_batches, |
|
|
29 |
'framework:s' => \$framework, |
28 |
'revert' => \$revert, |
30 |
'revert' => \$revert, |
29 |
'h|help' => \$want_help |
31 |
'h|help' => \$want_help |
30 |
); |
32 |
); |
Lines 84-90
sub process_batch {
Link Here
|
84 |
|
86 |
|
85 |
print "... importing MARC records -- please wait\n"; |
87 |
print "... importing MARC records -- please wait\n"; |
86 |
my ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored) = |
88 |
my ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored) = |
87 |
BatchCommitRecords($import_batch_id, '', 100, \&print_progress_and_commit); |
89 |
BatchCommitRecords($import_batch_id, $framework, 100, \&print_progress_and_commit); |
88 |
print "... finished importing MARC records\n"; |
90 |
print "... finished importing MARC records\n"; |
89 |
|
91 |
|
90 |
print <<_SUMMARY_; |
92 |
print <<_SUMMARY_; |
Lines 145-150
stage_file.pl or by the Koha Tools option
Link Here
|
145 |
Parameters: |
147 |
Parameters: |
146 |
--batch-number <#> number of the record batch |
148 |
--batch-number <#> number of the record batch |
147 |
to import |
149 |
to import |
|
|
150 |
--framework <code> add new records using this framework. If |
151 |
omitted, the default framework is used. |
148 |
--list-batches print a list of record batches |
152 |
--list-batches print a list of record batches |
149 |
available to commit |
153 |
available to commit |
150 |
--revert revert a batch instead of importing it |
154 |
--revert revert a batch instead of importing it |
151 |
- |
|
|