Deleted a line the removed single quotes (') from search strings
authorLiam Whalen <lwhalen@evergreen-dev.catalogue.nrcan.gc.ca>
Wed, 20 Jul 2011 16:49:27 +0000 (12:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 3 Aug 2011 17:00:54 +0000 (13:00 -0400)
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 <lwhalen@evergreen-dev.catalogue.nrcan.gc.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm

index 01212da..92cb75a 100644 (file)
@@ -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