Collect unmapped entries in dry-run mode
See museum-digital/importer#235
This commit is contained in:
@@ -23,6 +23,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"Mitte" => "center",
|
||||
"vorn am Kasten, mittig, einseitig" => "center",
|
||||
"an Gehäuse mittig" => "center",
|
||||
'mitte' => 'center', // Center
|
||||
|
||||
// Left
|
||||
"Links" => "left",
|
||||
@@ -35,6 +36,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"Waagebalken links" => "left",
|
||||
"Vorderseite links (Brusthöhe)" => "left",
|
||||
"an Skala links und am Gehäuse Fronseite" => "left",
|
||||
'mitte links' => 'left', // Left
|
||||
|
||||
// Right
|
||||
"mittig rechts" => "right",
|
||||
@@ -43,9 +45,13 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"rechts neben Bildnis" => "right",
|
||||
"Rechter Bildrand" => "right",
|
||||
"Balken rechts" => "right",
|
||||
'Mitte rechts' => 'right', // Right
|
||||
|
||||
// Bottom
|
||||
"unten" => "bottom",
|
||||
'Mitte unten' => 'bottom', // Bottom
|
||||
'unten links u. rechts' => 'bottom', // Bottom
|
||||
'unten rechts/links' => 'bottom', // Bottom
|
||||
"unter der Zeichnung" => "bottom",
|
||||
"unter der Bild" => "bottom",
|
||||
"unterer Bildrand" => "bottom",
|
||||
@@ -166,6 +172,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"Rückseite Keilrahmen" => "rear_side",
|
||||
"Rükseite" => "rear_side",
|
||||
"Rückseite, unter Doublierung" => "rear_side",
|
||||
'verso' => 'rear_side', // Rear side
|
||||
|
||||
// rear_bottom
|
||||
"Rückseite unten" => "rear_bottom",
|
||||
@@ -450,7 +457,8 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
public static function getConcordanceTarget(string $input):string {
|
||||
|
||||
if (!isset(self::MARKING_POSITIONS_VERBOSE[$input])) {
|
||||
throw MDImporterMissingConcordance::setup("marking position", $input);
|
||||
MDImporterMissingConcordance::throw("marking position", $input);
|
||||
return "other"; // Return default in dry-run mode
|
||||
}
|
||||
|
||||
return self::MARKING_POSITIONS_VERBOSE[$input];
|
||||
|
||||
Reference in New Issue
Block a user