Exemplo n.º 1
0
 /**
  * converts holding to displayeble array
  * @param array holding
  * @return array
  */
 public function unifyHolding($holding)
 {
     if (!is_array($holding) || !isset($holding['@'])) {
         return $holding;
     }
     switch ($holding['@']) {
         case 'MZK':
         case 'MUNI':
             return MZKPortal\RecordDriver\SolrMarcBase::unifyHolding($holding);
         case 'KJM':
             return MZKPortal\RecordDriver\SolrMarcKjm::unifyHolding($holding);
         case 'MEND':
             return MZKPortal\RecordDriver\SolrMarcMend::unifyHolding($holding);
     }
 }
Exemplo n.º 2
0
 /**
  * converts holding to displayeble array
  * @param array holding
  * @param callback for getScheduleOfPeriodics
  * @return array
  */
 public static function unifyHolding($holding)
 {
     $holding_entry = array();
     $holding_entry['library'] = isset($holding['@']) ? $holding['@'] : '';
     $holding_entry['branch'] = isset($holding['l']) ? $holding['l'] : '';
     $holding_entry['branch2'] = isset($holding['r']) ? $holding['r'] : '';
     $holding_entry['sheduleOfPeriodics'] = \MZKPortal\RecordDriver\SolrMarcMend::getSheduleOfPeriodics($holding);
     $holding_entry['signature1'] = isset($holding['g']) ? $holding['g'] : '';
     $holding_entry['signature2'] = isset($holding['h']) ? $holding['h'] : '';
     $holding_entry['barcode'] = isset($holding['b']) ? $holding['b'] : '';
     $holding_entry['status'] = isset($holding['k']) ? $holding['k'] : '';
     $holding_entry['id'] = isset($holding['*']) ? $holding['*'] : '';
     return $holding_entry;
 }