Skip to content
Snippets Groups Projects
Commit 69f47f5f authored by André Lahmann's avatar André Lahmann
Browse files

* added source_id-filter in SolrMarcFincTrait to connect to ILS only for given source_id(s)

parent 4439ad8d
No related merge requests found
......@@ -40,6 +40,25 @@ namespace finc\RecordDriver;
*/
trait SolrMarcFincTrait
{
/**
* Do we have an attached ILS connection and (finc specific) do we want ILS support
* for the records source_id?
*
* @return bool
*/
protected function hasILS()
{
// put all ILS supported source_id in here
$ilsSourceIds = ['0'];
if (in_array($this->getSourceID(), $ilsSourceIds)) {
return parent::hasILS();
}
// ILS connection for this source_id not supported
return false;
}
/**
* Return an array of associative URL arrays with one or more of the following
* keys:
......
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