Ejemplo n.º 1
0
 /**
  * Get access to the raw File_MARC object.
  *
  * @return \File_MARCBASE
  * @throws \Exception
  * @throws \File_MARC_Exception
  */
 public function getMarcRecord()
 {
     // handle availability of fullrecord
     if (!isset($this->fields['fullrecord'])) {
         // retrieve fullrecord from external source
         if (!isset($this->fields['id'])) {
             throw new \Exception('No unique id given for fullrecord retrieval');
         }
         $this->fields['fullrecord'] = $this->getRemoteFullrecord($this->fields['id']);
     }
     return parent::getMarcRecord();
 }