|
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 464-469
RECORD: foreach my $record ( @{$marc_records} ) {
Link Here
|
| 464 |
} |
466 |
} |
| 465 |
} |
467 |
} |
| 466 |
|
468 |
|
|
|
469 |
if ($match_record_id && !$matched_record_id && $originalid) { |
| 470 |
$matched_record_id = $originalid; |
| 471 |
} |
| 472 |
|
| 467 |
foreach my $stringfilter (@$filters) { |
473 |
foreach my $stringfilter (@$filters) { |
| 468 |
if ( length($stringfilter) == 3 ) { |
474 |
if ( length($stringfilter) == 3 ) { |
| 469 |
foreach my $field ( $record->field($stringfilter) ) { |
475 |
foreach my $field ( $record->field($stringfilter) ) { |
|
Lines 984-989
from LOC or BNF. useless for biblios probably)
Link Here
|
| 984 |
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch |
990 |
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch |
| 985 |
can be either 001 to 999 or field and list of subfields as such 100abcde |
991 |
can be either 001 to 999 or field and list of subfields as such 100abcde |
| 986 |
|
992 |
|
|
|
993 |
=item B<-match_record_id> |
| 994 |
|
| 995 |
Assume incoming record original id is a valid record id in Koha and use this |
| 996 |
for updating the Koha record. For example useful when importing previously |
| 997 |
+exported records. |
| 998 |
|
| 987 |
=item B<-i, --isbn> |
999 |
=item B<-i, --isbn> |
| 988 |
|
1000 |
|
| 989 |
If set, a search will be done on isbn, and, if the same isbn is found, the |
1001 |
If set, a search will be done on isbn, and, if the same isbn is found, the |
| 990 |
- |
|
|