From be5c093720105f687fd91cc00e16cfaaec38e631 Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Mon, 2 Dec 2019 14:30:39 +0100
Subject: [PATCH] refs #16565 [fid] bug fixing access urls

* regex only for EBC EBooks
** set config
* bug fixing ticket 16523
---
 module/fid/src/View/Helper/Root/GetIt.php | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/module/fid/src/View/Helper/Root/GetIt.php b/module/fid/src/View/Helper/Root/GetIt.php
index 59bce57db1a..5c7e2f870ab 100644
--- a/module/fid/src/View/Helper/Root/GetIt.php
+++ b/module/fid/src/View/Helper/Root/GetIt.php
@@ -402,4 +402,15 @@ class GetIt extends AbstractHelper
         }
         return false;
     }
+
+    public function isEBCEBooks()
+    {
+        if (in_array('Online', $this->facetAvail)
+            && in_array($this->sid, $this->_getSourceIds('source_idsV9'))
+            && preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection)
+        ) {
+            return true;
+        }
+        return false;
+    }
 }
-- 
GitLab