From 090b1aea7624e87bf1154dc7a501ea268dde6bfd Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Thu, 30 Mar 2017 16:39:16 +0300
Subject: [PATCH] Added hierarchical facet processing also to retrieveBatch
 context. (#949)

---
 .../src/VuFind/Search/Solr/HierarchicalFacetListener.php      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetListener.php b/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetListener.php
index 0f974ae07bc..6f4f6edcb5e 100644
--- a/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetListener.php
+++ b/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetListener.php
@@ -151,7 +151,9 @@ class HierarchicalFacetListener
             return $event;
         }
         $context = $event->getParam('context');
-        if ($context == 'search' || $context == 'retrieve') {
+        if ($context == 'search' || $context == 'retrieve'
+            || $context == 'retrieveBatch'
+        ) {
             $this->processHierarchicalFacets($event);
         }
         return $event;
-- 
GitLab