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

(-)a/C4/Search.pm (-4 / +2 lines)
Lines 1117-1123 sub buildQuery { Link Here
1117
                }
1117
                }
1118
                # ISBN,ISSN,Standard Number, don't need special treatment
1118
                # ISBN,ISSN,Standard Number, don't need special treatment
1119
                elsif ( $index eq 'nb' || $index eq 'ns' ) {
1119
                elsif ( $index eq 'nb' || $index eq 'ns' ) {
1120
                    $indexes_set++;
1121
                    (
1120
                    (
1122
                        $stemming,      $auto_truncation,
1121
                        $stemming,      $auto_truncation,
1123
                        $weight_fields, $fuzzy_enabled,
1122
                        $weight_fields, $fuzzy_enabled,
Lines 1132-1138 sub buildQuery { Link Here
1132
1131
1133
                # Set default structure attribute (word list)
1132
                # Set default structure attribute (word list)
1134
                my $struct_attr = q{};
1133
                my $struct_attr = q{};
1135
                unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl)/ ) {
1134
                unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl|nb|ns)/ ) {
1136
                    $struct_attr = ",wrdl";
1135
                    $struct_attr = ",wrdl";
1137
                }
1136
                }
1138
1137
Lines 1324-1330 sub buildQuery { Link Here
1324
    # This is flawed , means we can't search anything with : in it
1323
    # This is flawed , means we can't search anything with : in it
1325
    # if user wants to do ccl or cql, start the query with that
1324
    # if user wants to do ccl or cql, start the query with that
1326
#    $query =~ s/:/=/g;
1325
#    $query =~ s/:/=/g;
1327
    $query =~ s/(?<=(ti|au|pb|su|an|kw|mc)):/=/g;
1326
    $query =~ s/(?<=(ti|au|pb|su|an|kw|mc|nb|ns)):/=/g;
1328
    $query =~ s/(?<=(wrdl)):/=/g;
1327
    $query =~ s/(?<=(wrdl)):/=/g;
1329
    $query =~ s/(?<=(trn|phr)):/=/g;
1328
    $query =~ s/(?<=(trn|phr)):/=/g;
1330
    $limit =~ s/:/=/g;
1329
    $limit =~ s/:/=/g;
1331
- 

Return to bug 5555