kmain-151 - Hyphens are ignored in search.
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:07:06 +0000 (17:07 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 9ff8534

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

index f62f06e..031a715 100644 (file)
@@ -47,6 +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 -
         if ($contains eq 'nocontains') {
             $query =~ s/"//g;
             $query = ('"' . $query . '"') if index $query, ' ';