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 (-2 / +1 lines)
Lines 139-145 $contextmodule->mock('preference', sub { Link Here
139
    } elsif ($pref eq 'casAuthentication' or $pref eq 'casLogout' or $pref eq 'casServerUrl' ) {
139
    } elsif ($pref eq 'casAuthentication' or $pref eq 'casLogout' or $pref eq 'casServerUrl' ) {
140
        return '';
140
        return '';
141
    } elsif ($pref eq 'template') {
141
    } elsif ($pref eq 'template') {
142
        return '';
142
        return 'prog';
143
    } else {
143
    } else {
144
        warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
144
        warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
145
            unless $pref =~ m/(XSLT|item|branch|holding|image)/i;
145
            unless $pref =~ m/(XSLT|item|branch|holding|image)/i;
146
- 

Return to bug 17664