Bugzilla – Attachment 32330 Details for
Bug 11232
Retrieve facets from Zebra
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11232: (followup) Configuration variable for enabling Zebra facets
Bug-11232-followup-Configuration-variable-for-enab.patch (text/plain), 2.41 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-10-15 13:34:29 UTC
(
hide
)
Description:
Bug 11232: (followup) Configuration variable for enabling Zebra facets
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-10-15 13:34:29 UTC
Size:
2.41 KB
patch
obsolete
>From b529dc690e85aa1642875b1174d7976a007ce5b3 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 15 Oct 2014 10:28:44 -0300 >Subject: [PATCH] Bug 11232: (followup) Configuration variable for enabling > Zebra facets > >This patch adds a variable to koha-conf.xml controlling the use of Zebra facets. > >Usage: > - use_zebra_facets = 1 | 0 > >Zebra facets work only on DOM. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > C4/Search.pm | 6 ++++-- > debian/templates/koha-conf-site.xml.in | 1 + > etc/koha-conf.xml | 1 + > 3 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 7abe096..ed9538f 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -634,9 +634,11 @@ sub GetFacets { > my $rs = shift; > my $facets; > >- my $index_mode = C4::Context->config('zebra_auth_index_mode') // 'dom'; >+ my $indexing_mode = C4::Context->config('zebra_bib_index_mode') // 'dom'; >+ my $use_zebra_facets = C4::Context->config('use_zebra_facets') // 0; > >- if ( $index_mode eq 'dom' ) { >+ if ( $indexing_mode eq 'dom' && >+ $use_zebra_facets ) { > $facets = _get_facets_from_zebra( $rs ); > } else { > $facets = _get_facets_from_records( $rs ); >diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in >index 371b1d2..1892960 100644 >--- a/debian/templates/koha-conf-site.xml.in >+++ b/debian/templates/koha-conf-site.xml.in >@@ -281,6 +281,7 @@ > <zebra_bib_index_mode>__BIBLIOS_INDEXING_MODE__</zebra_bib_index_mode> > <zebra_auth_index_mode>__AUTHORITIES_INDEXING_MODE__</zebra_auth_index_mode> > <zebra_lockdir>/var/lock/koha/__KOHASITE__</zebra_lockdir> >+ <use_zebra_facets>1</use_zebra_facets> > <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config> > </config> > >diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml >index 534bd13..0392fb8 100644 >--- a/etc/koha-conf.xml >+++ b/etc/koha-conf.xml >@@ -112,6 +112,7 @@ __PAZPAR2_TOGGLE_XML_POST__ > <zebra_bib_index_mode>__BIB_INDEX_MODE__</zebra_bib_index_mode> > <zebra_auth_index_mode>__AUTH_INDEX_MODE__</zebra_auth_index_mode> > <zebra_lockdir>__ZEBRA_LOCK_DIR__</zebra_lockdir> >+ <use_zebra_facets>1</use_zebra_facets> > <queryparser_config>__KOHA_CONF_DIR__/searchengine/queryparser.yaml</queryparser_config> > > <!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm --> >-- >1.9.1
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 11232
:
26911
|
31426
|
31427
|
31428
|
31429
|
31430
|
31431
|
31432
|
31433
|
31434
|
31435
|
31436
|
31455
|
31456
|
31457
|
31458
|
31459
|
31460
|
31781
|
31782
|
31783
|
31784
|
31785
|
31786
|
31795
|
31796
|
31797
|
31798
|
31799
|
31800
|
32152
|
32153
|
32154
|
32155
|
32156
|
32157
|
32330
|
32331
|
32350
|
32352
|
32353
|
32354
|
32355
|
32356
|
32357
|
32358
|
32359
|
32360