kmain151_replace_dash_with_space
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:07:25 +0000 (17:07 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 3b95587

Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 031a715..c6e8923 100644 (file)
@@ -47,7 +47,7 @@ sub _prepare_biblio_search_basics {
         # This stuff probably will need refined or rethought to better handle
         # the weird things Real Users will surely type in.
         $contains = "" unless defined $contains; # silence warning
-        $query =~ s/-//g; # Get rid of -
+        $query =~ s/-/ /g; # replace dash with space
         if ($contains eq 'nocontains') {
             $query =~ s/"//g;
             $query = ('"' . $query . '"') if index $query, ' ';