Extend list of known currency names

This commit is contained in:
Joshua Ramon Enslin 2023-11-14 17:37:09 +01:00
parent 4b0336ade2
commit 91303d0cc4
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 12 additions and 6 deletions

View File

@ -19,13 +19,8 @@ final class MDConcCurrencies implements MDImporterConcordanceListInterface {
"5,00" => "",
"10,00" => "",
"23.117,55" => "",
"Belarussischer Rubel" => 'by-BYN',
"SFR" => "ch-CHF",
"French Franc" => "fr-FF",
"Forint" => "hu-Ft",
"Korona" => "hu-Korona",
"Austro-Hungarian krone" => "hu-Korona",
"Pengő" => "hu-Pengő",
"pengő" => "hu-Pengő",
"DM" => "de-DM",
"DEM" => "de-DM",
"Mark" => "de-DM",
@ -34,6 +29,13 @@ final class MDConcCurrencies implements MDImporterConcordanceListInterface {
"RM" => "de-RM",
"Reichsmark" => "de-RM",
"Reichsmark (Deutsches Reich)" => "de-RM",
"French Franc" => "fr-FF",
"Forint" => "hu-Ft",
"Korona" => "hu-Korona",
"Austro-Hungarian krone" => "hu-Korona",
"Pengő" => "hu-Pengő",
"pengő" => "hu-Pengő",
"Indonesian Ruphian" => 'id-IDR',
"EUR" => "eu-EUR",
"euro" => "eu-EUR",
"Euro" => "eu-EUR",
@ -60,6 +62,9 @@ final class MDConcCurrencies implements MDImporterConcordanceListInterface {
public static function getConcordanceTarget(string $input):string {
if (!isset(self::CURRENCIES_LIST[$input])) {
if (in_array($input, MDCurrenciesSet::CURRENCIES, true)) {
return $input;
}
throw new MDImporterMissingConcordance("Unknown currency: " . $input);
}

View File

@ -291,6 +291,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
"Flasche" => "other",
"auf dem Kontaktbogen unter dem jeweiligen Bild" => "other",
"Waage" => "other",
"Weiteres" => "other",
"auf Kunststoffhülle (für Kleinbildfilmstreifen)" => "other",
"Textplatte" => "other",
"oberer Holzkasten" => "other",