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

(-)a/C4/Heading.pm (-1 / +1 lines)
Lines 241-247 sub _search { Link Here
241
    # This is legal, so we do a fallback search
241
    # This is legal, so we do a fallback search
242
    if( !$total && $thesaurus && !( grep /$thesaurus/,('lcsh','lcac','mesh','nal','notspecified','cash','rvm','sears','aat') ) ){
242
    if( !$total && $thesaurus && !( grep /$thesaurus/,('lcsh','lcac','mesh','nal','notspecified','cash','rvm','sears','aat') ) ){
243
        pop @value;
243
        pop @value;
244
        push @value, 'z';
244
        push @value, 'notdefined';
245
        $search_query = $builder->build_authorities_query_compat(
245
        $search_query = $builder->build_authorities_query_compat(
246
            \@marclist, \@and_or, \@excluding, \@operator,
246
            \@marclist, \@and_or, \@excluding, \@operator,
247
            \@value,    $self->{'auth_type'},
247
            \@value,    $self->{'auth_type'},
(-)a/t/db_dependent/Heading.t (-2 / +1 lines)
Lines 166-171 subtest "_search tests" => sub { Link Here
166
        { term => { 'match-heading.ci_raw' => 'Uncles generalsubdiv Fiction' } },
166
        { term => { 'match-heading.ci_raw' => 'Uncles generalsubdiv Fiction' } },
167
        { term => { 'subject-heading-thesaurus.ci_raw' => 'z' } },
167
        { term => { 'subject-heading-thesaurus.ci_raw' => 'z' } },
168
    ];
168
    ];
169
    is_deeply( $terms, $expected_terms, "When thesaurus in subfield 2, and nothing is found, we should search again for 008_11 = z");
169
    is_deeply( $terms, $expected_terms, "When thesaurus in subfield 2, and nothing is found, we should search again for notdefined (008_11 = z) ");
170
170
171
};
171
};
172
- 

Return to bug 33277