Lines 574-579
sub getRecords {
Link Here
|
574 |
{ |
574 |
{ |
575 |
|
575 |
|
576 |
# Sanitize the link value : parenthesis, question and exclamation mark will cause errors with CCL |
576 |
# Sanitize the link value : parenthesis, question and exclamation mark will cause errors with CCL |
|
|
577 |
utf8::decode($one_facet); |
577 |
my $facet_link_value = $one_facet; |
578 |
my $facet_link_value = $one_facet; |
578 |
$facet_link_value =~ s/[()!?¡¿؟]/ /g; |
579 |
$facet_link_value =~ s/[()!?¡¿؟]/ /g; |
579 |
|
580 |
|
Lines 1205-1211
sub parseQuery {
Link Here
|
1205 |
$query .= " #$modifier"; |
1206 |
$query .= " #$modifier"; |
1206 |
} |
1207 |
} |
1207 |
} |
1208 |
} |
1208 |
|
|
|
1209 |
$query_desc = $query; |
1209 |
$query_desc = $query; |
1210 |
$query_desc =~ s/\s+/ /g; |
1210 |
$query_desc =~ s/\s+/ /g; |
1211 |
if ( C4::Context->preference("QueryWeightFields") ) { |
1211 |
if ( C4::Context->preference("QueryWeightFields") ) { |
Lines 1251-1257
sub buildQuery {
Link Here
|
1251 |
|
1251 |
|
1252 |
my $query_desc; |
1252 |
my $query_desc; |
1253 |
( $operators, $operands, $indexes, $limits, $sort_by, $scan, $lang, $query_desc) = parseQuery($operators, $operands, $indexes, $limits, $sort_by, $scan, $lang); |
1253 |
( $operators, $operands, $indexes, $limits, $sort_by, $scan, $lang, $query_desc) = parseQuery($operators, $operands, $indexes, $limits, $sort_by, $scan, $lang); |
1254 |
|
|
|
1255 |
# dereference |
1254 |
# dereference |
1256 |
my @operators = $operators ? @$operators : (); |
1255 |
my @operators = $operators ? @$operators : (); |
1257 |
my @indexes = $indexes ? @$indexes : (); |
1256 |
my @indexes = $indexes ? @$indexes : (); |
Lines 1606-1611
sub buildQuery {
Link Here
|
1606 |
warn "LIMIT DESC:" . $limit_desc; |
1605 |
warn "LIMIT DESC:" . $limit_desc; |
1607 |
warn "---------\nLeave buildQuery\n---------"; |
1606 |
warn "---------\nLeave buildQuery\n---------"; |
1608 |
} |
1607 |
} |
|
|
1608 |
utf8::decode($query_desc); |
1609 |
return ( |
1609 |
return ( |
1610 |
undef, $query, $simple_query, $query_cgi, |
1610 |
undef, $query, $simple_query, $query_cgi, |
1611 |
$query_desc, $limit, $limit_cgi, $limit_desc, |
1611 |
$query_desc, $limit, $limit_cgi, $limit_desc, |