Lines 159-171
if ($op eq ""){
Link Here
|
159 |
# 1st insert the biblio, or find it through matcher |
159 |
# 1st insert the biblio, or find it through matcher |
160 |
unless ( $biblionumber ) { |
160 |
unless ( $biblionumber ) { |
161 |
if ($matcher_id) { |
161 |
if ($matcher_id) { |
162 |
my $matcher = C4::Matcher->fetch($matcher_id); |
162 |
if ( $matcher_id eq '_TITLE_AUTHOR_' ) { |
163 |
my @matches = $matcher->get_matches( $marcrecord, my $max_matches = 1 ); |
163 |
$duplinbatch = $import_batch_id if FindDuplicate($marcrecord); |
164 |
if ( @matches ) { |
|
|
165 |
$duplinbatch = $import_batch_id; |
166 |
next; |
167 |
} |
164 |
} |
|
|
165 |
else { |
166 |
my $matcher = C4::Matcher->fetch($matcher_id); |
167 |
my @matches = $matcher->get_matches( $marcrecord, my $max_matches = 1 ); |
168 |
$duplinbatch = $import_batch_id if @matches; |
169 |
} |
170 |
|
171 |
next if $duplinbatch; |
168 |
} |
172 |
} |
|
|
173 |
|
169 |
# add the biblio |
174 |
# add the biblio |
170 |
my $bibitemnum; |
175 |
my $bibitemnum; |
171 |
|
176 |
|