314 lines
11 KiB
PHP
314 lines
11 KiB
PHP
<?PHP
|
|
/**
|
|
* Constains lists for grouping marking positions.
|
|
*
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
*/
|
|
declare(strict_types = 1);
|
|
|
|
/**
|
|
* Provides lists for categorizing spelled out marking positions.
|
|
*/
|
|
final class MDConcMarkingPosition implements MDImporterConcordanceListInterface {
|
|
|
|
private const MARKING_POSITIONS_VERBOSE = [
|
|
|
|
// Center
|
|
"mittig" => "center",
|
|
"Mittig" => "center",
|
|
"mittig auf Schild" => "center",
|
|
"Vorderseite, mittig" => "center",
|
|
"beidseitig mittig" => "center",
|
|
"untere Passpartoutkante, mittig" => "center",
|
|
"vorn am Kasten, mittig, einseitig" => "center",
|
|
"an Gehäuse mittig" => "center",
|
|
|
|
// Left
|
|
"Links" => "left",
|
|
"linke Ecke im Aquarell" => "left",
|
|
"linkes, blaues Schleifenband" => "left",
|
|
"linkes, grünes Schleifenband" => "left",
|
|
"linkes Band" => "left",
|
|
"Waagebalken links" => "left",
|
|
"Vorderseite links (Brusthöhe)" => "left",
|
|
"an Skala links und am Gehäuse Fronseite" => "left",
|
|
|
|
// Right
|
|
"Rechts" => "right",
|
|
"rechts neben Bildnis" => "right",
|
|
"Balken rechts" => "right",
|
|
|
|
// Bottom
|
|
"unter der Zeichnung" => "bottom",
|
|
"unterer Bildrand" => "bottom",
|
|
"unterer Bildrand, mittig" => "bottom",
|
|
"Unterkante Bild" => "bottom",
|
|
"Boden, unten" => "bottom",
|
|
"unterer Blattrand" => "bottom",
|
|
"Boden" => "bottom",
|
|
"Boden und Standring" => "bottom",
|
|
"Unterseite" => "bottom",
|
|
"untere Passpartoutkante und untere linke Ecke auf Foto" => "bottom",
|
|
"Unterboden" => "bottom",
|
|
"vs unten" => "bottom",
|
|
"untere Passpartoutkante" => "bottom",
|
|
"Unten mittig" => "bottom",
|
|
|
|
// Top
|
|
"Oberseite" => "top",
|
|
"oberer Rand" => "top",
|
|
"oberer Balken" => "top",
|
|
"Flasche und Verschluß" => "top",
|
|
"obere Abdeckung" => "top",
|
|
|
|
// Bottom left
|
|
"links unter der Zeichnung" => "bottom_left",
|
|
"links unter der Zeichnung Sinatur" => "bottom_left",
|
|
"links unten Signatur" => "bottom_left",
|
|
"linker, unterer Bildrand" => "bottom_left",
|
|
"linker, unterer Bildrand (über dem Knie)" => "bottom_left",
|
|
"linke, untere Passpartoutkante" => "bottom_left",
|
|
|
|
// Bottom right
|
|
"im Bild unten rechts" => "bottom_right",
|
|
"rechts unten Signatur" => "bottom_right",
|
|
"unterer Bildrand rechts" => "bottom_right",
|
|
"Bildrand rechts unten" => "bottom_right",
|
|
|
|
// Top Left
|
|
"linker, oberer Bildrand" => "top_left",
|
|
|
|
// Top Right
|
|
"vorn, oben, rechts am Gehäuse" => "top_right",
|
|
|
|
// Edge
|
|
"Rand" => "edge",
|
|
"linker Rand Pergaminhülle (für Kleinbildfilmstreifen)" => "edge",
|
|
"linker Rand Pergaminhülle (für Diapositive im Mittelformat)" => "edge",
|
|
"linker Rand Kunststoffhülle (für Kleinbildfilmstreifen)" => "edge",
|
|
"Schildkante vorn, innen" => "edge",
|
|
"Schildkante hinten, innen" => "edge",
|
|
"äußerer Rand" => "edge",
|
|
"Auflage für Brief am äußeren Rand" => "edge",
|
|
"äußerer Gefäßrand" => "edge",
|
|
"Tellerrand" => "edge",
|
|
"Fußrand, außen" => "edge",
|
|
"unterer seitlicher Rand" => "edge",
|
|
"oberer Rand, aussen" => "edge",
|
|
"oberer und unterer Rand" => "edge",
|
|
"Passepartout" => "edge",
|
|
|
|
// Rear
|
|
"Rückseite" => "rear_side",
|
|
"RS" => "rear_side",
|
|
"rs" => "rear_side",
|
|
"rs Umschrift" => "rear_side",
|
|
"Rückseite der Leinwand" => "rear_side",
|
|
"Rückseitig auf ovalem Keilrahmen oben links und rechts" => "rear_side",
|
|
"Rückseite Kalender" => "rear_side",
|
|
"Rückseite Keilrahmen" => "rear_side",
|
|
"Rükseite" => "rear_side",
|
|
|
|
// Misc.
|
|
"x" => "other",
|
|
"Vorderseite" => "other",
|
|
"Forderseite" => "other",
|
|
"VS" => "other",
|
|
"VS:" => "other",
|
|
"vs" => "other",
|
|
"vs:" => "other",
|
|
"vs." => "other",
|
|
"VS und RS" => "other",
|
|
"vs: oben/ unten" => "other",
|
|
"VS Fahne" => "other",
|
|
"Balken" => "other",
|
|
"Zugbalken" => "other",
|
|
"Front" => "other",
|
|
"Vorderseite / Stirn" => "other",
|
|
"vorn" => "other",
|
|
"inneres Lederfutter" => "other",
|
|
"Innenseite" => "other",
|
|
"unter Gewichtsauflagenschale" => "other",
|
|
"Standsäule" => "other",
|
|
"Typenschild" => "other",
|
|
"Typenschild Alum" => "other",
|
|
"Typenschild Alum." => "other",
|
|
"Typenschild am Gestell" => "other",
|
|
"Typenschild an Gestellfront" => "other",
|
|
"Tellerunterseite" => "other",
|
|
"Skalenschiene" => "other",
|
|
"Skala" => "other",
|
|
"an Skala" => "other",
|
|
"unter Skala" => "other",
|
|
"an Skala links" => "other",
|
|
"auf Skala" => "other",
|
|
"Vorderseite Eisengestell" => "other",
|
|
"Außenwand" => "other",
|
|
"Aufkleber" => "other",
|
|
"unter Ausgußtülle" => "other",
|
|
"Glasaußenseite" => "other",
|
|
"Tellermitte" => "other",
|
|
"an Gehäuse vorn" => "other",
|
|
"auf Ständersockel und an Balkenmitte beidseitig" => "other",
|
|
"Ständer" => "other",
|
|
"Waagebalken" => "other",
|
|
"vorn an Rahmen, mittig" => "other",
|
|
"Holzbrett" => "other",
|
|
"auf Siegelstempel" => "other",
|
|
"Boden/innen, Boden/außen, 2 x Rand/außen" => "other",
|
|
"Boden/innen, Rand/innen, mittig und Rand/außen" => "other",
|
|
"vorn am Gehäuse" => "other",
|
|
"Boden/innen (sehr groß, ca. 5x5cm) und am Rand/außen (3x)" => "other",
|
|
"Außenrand" => "other",
|
|
"vorn an Fußgestell, mittig, beidseitig" => "other",
|
|
"Messingschild vorn" => "other",
|
|
"inneres Seidenfutter" => "other",
|
|
"auf Pappe" => "other",
|
|
"Bund innen" => "other",
|
|
"Boden, innen" => "other",
|
|
"Deckel" => "other",
|
|
"Boden/innen und am Rand/außen 2x" => "other",
|
|
"Deckeloberseite" => "other",
|
|
"vorn an Gehäuse" => "other",
|
|
"Gestell" => "other",
|
|
"Gestellverstärkung (mittig)" => "other",
|
|
"Mundstück" => "other",
|
|
"Original-Negativhülle" => "other",
|
|
"vorderer Waagbalken" => "other",
|
|
"Waagenbalken, linke Seite" => "other",
|
|
"auf Original-Negativhülle" => "other",
|
|
"V/1786,1/H" => "other",
|
|
"vorn Typenbezeichnung" => "other",
|
|
"langer Waagebalken, seitlich, beidseitig" => "other",
|
|
"Knauf" => "other",
|
|
"Deckel innen" => "other",
|
|
"Anzeigenskala" => "other",
|
|
"Lehne vorn" => "other",
|
|
"Oberseite Holzsohle, mittig im oberer Drittel" => "other",
|
|
"Vorderseite Ziffernblatt" => "other",
|
|
"Boden, außen" => "other",
|
|
"innen" => "other",
|
|
"außen" => "other",
|
|
"aussen" => "other",
|
|
"am Gehäuse" => "other",
|
|
"auf Gewichten" => "other",
|
|
"Gewichte" => "other",
|
|
"Vorderseite Kasten" => "other",
|
|
"auf Rundgewicht" => "other",
|
|
"auf oberen Stab" => "other",
|
|
"auf Klinge" => "other",
|
|
"Gabel" => "other",
|
|
"Griff" => "other",
|
|
"Lampenfuß" => "other",
|
|
"Glasrand, außen" => "other",
|
|
"Standfuß" => "other",
|
|
"Boden/innen, mittig und am Rand/außen, übereinander 2x" => "other",
|
|
"Schulterplatte" => "other",
|
|
"Sockel/Platte" => "other",
|
|
"auf Deckel" => "other",
|
|
"unterer Waagebalken" => "other",
|
|
"Rückseite Waage" => "other",
|
|
"Schneide" => "other",
|
|
"Sockel" => "other",
|
|
"mittig auf Bügel" => "other",
|
|
"auf Foto" => "other",
|
|
"mittig auf Rundholz" => "other",
|
|
"Deckel oben" => "other",
|
|
"Außenseite" => "other",
|
|
"mittig 2 mal am Fußgestell" => "other",
|
|
"an allen Skalenenden" => "other",
|
|
"an Skala rechts" => "other",
|
|
"Ständer vorn" => "other",
|
|
"Waagebalken über Hauptschneide" => "other",
|
|
"Gußplatte" => "other",
|
|
"Schild" => "other",
|
|
"Karton außen" => "other",
|
|
"Henkel" => "other",
|
|
"Gehäuse" => "other",
|
|
"an Gehäuse" => "other",
|
|
"auf Gehäuse" => "other",
|
|
"Porzellanumschluß" => "other",
|
|
"Porzellangewichte" => "other",
|
|
"Kopf oben" => "other",
|
|
"Gewicht" => "other",
|
|
"Verschlußkasten, beidseitig" => "other",
|
|
"Oberseite vom Verschlußkasten der Waage, oberhalb der Säule" => "other",
|
|
"Fußrand" => "other",
|
|
"Bodenrand" => "other",
|
|
"Front Schreibmaschine, Schlüssel" => "other",
|
|
"Boden außen" => "other",
|
|
"Deckel, innen" => "other",
|
|
"Bodenrand innen" => "other",
|
|
"Deckelrand" => "other",
|
|
"Boden, mittig" => "other",
|
|
"Unterseite Sockel" => "other",
|
|
"äußere Hülle" => "other",
|
|
"Gehäuse vorn" => "other",
|
|
"über unterer Ofenklappe" => "other",
|
|
"Kasten vorn" => "other",
|
|
"Griff, Vorderseite" => "other",
|
|
"Pfeifenkopf" => "other",
|
|
"Inschrift im großen Bild" => "other",
|
|
"unterhalb der Lithografie" => "other",
|
|
"unterhalb der Fotografie" => "other",
|
|
"rechts unter der Fotografie" => "other",
|
|
"Waagebalken und Fuß" => "other",
|
|
"Verkleidungsfuß" => "other",
|
|
"Zierverkleidung" => "other",
|
|
"vordere Skala" => "other",
|
|
"Fußgestänge" => "other",
|
|
"vorn an Fußgestell, mittig, einseitig, in gold hervorgehoben" => "other",
|
|
"vorn an Fußgestell, mittig, beidseitig und am Waagebalken" => "other",
|
|
"Fahnespitze" => "other",
|
|
"Umschrift" => "other",
|
|
"Gehäuse seitlich" => "other",
|
|
"Skala und schale" => "other",
|
|
"am Rand des Mittelteils" => "other",
|
|
"am Waagebalken" => "other",
|
|
"an Front vom Gehäuse" => "other",
|
|
"Fußgestell" => "other",
|
|
"auf Fuß oben auf" => "other",
|
|
"im Spiegel" => "other",
|
|
"auf Umschlußkasten vorn" => "other",
|
|
"Zeigerende und Schalenbodenrand" => "other",
|
|
"vorn am Porzellankasten, mittig, einseitig" => "other",
|
|
"Kastendeckel außen" => "other",
|
|
"Kragen" => "other",
|
|
"vorn, unter dem Geldschlitz" => "other",
|
|
"Oberseite Kiste" => "other",
|
|
"beidseitig am Waagengestell, Waagebalken, auf Abdeckung" => "other",
|
|
"vs Umschrift" => "other",
|
|
"Frontseite" => "other",
|
|
"Vorderseite Akkordeon" => "other",
|
|
"mittig am Fußgestell" => "other",
|
|
"Balkenskala links" => "other",
|
|
"auf Passpartout" => "other",
|
|
"auf Papp-Schmuckrahmen" => "other",
|
|
"Fotomitte" => "other",
|
|
"Gehäuseboden, innerer Rand" => "other",
|
|
"Flasche" => "other",
|
|
"auf dem Kontaktbogen unter dem jeweiligen Bild" => "other",
|
|
"Waage" => "other",
|
|
"auf Kunststoffhülle (für Kleinbildfilmstreifen)" => "other",
|
|
"Textplatte" => "other",
|
|
"oberer Holzkasten" => "other",
|
|
];
|
|
|
|
/**
|
|
* Require a function for getting the concordance target.
|
|
*
|
|
* @param string $input Input string.
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getConcordanceTarget(string $input):string {
|
|
|
|
if (!isset(self::MARKING_POSITIONS_VERBOSE[$input])) {
|
|
throw new MDImporterMissingConcordance("Unknown marking position: " . $input);
|
|
}
|
|
|
|
return self::MARKING_POSITIONS_VERBOSE[$input];
|
|
|
|
}
|
|
}
|