]> git.koha-community.org Git - koha.git/commit
Bug 17710 - C4::Matcher::get_matches and C4::ImportBatch::GetBestRecordMatch should...
authorDavid Cook <dcook@prosentient.com.au>
Wed, 11 Jan 2017 04:36:05 +0000 (15:36 +1100)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Jul 2017 13:02:04 +0000 (01:02 +1200)
commit107771dd4a667c70c10460081e5b19353ba76283
treea7a60490f14a3d79683a87e8b6621f9550435bfe
parentb96de87dd86ea0c29ddbe75406375cbb79a3fdf5
Bug 17710 - C4::Matcher::get_matches and C4::ImportBatch::GetBestRecordMatch should use same logic

C4::ImportBatch::GetBestRecordMatch uses SQL to sort by score descending
then candidate_match_id descending. With C4::Matcher::get_matches, I
implement the same sort but use Perl code to do it, since we're sorting
search results.

It's a simple change, but it's in a big block of code, so I don't have
unit tests.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Matcher.pm