diff --git a/module/fid/src/View/Helper/Root/GetIt.php b/module/fid/src/View/Helper/Root/GetIt.php index cf714571d103489d220399d7a65ab7e72cb816a1..00d94c7a5181f51cedce91a849641405aab92656 100644 --- a/module/fid/src/View/Helper/Root/GetIt.php +++ b/module/fid/src/View/Helper/Root/GetIt.php @@ -368,7 +368,7 @@ class GetIt extends AbstractHelper public function showPartCopyButton() { if (!in_array('Free', $this->facetAvail) - && in_array($this->sid, $this->_getSourceIds('source_idsV9')) + && in_array($this->sid, $this->_getSourceIds('source_idsV8')) && preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) && !$this->isCollection && !preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection) @@ -385,21 +385,16 @@ class GetIt extends AbstractHelper { if (!in_array('Free', $this->facetAvail) && in_array($this->sid, $this->_getSourceIds('source_idsV8')) - && (!empty($this->isbn) || !empty($this->issn)) + //&& (!empty($this->isbn) || !empty($this->issn)) && !preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection) ) { - if (in_array($this->sid, $this->_getSourceIds('source_idsV9')) - && preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) + if (preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) ) { return true; } elseif (in_array('Local', $this->facetAvail) && preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format) ) { return true; - } elseif (in_array('Online', $this->facetAvail) - && preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) - ) { - return true; } } return false; @@ -415,4 +410,20 @@ class GetIt extends AbstractHelper } return false; } + + public function hideNotice() + { + if (in_array($this->sid, $this->_getSourceIds('source_idsV8'))) { + if (in_array('Online', $this->facetAvail) + && preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format) + ) { + return false; + } elseif (in_array('Local', $this->facetAvail) + && preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format) + ) { + return false; + } + } + return true; + } }