From 176553a1704ea4097ad952643ec63fcd7ab1cc50 Mon Sep 17 00:00:00 2001 From: Cori Lynn Arnold Date: Tue, 16 Oct 2018 12:51:50 +0000 Subject: [PATCH] Bug 18823: Search improvements Search can now find titles and keywords with single quotes i.e. "Time Traveler's Wife" in import batches. Tests: 1) Open advanced cataloging edtior 2) Under settings select 'Import Batches' 3) Create a few import batches, some for searching and some as targets (and some both) 3.a) note that import batches for saving appear on the left side as targets to save 4) Search for a bibliographic record, make changes and apply to an import batch 5) Search for the bibliographic record in the import batch by author, title, isbn 6) Make changes to the import batch records and verify the changes are applied (either through searching again, or through the Staged MARC management page in Tools) --- Koha/MetaSearcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/MetaSearcher.pm b/Koha/MetaSearcher.pm index 6289318bc7..53c645279c 100644 --- a/Koha/MetaSearcher.pm +++ b/Koha/MetaSearcher.pm @@ -244,7 +244,7 @@ sub _db_query_get_match_conditions { } elsif ( $_batch_db_text_columns->{$index} ) { my $stripped_value = $value; - $stripped_value =~ s/[^\w ]//g; + $stripped_value =~ s/[^\w ]/.*/g; $stripped_value =~ s/^ +| +$//g; return $value if ( !$stripped_value ); -- 2.11.0