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

(-)a/Koha/QueryParser/Driver/PQF/query_plan/node.pm (-1 / +1 lines)
Lines 49-55 sub target_syntax { Link Here
49
        foreach my $field (@{$self->fields}) {
49
        foreach my $field (@{$self->fields}) {
50
            $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $field, $server);
50
            $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $field, $server);
51
            $relbump = $self->plan->QueryParser->bib1_mapping_by_name('relevance_bump', $self->classname, $field, $server);
51
            $relbump = $self->plan->QueryParser->bib1_mapping_by_name('relevance_bump', $self->classname, $field, $server);
52
            if ($relbump) {
52
            if ($relbump && defined $relbump->{'attr_string'}) {
53
                $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
53
                $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
54
            }
54
            }
55
            push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1));
55
            push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1));
(-)a/t/db_dependent/Search.t (-1 / +2 lines)
Lines 132-137 $contextmodule->mock('preference', sub { Link Here
132
        return 'holding';
132
        return 'holding';
133
    } elsif ($pref eq 'UNIMARCAuthorsFacetsSeparator') {
133
    } elsif ($pref eq 'UNIMARCAuthorsFacetsSeparator') {
134
        return '--';
134
        return '--';
135
    } elsif ($pref eq 'template') {
136
        return 'prog';
135
    } else {
137
    } else {
136
        warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
138
        warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
137
            unless $pref =~ m/(XSLT|item|branch|holding|image)/i;
139
            unless $pref =~ m/(XSLT|item|branch|holding|image)/i;
138
- 

Return to bug 17664