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

(-)a/misc/migration_tools/bulkmarcimport.pl (-1 / +12 lines)
Lines 59-64 my $biblios; Link Here
59
my $authorities;
59
my $authorities;
60
my $keepids;
60
my $keepids;
61
my $match;
61
my $match;
62
my $match_record_id;
62
my $isbn_check;
63
my $isbn_check;
63
my $logfile;
64
my $logfile;
64
my $insert;
65
my $insert;
Lines 104-109 GetOptions( Link Here
104
    'update'              => \$update,
105
    'update'              => \$update,
105
    'all'                 => \$all,
106
    'all'                 => \$all,
106
    'match=s@'            => \$match,
107
    'match=s@'            => \$match,
108
    'match_record_id'     => \$match_record_id,
107
    'i|isbn'              => \$isbn_check,
109
    'i|isbn'              => \$isbn_check,
108
    'x:s'                 => \$sourcetag,
110
    'x:s'                 => \$sourcetag,
109
    'y:s'                 => \$sourcesubfield,
111
    'y:s'                 => \$sourcesubfield,
Lines 463-468 RECORD: foreach my $record ( @{$marc_records} ) { Link Here
463
        }
465
        }
464
    }
466
    }
465
467
468
    if ($match_record_id && !$matched_record_id && $originalid) {
469
        $matched_record_id = $originalid;
470
    }
471
466
    foreach my $stringfilter (@$filters) {
472
    foreach my $stringfilter (@$filters) {
467
        if ( length($stringfilter) == 3 ) {
473
        if ( length($stringfilter) == 3 ) {
468
            foreach my $field ( $record->field($stringfilter) ) {
474
            foreach my $field ( $record->field($stringfilter) ) {
Lines 983-988 from LOC or BNF. useless for biblios probably) Link Here
983
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
989
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
984
can be either 001 to 999 or field and list of subfields as such 100abcde
990
can be either 001 to 999 or field and list of subfields as such 100abcde
985
991
992
=item B<-match_record_id>
993
994
Assume incoming record original id is a valid record id in Koha and use this
995
for updating the Koha record.  For example useful when importing previously
996
+exported records.
997
986
=item B<-i, --isbn>
998
=item B<-i, --isbn>
987
999
988
If set, a search will be done on isbn, and, if the same isbn is found, the
1000
If set, a search will be done on isbn, and, if the same isbn is found, the
989
- 

Return to bug 29654