Skip to content
Snippets Groups Projects
Commit 399004e3 authored by Gregor Gawol's avatar Gregor Gawol Committed by Sebastian Kehr
Browse files

refs #16627 [fid] ebook notice bug

* display ebook notice
parent c9334f0c
No related merge requests found
...@@ -309,6 +309,8 @@ class GetIt extends AbstractHelper ...@@ -309,6 +309,8 @@ class GetIt extends AbstractHelper
return $this->translate('getit_text_10'); return $this->translate('getit_text_10');
} elseif (preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format)) { } elseif (preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format)) {
return $this->translate('getit_text_14'); return $this->translate('getit_text_14');
} else {
return '';
} }
} elseif (in_array('Free', $this->facetAvail)) { } elseif (in_array('Free', $this->facetAvail)) {
return $this->translate('getit_text_1'); return $this->translate('getit_text_1');
...@@ -425,6 +427,10 @@ class GetIt extends AbstractHelper ...@@ -425,6 +427,10 @@ class GetIt extends AbstractHelper
|| preg_grep($this->_getNonSourceIds('source_idsV8_2'), $this->format)) || preg_grep($this->_getNonSourceIds('source_idsV8_2'), $this->format))
) { ) {
return false; return false;
} elseif (in_array('Local', $this->facetAvail)
&& preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format)
) {
return false;
} }
} }
return true; return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment