Bugzilla – Attachment 68884 Details for
Bug 18131
Matching staged records when using elastic search fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18131: Followup - Use data if biblionumber_tag < 10
Bug-18131-Followup---Use-data-if-biblionumbertag--.patch (text/plain), 1.24 KB, created by
Nick Clemens (kidclamp)
on 2017-11-01 16:23:22 UTC
(
hide
)
Description:
Bug 18131: Followup - Use data if biblionumber_tag < 10
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-11-01 16:23:22 UTC
Size:
1.24 KB
patch
obsolete
>From 4350647b63813f3086ecb563ea03bf0b76deeedc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 1 Nov 2017 16:13:23 +0000 >Subject: [PATCH] Bug 18131: Followup - Use data if biblionumber_tag < 10 > >--- > C4/Matcher.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/Matcher.pm b/C4/Matcher.pm >index 82840eb..7209511 100644 >--- a/C4/Matcher.pm >+++ b/C4/Matcher.pm >@@ -675,7 +675,9 @@ sub get_matches { > if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) { > foreach my $matched ( @{$searchresults} ) { > my ( $biblionumber_tag, $biblionumber_subfield ) = C4::Biblio::GetMarcFromKohaField( "biblio.biblionumber", $marcframework_used ); >- my $id = $matched->field($biblionumber_tag)->subfield($biblionumber_subfield); >+ my $id = ( $biblionumber_tag > 10 ) ? >+ $matched->field($biblionumber_tag)->subfield($biblionumber_subfield) : >+ $matched->field($biblionumber_tag)->data(); > $matches->{$id}->{score} += $matchpoint->{score}; > $matches->{$id}->{record} = $matched; > } >-- >2.1.4
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 18131
:
60716
|
61586
|
62087
|
62088
|
68884
|
69087
|
69088
|
69089