Example #1
0
 /**
  * Get an array of information about record holdings, obtained in real-time
  * from the ILS.
  *
  * @param array $patron An array of patron data
  *
  * @return array
  * @access protected
  */
 protected function getRealTimeHoldings($patron = false)
 {
     // Get ID and connect to catalog
     $id = $this->getUniqueID();
     $catalog = ConnectionManager::connectToCatalog();
     include_once 'sys/HoldLogic.php';
     $holdLogic = new HoldLogic($catalog);
     return $holdLogic->getHoldings($id, $patron);
 }
Example #2
0
 /**
  * Get an array of information about record holdings, obtained in real-time
  * from the Hierarchy Driver.
  *
  * @param array $patron An array of patron data
  *
  * @return array
  * @access protected
  */
 protected function getRealTimeHoldings($patron = false)
 {
     global $configArray;
     // Get ID and connect to catalog
     $id = $this->getUniqueID();
     $hierarchyType = $this->getHierarchyType();
     if ($hierarchy = HierarchyFactory::initHierarchy($hierarchyType)) {
         include_once 'sys/HoldLogic.php';
         $holdLogic = new HoldLogic($hierarchy);
         return $holdLogic->getHoldings($id, $patron);
     }
     return false;
 }