Ejemplo n.º 1
0
 /**
  * Get an array of information about record holdings, obtained in real-time
  * from the ILS.
  *
  * @return array
  */
 public function getRealTimeHoldings()
 {
     return $this->hasILS() ? $this->holdLogic->getHoldings($this->getUniqueID(), $this->getConsortialIDs()) : [];
 }
Ejemplo n.º 2
0
 /**
  * Get Hold Form
  *
  * Supplies holdLogic with the form details required to place a request
  *
  * @param array  $details  An array of item data
  * @param array  $HMACKeys An array of keys to hash
  * @param string $action   The action for which the details are built
  *
  * @return array             Details for generating URL
  */
 protected function getRequestDetails($details, $HMACKeys, $action)
 {
     $details['requestType'] = $action;
     return parent::getRequestDetails($details, $HMACKeys, $action);
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  *
  * @param \VuFind\Auth\Manager $account Auth manager object
  * @param ILSConnection        $ils     A catalog connection
  * @param \VuFind\Crypt\HMAC   $hmac    HMAC generator
  * @param \Zend\Config\Config  $config  VuFind configuration
  */
 public function __construct(\VuFind\Auth\ILSAuthenticator $ilsAuth, ILSConnection $ils, \VuFind\Crypt\HMAC $hmac, \Zend\Config\Config $config)
 {
     parent::__construct($ilsAuth, $ils, $hmac, $config);
 }
Ejemplo n.º 4
0
 /**
  * Constructor
  *
  * @param \VuFind\Auth\Manager $account Auth manager object
  * @param ILSConnection        $ils     A catalog connection
  * @param \VuFind\Crypt\HMAC   $hmac    HMAC generator
  * @param \Zend\Config\Config  $config  VuFind configuration
  */
 public function __construct(\VuFind\Auth\Manager $account, ILSConnection $ils, \VuFind\Crypt\HMAC $hmac, \Zend\Config\Config $config)
 {
     parent::__construct($account, $ils, $hmac, $config);
 }
Ejemplo n.º 5
0
 /**
  * Get an array of information about record holdings, obtained in real-time
  * from the ILS.
  *
  * @param \VuFind\Auth\Manager $account Auth manager object
  *
  * @return array
  */
 public function getRealTimeHoldings(\VuFind\Auth\Manager $account)
 {
     $holdLogic = new HoldLogic($account, $this->getILS());
     return $holdLogic->getHoldings($this->getUniqueID());
 }