View | Details | Raw Unified | Return to bug 29654
Collapse All | Expand All

(-)a/misc/migration_tools/bulkmarcimport.pl (-1 / +11 lines)
Lines 57-62 my $biblios; Link Here
57
my $authorities;
57
my $authorities;
58
my $keepids;
58
my $keepids;
59
my $match;
59
my $match;
60
my $match_record_id;
60
my $isbn_check;
61
my $isbn_check;
61
my $logfile;
62
my $logfile;
62
my $insert;
63
my $insert;
Lines 100-105 GetOptions( Link Here
100
    'update' => \$update,
101
    'update' => \$update,
101
    'all' => \$all,
102
    'all' => \$all,
102
    'match=s@' => \$match,
103
    'match=s@' => \$match,
104
    'match_record_id' => \$match_record_id,
103
    'i|isbn' => \$isbn_check,
105
    'i|isbn' => \$isbn_check,
104
    'x:s' => \$sourcetag,
106
    'x:s' => \$sourcetag,
105
    'y:s' => \$sourcesubfield,
107
    'y:s' => \$sourcesubfield,
Lines 423-428 RECORD: foreach my $record (@{$marc_records}) { Link Here
423
        }
425
        }
424
    }
426
    }
425
427
428
    if ($match_record_id && !$matched_record_id && $originalid) {
429
        $matched_record_id = $originalid;
430
    }
431
426
    foreach my $stringfilter (@$filters) {
432
    foreach my $stringfilter (@$filters) {
427
        if (length($stringfilter) == 3) {
433
        if (length($stringfilter) == 3) {
428
            foreach my $field ($record->field($stringfilter)) {
434
            foreach my $field ($record->field($stringfilter)) {
Lines 900-905 from LOC or BNF. useless for biblios probably) Link Here
900
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
906
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
901
can be either 001 to 999 or field and list of subfields as such 100abcde
907
can be either 001 to 999 or field and list of subfields as such 100abcde
902
908
909
=item B<-match_record_id>
910
911
Assume incoming record original id will match record in Koha. For example useful when importing
912
previously exported records.
913
903
=item B<-i,-isbn>
914
=item B<-i,-isbn>
904
915
905
If set, a search will be done on isbn, and, if the same isbn is found, the
916
If set, a search will be done on isbn, and, if the same isbn is found, the
906
- 

Return to bug 29654