From 167287f3b256917346c00ae539150bab9d47cfb4 Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Fri, 24 Aug 2018 15:45:16 -0300
Subject: [PATCH] Bug 14302: (follow-up) Remove traces in C4::Search and
 C4::Context

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 C4/Context.pm | 7 -------
 C4/Search.pm  | 4 +---
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/C4/Context.pm b/C4/Context.pm
index 720fcb4..9b3f74d 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -608,17 +608,10 @@ sub _new_Zconn {
     my $tried=0; # first attempt
     my $Zconn; # connection object
     my $elementSetName;
-    my $index_mode;
     my $syntax;
 
     $server //= "biblioserver";
 
-    if ( $server eq 'biblioserver' ) {
-        $index_mode = $context->{'config'}->{'zebra_bib_index_mode'} // 'dom';
-    } elsif ( $server eq 'authorityserver' ) {
-        $index_mode = $context->{'config'}->{'zebra_auth_index_mode'} // 'dom';
-    }
-
     $syntax = 'xml';
     $elementSetName = 'marcxml';
 
diff --git a/C4/Search.pm b/C4/Search.pm
index 3a3a57d..06e837d 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -654,11 +654,9 @@ sub GetFacets {
     my $rs = shift;
     my $facets;
 
-    my $indexing_mode    = C4::Context->config('zebra_bib_index_mode') // 'dom';
     my $use_zebra_facets = C4::Context->config('use_zebra_facets') // 0;
 
-    if ( $indexing_mode eq 'dom' &&
-         $use_zebra_facets ) {
+    if ( $use_zebra_facets ) {
         $facets = _get_facets_from_zebra( $rs );
     } else {
         $facets = _get_facets_from_records( $rs );
-- 
2.1.4