From 800762db708bf087635cf29e02c390c60ab9538e Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Tue, 10 Mar 2020 14:31:43 +0100
Subject: [PATCH] refs #17126 [fid_bbi] adds correct call to EblRewrite service

* bugfixes search error
---
 module/fid_bbi/src/fid_bbi/View/Helper/Root/Factory.php | 2 +-
 module/fid_bbi/src/fid_bbi/View/Helper/Root/Record.php  | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/module/fid_bbi/src/fid_bbi/View/Helper/Root/Factory.php b/module/fid_bbi/src/fid_bbi/View/Helper/Root/Factory.php
index 8b96f55de72..babf0f5cecf 100644
--- a/module/fid_bbi/src/fid_bbi/View/Helper/Root/Factory.php
+++ b/module/fid_bbi/src/fid_bbi/View/Helper/Root/Factory.php
@@ -55,7 +55,7 @@ class Factory
             $container->get('VuFind\Config')->get('config'),
             $container->get('ViewHelperManager')->get('url'),
             $container->get('VuFind\AuthManager'),
-            $container->get('finc\Rewrite'),
+            $container->get('finc\Rewrite\EblRewrite'),
             $container->get('VuFind\Config')->get('Resolver')
         );
 
diff --git a/module/fid_bbi/src/fid_bbi/View/Helper/Root/Record.php b/module/fid_bbi/src/fid_bbi/View/Helper/Root/Record.php
index e3c3b24acbe..c7b71b08dff 100644
--- a/module/fid_bbi/src/fid_bbi/View/Helper/Root/Record.php
+++ b/module/fid_bbi/src/fid_bbi/View/Helper/Root/Record.php
@@ -27,9 +27,6 @@
  */
 namespace fid_bbi\View\Helper\Root;
 
-use finc\Rewrite;
-use Symfony\Component\Config\Definition\Exception\Exception;
-
 /**
  * Record driver view helper
  *
-- 
GitLab