From 09894c7513e691755b17ad30e83966394ec4c931 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Wed, 8 Jan 2014 10:39:50 +0100 Subject: [PATCH] BZ11496: 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 8d6ab1a..efffef0 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -148,7 +148,7 @@ if ($completedJobID) { $checked_matches = 1; $matcher_code = $matcher->code(); $num_with_matches = BatchFindDuplicates($batch_id, $matcher, - 10, 50, matching_progress_callback($job, $dbh)); + 1000, 50, matching_progress_callback($job, $dbh)); SetImportBatchMatcher($batch_id, $matcher_id); SetImportBatchOverlayAction($batch_id, $overlay_action); SetImportBatchNoMatchAction($batch_id, $nomatch_action); -- 1.8.3.2