示例#1
0
 /**
  * Constructor
  *
  * @param MongoDB $db       Database connection
  * @param string  $basePath RecordManager main directory
  * @param object  $log      Logger
  * @param boolean $verbose  Whether to output verbose messages
  *
  * @throws Exception
  */
 public function __construct($db, $basePath, $log, $verbose)
 {
     parent::__construct($db, $basePath, $log, $verbose);
     if (empty($this->settings['_preview'])) {
         $this->settings['_preview'] = ['institution' => '_preview', 'componentParts' => null, 'format' => '_preview', 'preTransformation' => 'strip_namespaces.xsl', 'extraFields' => [], 'mappingFiles' => []];
     }
     if (empty($this->settings['_marc_preview'])) {
         $this->settings['_marc_preview'] = ['institution' => '_preview', 'componentParts' => null, 'format' => 'marc', 'extraFields' => [], 'mappingFiles' => []];
     }
 }