Пример #1
0
 /**
  * Initialize the driver.
  *
  * Validate configuration and perform all resource-intensive tasks needed to
  * make the driver active.
  *
  * @throws ILSException
  * @return void
  */
 public function init()
 {
     parent::init();
     // Define Voyager Restful Settings
     $this->ws_host = $this->config['WebServices']['host'];
     $this->ws_port = $this->config['WebServices']['port'];
     $this->ws_app = $this->config['WebServices']['app'];
     $this->ws_dbKey = $this->config['WebServices']['dbKey'];
     $this->ws_patronHomeUbId = $this->config['WebServices']['patronHomeUbId'];
     $this->ws_pickUpLocations = isset($this->config['pickUpLocations']) ? $this->config['pickUpLocations'] : false;
     $this->defaultPickUpLocation = $this->config['Holds']['defaultPickUpLocation'];
     $this->holdCheckLimit = isset($this->config['Holds']['holdCheckLimit']) ? $this->config['Holds']['holdCheckLimit'] : "15";
     $this->checkRenewalsUpFront = isset($this->config['Renewals']['checkUpFront']) ? $this->config['Renewals']['checkUpFront'] : true;
 }
Пример #2
0
 /**
  * Initialize the driver.
  *
  * Validate configuration and perform all resource-intensive tasks needed to
  * make the driver active.
  *
  * @throws ILSException
  * @return void
  */
 public function init()
 {
     parent::init();
     // Define Voyager Restful Settings
     $this->ws_host = $this->config['WebServices']['host'];
     $this->ws_port = $this->config['WebServices']['port'];
     $this->ws_app = $this->config['WebServices']['app'];
     $this->ws_dbKey = $this->config['WebServices']['dbKey'];
     $this->ws_patronHomeUbId = $this->config['WebServices']['patronHomeUbId'];
     $this->ws_pickUpLocations = isset($this->config['pickUpLocations']) ? $this->config['pickUpLocations'] : false;
     $this->defaultPickUpLocation = isset($this->config['Holds']['defaultPickUpLocation']) ? $this->config['Holds']['defaultPickUpLocation'] : '';
     if ($this->defaultPickUpLocation === 'user-selected') {
         $this->defaultPickUpLocation = false;
     }
     $this->holdCheckLimit = isset($this->config['Holds']['holdCheckLimit']) ? $this->config['Holds']['holdCheckLimit'] : "15";
     $this->callSlipCheckLimit = isset($this->config['StorageRetrievalRequests']['checkLimit']) ? $this->config['StorageRetrievalRequests']['checkLimit'] : "15";
     $this->recallsEnabled = isset($this->config['Holds']['enableRecalls']) ? $this->config['Holds']['enableRecalls'] : true;
     $this->itemHoldsEnabled = isset($this->config['Holds']['enableItemHolds']) ? $this->config['Holds']['enableItemHolds'] : true;
     $this->requestGroupsEnabled = isset($this->config['Holds']['extraHoldFields']) && in_array('requestGroup', explode(':', $this->config['Holds']['extraHoldFields']));
     $this->defaultRequestGroup = isset($this->config['Holds']['defaultRequestGroup']) ? $this->config['Holds']['defaultRequestGroup'] : false;
     if ($this->defaultRequestGroup === 'user-selected') {
         $this->defaultRequestGroup = false;
     }
     $this->pickupLocationsInRequestGroup = isset($this->config['Holds']['pickupLocationsInRequestGroup']) ? $this->config['Holds']['pickupLocationsInRequestGroup'] : false;
     $this->checkItemsExist = isset($this->config['Holds']['checkItemsExist']) ? $this->config['Holds']['checkItemsExist'] : false;
     $this->checkItemsNotAvailable = isset($this->config['Holds']['checkItemsNotAvailable']) ? $this->config['Holds']['checkItemsNotAvailable'] : false;
     $this->checkLoans = isset($this->config['Holds']['checkLoans']) ? $this->config['Holds']['checkLoans'] : false;
     $this->excludedItemLocations = isset($this->config['Holds']['excludedItemLocations']) ? str_replace(':', ',', $this->config['Holds']['excludedItemLocations']) : '';
     $this->allowCancelingAvailableRequests = isset($this->config['Holds']['allowCancelingAvailableRequests']) ? $this->config['Holds']['allowCancelingAvailableRequests'] : true;
 }
Пример #3
0
 /**
  * Initialize the driver.
  *
  * Validate configuration and perform all resource-intensive tasks needed to
  * make the driver active.
  *
  * @throws ILSException
  * @return void
  */
 public function init()
 {
     parent::init();
     // Define Voyager Restful Settings
     $this->ws_host = $this->config['WebServices']['host'];
     $this->ws_port = $this->config['WebServices']['port'];
     $this->ws_app = $this->config['WebServices']['app'];
     $this->ws_dbKey = $this->config['WebServices']['dbKey'];
     $this->ws_patronHomeUbId = $this->config['WebServices']['patronHomeUbId'];
     $this->ws_pickUpLocations = isset($this->config['pickUpLocations']) ? $this->config['pickUpLocations'] : false;
     $this->defaultPickUpLocation = isset($this->config['Holds']['defaultPickUpLocation']) ? $this->config['Holds']['defaultPickUpLocation'] : '';
     if ($this->defaultPickUpLocation === 'user-selected') {
         $this->defaultPickUpLocation = false;
     }
     $this->holdCheckLimit = isset($this->config['Holds']['holdCheckLimit']) ? $this->config['Holds']['holdCheckLimit'] : "15";
     $this->callSlipCheckLimit = isset($this->config['CallSlips']['callSlipCheckLimit']) ? $this->config['CallSlips']['callSlipCheckLimit'] : "15";
     $this->recallsEnabled = isset($this->config['Holds']['enableRecalls']) ? $this->config['Holds']['enableRecalls'] : true;
     $this->itemHoldsEnabled = isset($this->config['Holds']['enableItemHolds']) ? $this->config['Holds']['enableItemHolds'] : true;
     $this->requestGroupsEnabled = isset($this->config['Holds']['extraHoldFields']) && in_array('requestGroup', explode(':', $this->config['Holds']['extraHoldFields']));
     $this->defaultRequestGroup = isset($this->config['Holds']['defaultRequestGroup']) ? $this->config['Holds']['defaultRequestGroup'] : false;
     if ($this->defaultRequestGroup === 'user-selected') {
         $this->defaultRequestGroup = false;
     }
     $this->pickupLocationsInRequestGroup = isset($this->config['Holds']['pickupLocationsInRequestGroup']) ? $this->config['Holds']['pickupLocationsInRequestGroup'] : false;
     $this->checkItemsExist = isset($this->config['Holds']['checkItemsExist']) ? $this->config['Holds']['checkItemsExist'] : false;
     $this->checkItemsNotAvailable = isset($this->config['Holds']['checkItemsNotAvailable']) ? $this->config['Holds']['checkItemsNotAvailable'] : false;
     $this->checkLoans = isset($this->config['Holds']['checkLoans']) ? $this->config['Holds']['checkLoans'] : false;
     $this->excludedItemLocations = isset($this->config['Holds']['excludedItemLocations']) ? str_replace(':', ',', $this->config['Holds']['excludedItemLocations']) : '';
     // Establish a namespace in the session for persisting cached data
     $this->session = new SessionContainer('VoyagerRestful_' . $this->dbName);
 }