From 0e8e6e71332b3f47a9d131b35ee42ead9e8e5702 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 8 Oct 2012 19:06:04 +0200 Subject: [PATCH] Question marks in series title facet links When series title include a question or exclamation mark, theese must be removed to prevent search failure. http://bugs.koha-community.org/show_bug.cgi?id=8888 Signed-off-by: Owen Leonard Before the patch: Series facet links with ! or ? return no results. After the patch the same links return valid results. Signed-off-by: Paul Poulain --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 7c20780e5f..3a63fcd856 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -532,9 +532,9 @@ sub getRecords { || ( $facets_info->{$link_value}->{'expanded'} ) ) { - # Sanitize the link value ), ( will cause errors with CCL, + # Sanitize the link value : parenthesis, question and exclamation mark will cause errors with CCL my $facet_link_value = $one_facet; - $facet_link_value =~ s/(\(|\))/ /g; + $facet_link_value =~ s/[()!?¡¿؟]/ /g; # fix the length that will display in the label, my $facet_label_value = $one_facet; -- 2.39.5