View | Details | Raw Unified | Return to bug 18131
Collapse All | Expand All

(-)a/C4/Matcher.pm (-2 / +3 lines)
Lines 675-681 sub get_matches { Link Here
675
                if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
675
                if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
676
                    foreach my $matched ( @{$searchresults} ) {
676
                    foreach my $matched ( @{$searchresults} ) {
677
                        my ( $biblionumber_tag, $biblionumber_subfield ) = C4::Biblio::GetMarcFromKohaField( "biblio.biblionumber", $marcframework_used );
677
                        my ( $biblionumber_tag, $biblionumber_subfield ) = C4::Biblio::GetMarcFromKohaField( "biblio.biblionumber", $marcframework_used );
678
                        my $id = $matched->field($biblionumber_tag)->subfield($biblionumber_subfield);
678
                        my $id = ( $biblionumber_tag > 10 ) ?
679
                            $matched->field($biblionumber_tag)->subfield($biblionumber_subfield) :
680
                            $matched->field($biblionumber_tag)->data();
679
                        $matches->{$id}->{score} += $matchpoint->{score};
681
                        $matches->{$id}->{score} += $matchpoint->{score};
680
                        $matches->{$id}->{record} = $matched;
682
                        $matches->{$id}->{record} = $matched;
681
                    }
683
                    }
682
- 

Return to bug 18131