Bugzilla – Attachment 16130 Details for
Bug 9239
Koha should share Evergreen's QueryParser module for parsing queries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9239 QA follow-up: remove stray debug code
Bug-9239-QA-follow-up-remove-stray-debug-code.patch (text/plain), 3.33 KB, created by
Jared Camins-Esakov
on 2013-03-14 14:13:37 UTC
(
hide
)
Description:
Bug 9239 QA follow-up: remove stray debug code
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2013-03-14 14:13:37 UTC
Size:
3.33 KB
patch
obsolete
>From bda36db53e0606fdb25f0b1bad267be72436ed9f Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Thu, 14 Mar 2013 10:11:16 -0400 >Subject: [PATCH] Bug 9239 QA follow-up: remove stray debug code > >Remove a line of debug code from EG, provide better error handling >when presented with weird data in the authority linker, and correct >queryparser configuration to reflect the correct configuration for >Zebra. >--- > C4/AuthoritiesMarc.pm | 2 +- > C4/Biblio.pm | 2 +- > Koha/QueryParser/Driver/PQF/query_plan/node.pm | 2 +- > OpenILS/QueryParser.pm | 2 +- > etc/searchengine/queryparser.yaml | 3 +++ > 5 files changed, 7 insertions(+), 4 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 68dcfb4..db06f3d 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -283,7 +283,7 @@ sub SearchAuthorities { > $dosearch=1; > ++$attr_cnt; > if ($QParser) { >- $qpquery .= " $tags->[$i]:$value->[$i]"; >+ $qpquery .= " $tags->[$i]:\"$value->[$i]\""; > } > }#if value > } >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 2c7170c..930c21a 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -667,7 +667,7 @@ sub _check_valid_auth_link { > require C4::AuthoritiesMarc; > > my $authorized_heading = >- C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } ); >+ C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } ) || ''; > > return ($field->as_string('abcdefghijklmnopqrstuvwxyz') eq $authorized_heading); > } >diff --git a/Koha/QueryParser/Driver/PQF/query_plan/node.pm b/Koha/QueryParser/Driver/PQF/query_plan/node.pm >index 6e0a605..3727e34 100644 >--- a/Koha/QueryParser/Driver/PQF/query_plan/node.pm >+++ b/Koha/QueryParser/Driver/PQF/query_plan/node.pm >@@ -34,7 +34,7 @@ sub target_syntax { > if ($relbump) { > $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'}; > } >- push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && scalar @fields)); >+ push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1)); > } > } else { > $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $self->classname, $server); >diff --git a/OpenILS/QueryParser.pm b/OpenILS/QueryParser.pm >index e5aaf09..f0051f7 100644 >--- a/OpenILS/QueryParser.pm >+++ b/OpenILS/QueryParser.pm >@@ -1175,7 +1175,7 @@ sub decompose { > # Cleanup the phrase to make it so that we don't parse things in it as anything other than atoms > $phrase =~ s/$phrase_cleanup_re/ /g; > >- $_ = $phrase . $temp_val; >+ $_ = $temp_val; > > } > >diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml >index f54ac3b..0cce85c 100644 >--- a/etc/searchengine/queryparser.yaml >+++ b/etc/searchengine/queryparser.yaml >@@ -1133,6 +1133,9 @@ field_mappings: > bib1_mapping: > authorityserver: > 1: Match-heading >+ 4: 1 >+ 5: 100 >+ 6: 3 > enabled: 1 > index: matchheading > label: Matchheading >-- >1.7.9.5
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 9239
:
14020
|
14021
|
14022
|
14023
|
14172
|
14173
|
14174
|
14175
|
14180
|
14181
|
14182
|
14183
|
14847
|
14949
|
14950
|
14951
|
14952
|
14953
|
15121
|
15437
|
15865
|
15867
|
15929
|
15999
|
16004
|
16051
|
16125
|
16130
|
16131
|
16132
|
16133
|
16136
|
16140
|
16141
|
16142
|
16143
|
16144
|
16145
|
16146
|
16147
|
16148
|
16149
|
16150
|
16151
|
16152
|
16153
|
16154
|
16155
|
16180
|
16181
|
16182
|
16183
|
16184
|
16185
|
16186
|
16187
|
16188
|
16189
|
16190
|
16191
|
16192
|
16193
|
16194
|
16195