From bc31dc85f9d75b03e25eee3d88a04d7e0de00ef7 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 30 Dec 2015 15:54:56 +0000 Subject: [PATCH] Bug 9819 [QA Followup] - Removed missed stopwords refs, remove Schema file Signed-off-by: Kyle M Hall --- C4/Search.pm | 1 - Koha/Schema/Result/Stopword.pm | 45 ---------------------------------- acqui/neworderbiblio.pl | 4 +-- 3 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 Koha/Schema/Result/Stopword.pm diff --git a/C4/Search.pm b/C4/Search.pm index a2df85776d..e217f60273 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1530,7 +1530,6 @@ sub buildQuery { #top of the results just because they have lots of item records matching that date. #Fuzzy actually only applies during _build_weighted_query, and is reset there anyway, so #irrelevant here - #remove_stopwords doesn't function anymore so is irrelevant $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = 0; } # ISBN,ISSN,Standard Number, don't need special treatment diff --git a/Koha/Schema/Result/Stopword.pm b/Koha/Schema/Result/Stopword.pm deleted file mode 100644 index 2fd88b607f..0000000000 --- a/Koha/Schema/Result/Stopword.pm +++ /dev/null @@ -1,45 +0,0 @@ -use utf8; -package Koha::Schema::Result::Stopword; - -# Created by DBIx::Class::Schema::Loader -# DO NOT MODIFY THE FIRST PART OF THIS FILE - -=head1 NAME - -Koha::Schema::Result::Stopword - -=cut - -use strict; -use warnings; - -use base 'DBIx::Class::Core'; - -=head1 TABLE: C - -=cut - -__PACKAGE__->table("stopwords"); - -=head1 ACCESSORS - -=head2 word - - data_type: 'varchar' - is_nullable: 1 - size: 255 - -=cut - -__PACKAGE__->add_columns( - "word", - { data_type => "varchar", is_nullable => 1, size => 255 }, -); - - -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8cIdWFpf7DlA61On1F7cVg - - -# You can replace this text with custom content, and it will be preserved on regeneration -1; diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl index 26d868b84b..4269fe6d91 100755 --- a/acqui/neworderbiblio.pl +++ b/acqui/neworderbiblio.pl @@ -102,8 +102,8 @@ my $builtquery; if ($QParser) { $builtquery = $query; } else { - my ( $builterror,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type); - ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(undef,\@operands); + my ( $builterror,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type); + ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type) = buildQuery(undef,\@operands); } my ( $error, $marcresults, $total_hits ) = SimpleSearch( $builtquery, $results_per_page * ( $page - 1 ), $results_per_page ); -- 2.39.5