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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 283-289 sub SearchAuthorities { Link Here
283
                $dosearch=1;
283
                $dosearch=1;
284
                ++$attr_cnt;
284
                ++$attr_cnt;
285
                if ($QParser) {
285
                if ($QParser) {
286
                    $qpquery .= " $tags->[$i]:$value->[$i]";
286
                    $qpquery .= " $tags->[$i]:\"$value->[$i]\"";
287
                }
287
                }
288
            }#if value
288
            }#if value
289
        }
289
        }
(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 667-673 sub _check_valid_auth_link { Link Here
667
    require C4::AuthoritiesMarc;
667
    require C4::AuthoritiesMarc;
668
668
669
    my $authorized_heading =
669
    my $authorized_heading =
670
      C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } );
670
      C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } ) || '';
671
671
672
   return ($field->as_string('abcdefghijklmnopqrstuvwxyz') eq $authorized_heading);
672
   return ($field->as_string('abcdefghijklmnopqrstuvwxyz') eq $authorized_heading);
673
}
673
}
(-)a/Koha/QueryParser/Driver/PQF/query_plan/node.pm (-1 / +1 lines)
Lines 34-40 sub target_syntax { Link Here
34
            if ($relbump) {
34
            if ($relbump) {
35
                $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
35
                $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
36
            }
36
            }
37
            push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && scalar @fields));
37
            push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1));
38
        }
38
        }
39
    } else {
39
    } else {
40
        $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $self->classname, $server);
40
        $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $self->classname, $server);
(-)a/OpenILS/QueryParser.pm (-1 / +1 lines)
Lines 1175-1181 sub decompose { Link Here
1175
                # Cleanup the phrase to make it so that we don't parse things in it as anything other than atoms
1175
                # Cleanup the phrase to make it so that we don't parse things in it as anything other than atoms
1176
                $phrase =~ s/$phrase_cleanup_re/ /g;
1176
                $phrase =~ s/$phrase_cleanup_re/ /g;
1177
1177
1178
                $_ = $phrase . $temp_val;
1178
                $_ = $temp_val;
1179
1179
1180
            }
1180
            }
1181
1181
(-)a/etc/searchengine/queryparser.yaml (-1 / +3 lines)
Lines 1133-1138 field_mappings: Link Here
1133
      bib1_mapping:
1133
      bib1_mapping:
1134
        authorityserver:
1134
        authorityserver:
1135
          1: Match-heading
1135
          1: Match-heading
1136
          4: 1
1137
          5: 100
1138
          6: 3
1136
      enabled: 1
1139
      enabled: 1
1137
      index: matchheading
1140
      index: matchheading
1138
      label: Matchheading
1141
      label: Matchheading
1139
- 

Return to bug 9239