From: Liam Whalen Date: Wed, 20 Jul 2011 16:49:27 +0000 (-0400) Subject: Deleted a line the removed single quotes (') from search strings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e8fb1f54fdc871dc313641d035d25370b171babf;p=evergreen%2Ftadl.git Deleted a line the removed single quotes (') from search strings The multiclass_query function replaces single quotes with spaces (') ( ). This causes a problem when toggling between Advanced and Basic search. If a search is conducted with a ' in it, that quote appears in the basic search box displayed above the results. However, if the user then clicks the 'Advanced' button to toggle to the advanced search the single quote is missing from the search term. By removing the line $query =~ /s/'/ /go; from Biblio.pm this problem is resolved. Signed-off-by: Liam Whalen Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm index 01212dae55..92cb75ae90 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -789,7 +789,6 @@ sub multiclass_query { my $orig_query = $query; $query =~ s/\+/ /go; - $query =~ s/'/ /go; $query =~ s/^\s+//go; # convert convenience classes (e.g. kw for keyword) to the full class name