From d97ac72ab4e2b071493d7e54730fd3d07de91f07 Mon Sep 17 00:00:00 2001
From: Jochen Lienhard <lienhard@ub.uni-freiburg.de>
Date: Fri, 30 Oct 2015 12:32:35 +0100
Subject: [PATCH] Replace hard-coded 'Solr' with method call. - Makes module
 more flexible/reusable.

---
 module/VuFind/src/VuFind/Related/Similar.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/module/VuFind/src/VuFind/Related/Similar.php b/module/VuFind/src/VuFind/Related/Similar.php
index 2478352dcc8..4401fad8438 100644
--- a/module/VuFind/src/VuFind/Related/Similar.php
+++ b/module/VuFind/src/VuFind/Related/Similar.php
@@ -72,8 +72,9 @@ class Similar implements RelatedInterface
      */
     public function init($settings, $driver)
     {
-        $this->results
-            = $this->searchService->similar('Solr', $driver->getUniqueId());
+        $this->results = $this->searchService->similar(
+            $driver->getSourceIdentifier(), $driver->getUniqueId()
+        );
     }
 
     /**
-- 
GitLab