Bugzilla – Attachment 46092 Details for
Bug 9819
stopwords related code should be removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9819 [QA Followup] - Removed missed stopwords refs, remove Schema file
Bug-9819-QA-Followup---Removed-missed-stopwords-re.patch (text/plain), 3.01 KB, created by
Kyle M Hall (khall)
on 2015-12-30 15:55:32 UTC
(
hide
)
Description:
Bug 9819 [QA Followup] - Removed missed stopwords refs, remove Schema file
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-12-30 15:55:32 UTC
Size:
3.01 KB
patch
obsolete
>From 957b5c277dc43e0a26b646a9c9b63cce7df417ae Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 30 Dec 2015 15:54:56 +0000 >Subject: [PATCH] Bug 9819 [QA Followup] - Removed missed stopwords refs, > remove Schema file > >--- > 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 a2df857..e217f60 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 2fd88b6..0000000 >--- 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<stopwords> >- >-=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 26d868b..4269fe6 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.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9819
:
17341
|
17342
|
17343
|
17558
|
17559
|
17560
|
17587
|
45685
|
45686
|
45687
|
45688
|
45689
|
45791
|
45792
|
45793
|
45794
|
45795
|
45854
|
45855
|
45856
|
45857
|
45858
| 46092