]> 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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Wed, 21 Jun 2017 06:28:03 +0000 (08:28 +0200)
commit17d12909a0cb4cabe7b4ed459cfd0dcdcfff26f5
tree3c50cf50515bd35851f67757028ca7a571e4959c
parent921f346233fb2c0b6cf0f38217f0739223b63961
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: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6906b848a78ad4c7d52c1e7c7ce195f08cc6d2a6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 50c886e0a96a39a2906756dae42ade5c9fd0f9d0)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Matcher.pm