Example #1
0
 /**
  * Get Statuses
  *
  * This is responsible for retrieving the status information for a
  * collection of records.
  *
  * @param array $ids
  *            The array of record ids to retrieve the status for
  *
  * @throws ILSException
  * @return array An array of getStatus() return values on success.
  */
 public function getStatuses($ids)
 {
     // We assume all the ids passed here are being processed by only one ILS/Driver
     $source = $this->getSource(reset($ids));
     $driver = $this->getDriver($source);
     if ($driver === null) {
         return $this->getEmptyStatuses($ids);
     }
     if ($driver instanceof XCNCIP2 || $driver instanceof Aleph) {
         foreach ($ids as &$id) {
             $id = $this->stripIdPrefixes($id, $source);
         }
         $statuses = $driver->getStatuses($ids);
         return $this->addIdPrefixes($statuses, $source);
     } else {
         return parent::getStatuses($ids);
     }
 }