/** * Get circulation statuses for all elements of the item * * @param String $sysNumber SysNumber * * @return Array[] */ protected function getItemCirculationStatuses($sysNumber) { $data = []; try { $circulationStatuses = $this->ils->getDriver()->getCirculationStatus($sysNumber); foreach ($circulationStatuses as $circulationStatus) { $data[$circulationStatus['barcode']] = $circulationStatus; } } catch (\Exception $e) { //todo: GH get logging service } return $data; }
/** * Set the ILS connection for this object. * * @param \VuFind\ILS\Connection $connection ILS connection to set * * @return void */ public function setCatalog(\VuFind\ILS\Connection $connection) { // Right now, MultiILS authentication only works with the MultiBackend // driver; if other ILS drivers eventually support this option, we // should define an interface containing getLoginDrivers() and // getDefaultLoginDriver(). if (!$connection->getDriver() instanceof MultiBackend) { throw new \Exception('MultiILS authentication requires MultiBackend ILS driver.'); } return parent::setCatalog($connection); }