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

(-)a/cataloguing/addbooks.pl (-4 / +6 lines)
Lines 73-81 if ($query) { Link Here
73
73
74
    my $QParser;
74
    my $QParser;
75
    $QParser = C4::Context->queryparser if (C4::Context->preference('UseQueryParser'));
75
    $QParser = C4::Context->queryparser if (C4::Context->preference('UseQueryParser'));
76
    unless ($QParser) {
76
    my $builtquery;
77
        my ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(undef,\@operands);
77
    if ($QParser) {
78
        $query = $builtquery;
78
        $builtquery = $query;
79
    } else {
80
        my ( $builterror,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type);
81
        ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(undef,\@operands);
79
    }
82
    }
80
83
81
    # find results
84
    # find results
82
- 

Return to bug 10766