Collect unmapped entries in dry-run mode
See museum-digital/importer#235
This commit is contained in:
@@ -27,7 +27,8 @@ final class MDConcSex implements MDImporterConcordanceListInterface {
|
||||
public static function getConcordanceTarget(string $input):string {
|
||||
|
||||
if (!isset(self::SEXES_LIST[$input])) {
|
||||
throw MDImporterMissingConcordance::setup("sex", $input);
|
||||
MDImporterMissingConcordance::throw("sex", $input);
|
||||
return 'other'; // Return default in dry-run mode
|
||||
}
|
||||
|
||||
return self::SEXES_LIST[$input];
|
||||
|
||||
Reference in New Issue
Block a user