Bugzilla – Attachment 179717 Details for
Bug 39436
C4/Matcher does not check if the biblio returned by search exists in DB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
BZ39436: Have the matcher check the existence of the record returned by search engine
BZ39436-Have-the-matcher-check-the-existence-of-th.patch (text/plain), 1.17 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-03-26 09:13:34 UTC
(
hide
)
Description:
BZ39436: Have the matcher check the existence of the record returned by search engine
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-03-26 09:13:34 UTC
Size:
1.17 KB
patch
obsolete
>From 82eedd2261abec2e260cf4b05c248eac8d9932bc Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Mon, 24 Mar 2025 16:30:50 +0100 >Subject: [PATCH] BZ39436: Have the matcher check the existence of the record > returned by search engine > >TEST PLAN: >TBD >--- > C4/Matcher.pm | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/C4/Matcher.pm b/C4/Matcher.pm >index 9369782f..8c6075f6 100644 >--- a/C4/Matcher.pm >+++ b/C4/Matcher.pm >@@ -721,8 +721,11 @@ sub get_matches { > ( $biblionumber_tag > 10 ) > ? $target_record->field($biblionumber_tag)->subfield($biblionumber_subfield) > : $target_record->field($biblionumber_tag)->data(); >- $matches->{$id}->{score} += $matchpoint->{score}; >- $matches->{$id}->{record} = $target_record; >+ my $biblio = Koha::Biblio->find($id); >+ if ($biblio){ >+ $matches->{$id}->{score} += $matchpoint->{score}; >+ $matches->{$id}->{record} = $target_record; >+ } > } > } > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39436
: 179717