{ return $this->itemArray; } } $time_start = microtime(true); define('CTER', chr(27) . "[K\r"); //clear to end and carriage return define('CTEN', chr(27) . "[K\r\n"); //clear to end and newline define('SOURCE_ID', 1); // DRIAD source id of CONTENTdm define('REGEX_CDM_DELETED_dc.LOG', "/^([0-9]{4}\\-[0-9]{2}\\-[0-9]{2})\\s((?:[0-9]{1,2}\\:)*[0-9]{1,2})\\s((?:[0-9]{1,3}\\.){3}[0-9]{1,3})\\s([a-z0-9]+)\\s([a-z]+)\\s([a-z0-9]+)\$/mi"); define('REGEX_CDM_SPLIT_CATALOGUE', "/(^(\\/{1}[^\\s]*)(?:\\s*+)(\\b.*?)(?:\\s*+)(\\/{1}[a-z0-9\\/]+){1}(?:\\s*)\$)/mi"); $conf = parse_ini_file('config.ini'); $ingester = new ContentDM(); echo json_encode($ingester->getFieldMappings($conf['conf'])); echo "\n"; exit; $db = new DB($conf['dsn'], $conf['dbuser'], $conf['dbpass']); if (!$db) { die("DB connection failed\n"); } function displayHelpMessage() { echo "____________________________________________________________________________________________________________________\n"; echo " INGEST HELP\n"; echo "\n"; echo " --force-update force an update of the collection\n"; echo " --drop-index drop the specified collection(s) before adding them\n"; echo " --make-thumb make thumbnails of each item (drills into compound object, first pages are always made)\n"; echo " --make-thumb-delay make thumbnails of each item, after all ingesting takes place\n";