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

(-)a/C4/Search.pm (-2 / +4 lines)
Lines 1180-1186 sub searchResults { Link Here
1180
    # add search-term highlighting via <span>s on the search terms
1180
    # add search-term highlighting via <span>s on the search terms
1181
    my $span_terms_hashref;
1181
    my $span_terms_hashref;
1182
    for my $span_term ( split( / /, $searchdesc ) ) {
1182
    for my $span_term ( split( / /, $searchdesc ) ) {
1183
        $span_term =~ s/(.*=|\)|\(|\+|\.|\*)//g;
1183
        $span_term =~ s/(.*=|\)|\(|\+|\.|\*|\")//g;
1184
        $span_terms_hashref->{$span_term}++;
1184
        $span_terms_hashref->{$span_term}++;
1185
    }
1185
    }
1186
1186
Lines 1356-1361 sub searchResults { Link Here
1356
            if ( length($term) > 3 ) {
1356
            if ( length($term) > 3 ) {
1357
                $term =~ s/(.*=|\)|\(|\+|\.|\?|\[|\]|\\|\*)//g;
1357
                $term =~ s/(.*=|\)|\(|\+|\.|\?|\[|\]|\\|\*)//g;
1358
				foreach(qw(title subtitle author publishercode place pages notes size)) {
1358
				foreach(qw(title subtitle author publishercode place pages notes size)) {
1359
					if (! utf8::is_utf8($term)) {
1360
						utf8::decode($term);
1361
					}
1359
                	$oldbiblio->{$_} =~ s/$term/<span class=\"term\">$&<\/span>/gi;
1362
                	$oldbiblio->{$_} =~ s/$term/<span class=\"term\">$&<\/span>/gi;
1360
				}
1363
				}
1361
            }
1364
            }
1362
- 

Return to bug 3593