Extend concordance lists

This commit is contained in:
2025-10-05 11:46:30 +02:00
parent 821a6b4e6d
commit 5b0da66287
4 changed files with 7 additions and 3 deletions

View File

@@ -428,6 +428,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
"Verso" => "other",
"Avers" => "other",
"Text" => "other",
"auf dem Original-Fotobox" => "other",
];
/**

View File

@@ -184,6 +184,7 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
"Etikett" => "glued", // This whole value doesn't make sense
"Etiketten" => "glued",
"etikettiert" => "glued",
"schriftlich - Aufkleber" => "glued",
"Adressaufkleber des Voreigentümers" => "glued",
"Klebezettel (maschienengeschrieben)" => "glued",

View File

@@ -233,6 +233,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
'Höhe (Passepartout)',
'Höhe (Unterlage)',
'Höhe (Buch)',
'Höhe (Jeder Druck)',
"Reliefhöhe" => MDMeasurementType::height,
"Länge",
@@ -314,6 +315,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
"Breite OT",
"Breite H",
"Breite (ausgeklappt)",
"Breite (Jeder Druck)",
"Breite (Etui)",
"Breite (Heft)",
"Breite (netto)",

View File

@@ -79,15 +79,15 @@ final class MDConcObjectTagRelTypes implements MDImporterConcordanceListInterfac
if (isset(self::RELATION_TYPE_NAMES[$input])) {
return self::RELATION_TYPE_NAMES[$input];
}
if (isset(self::RELATION_TYPE_NAMES[strtolower($input)])) {
return self::RELATION_TYPE_NAMES[strtolower($input)];
if (isset(self::RELATION_TYPE_NAMES[trim(strtolower($input))])) {
return self::RELATION_TYPE_NAMES[trim(strtolower($input))];
}
if (isset(self::RELATION_TYPES_MAPPED_TO_EVENTS[strtolower($input)])) {
throw new MDImporterTagRelationTypeIsEventType("Tag-object relationship type is signifies not tags, but an event component.");
}
throw new MDImporterMissingConcordance("Unknown object-tag relationship type: " . $input);
throw new MDImporterMissingConcordance("Unknown object-tag relationship type: '" . $input . "'");
}
}