Skip to content
Snippets Groups Projects
Commit 751d538c authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #16528 [fid] sid boss resolver activate

* modified get it config
* bug fixing
** comment out if exists isxn
** hidden boss notice if boss false
parent 59a6e2a2
No related merge requests found
...@@ -368,7 +368,7 @@ class GetIt extends AbstractHelper ...@@ -368,7 +368,7 @@ class GetIt extends AbstractHelper
public function showPartCopyButton() public function showPartCopyButton()
{ {
if (!in_array('Free', $this->facetAvail) 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) && preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format)
&& !$this->isCollection && !$this->isCollection
&& !preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection) && !preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection)
...@@ -385,21 +385,16 @@ class GetIt extends AbstractHelper ...@@ -385,21 +385,16 @@ class GetIt extends AbstractHelper
{ {
if (!in_array('Free', $this->facetAvail) if (!in_array('Free', $this->facetAvail)
&& in_array($this->sid, $this->_getSourceIds('source_idsV8')) && 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) && !preg_grep($this->_getNonSourceIds('source_idsV8_8'), $this->collection)
) { ) {
if (in_array($this->sid, $this->_getSourceIds('source_idsV9')) if (preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format)
&& preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format)
) { ) {
return true; return true;
} elseif (in_array('Local', $this->facetAvail) } elseif (in_array('Local', $this->facetAvail)
&& preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format) && preg_grep($this->_getNonSourceIds('source_idsV8_3'), $this->format)
) { ) {
return true; return true;
} elseif (in_array('Online', $this->facetAvail)
&& preg_grep($this->_getNonSourceIds('source_idsV8_1'), $this->format)
) {
return true;
} }
} }
return false; return false;
...@@ -415,4 +410,20 @@ class GetIt extends AbstractHelper ...@@ -415,4 +410,20 @@ class GetIt extends AbstractHelper
} }
return false; 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;
}
} }
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