From a98d1628782e524eec3a61d6e053d782dfe7d776 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Wed, 8 Jan 2014 10:39:50 +0100 Subject: [PATCH] Bug 11496: Raise number of tested records when searching for duplicate during import. - Previously, only the first 10 records returned by koha for a given matchpoint were tested. This is not enough in many cases, because a significant matching record can be beyond these 10 first results. This patch raise the search to 1000 records, for more accurate, but slower results. --- tools/stage-marc-import.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index 7207859..b660e89 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -146,7 +146,7 @@ if ($completedJobID) { $checked_matches = 1; $matcher_code = $matcher->code(); $num_with_matches = - BatchFindDuplicates( $batch_id, $matcher, 10, 50, + BatchFindDuplicates( $batch_id, $matcher, 1000, 50, matching_progress_callback( $job, $dbh ) ); SetImportBatchMatcher($batch_id, $matcher_id); SetImportBatchOverlayAction($batch_id, $overlay_action); -- 1.9.1