From bb6c0a3f8e96a958d5d4ef4483957ec969b297d8 Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Fri, 6 Dec 2019 14:14:15 +0100 Subject: [PATCH] refs #16616 [fid] bug boss * fixed some boss bugs --- module/fid/src/View/Helper/Root/GetIt.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/fid/src/View/Helper/Root/GetIt.php b/module/fid/src/View/Helper/Root/GetIt.php index f058c84f3cb..d02fd129cf1 100644 --- a/module/fid/src/View/Helper/Root/GetIt.php +++ b/module/fid/src/View/Helper/Root/GetIt.php @@ -414,9 +414,15 @@ class GetIt extends AbstractHelper public function hideNotice() { if (in_array($this->sid, $this->_getSourceIds('source_idsV8'))) { - if (!in_array('Free', $this->facetAvail) + if (in_array('Online', $this->facetAvail) && (preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) - || preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format)) + || preg_grep($this->_getNonSourceIds('source_idsV8_5'), $this->format) + || preg_grep($this->_getNonSourceIds('source_idsV8_6'), $this->format)) + ) { + return false; + } elseif (in_array('Local', $this->facetAvail) + && (preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format) + || preg_grep($this->_getNonSourceIds('source_idsV8_2'), $this->format)) ) { return false; } -- GitLab