From 4492e023d5eb1fb86aa40ec3f7a03dff737cec96 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) Signed-off-by: cori Rebased-on: 2019-03-20 Alex Arnaud --- Koha/MetaSearcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/MetaSearcher.pm b/Koha/MetaSearcher.pm index 1ec81b1..8f3e78c 100644 --- a/Koha/MetaSearcher.pm +++ b/Koha/MetaSearcher.pm @@ -245,7 +245,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.7.4