Compare commits
28 Commits
1c903d7da3
...
master
Author | SHA1 | Date | |
---|---|---|---|
da8dfe079e
|
|||
b6b883420c
|
|||
c63e9df9b3
|
|||
7e57ee2363
|
|||
a0f4a2b159
|
|||
f83b1aeb9f
|
|||
b323e10d9b
|
|||
52f861c739
|
|||
50772ae02f
|
|||
46817aca32
|
|||
b2a5bec110
|
|||
e3db74e734
|
|||
0555dcd94f
|
|||
091f5016aa
|
|||
3bb3ba4d70 | |||
c2a433588f
|
|||
399f345888
|
|||
1d85ab3921
|
|||
5796322692
|
|||
f9c94926c8
|
|||
1635d4130a
|
|||
b7330634d7
|
|||
a7ed284c26
|
|||
d28e70d6c1 | |||
ca7ca028d2 | |||
ba0fe9d83a
|
|||
aa51fdd56a | |||
2bd86abbdc |
9
exceptions/MDImporterTagRelationTypeIsEventType.php
Normal file
9
exceptions/MDImporterTagRelationTypeIsEventType.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?PHP
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Exception thrown in case a name entered for the relation between tag
|
||||
* and object is actually an event type.
|
||||
*/
|
||||
final class MDImporterTagRelationTypeIsEventType extends Exception {
|
||||
}
|
@@ -32,6 +32,7 @@ final class MDConcActor implements MDImporterConcordanceListInterface {
|
||||
"Ausstellung von Bezugsscheinen" => 1,
|
||||
"Bearbeiter" => 1,
|
||||
"Bearbeiterin" => 1,
|
||||
"Konstruktion" => 1,
|
||||
"Bearbeiter*in" => 1,
|
||||
"Bearbeitende" => 1,
|
||||
"Bindung" => 1,
|
||||
@@ -661,6 +662,8 @@ final class MDConcActor implements MDImporterConcordanceListInterface {
|
||||
"Zeichner u. Stecher" => 19,
|
||||
|
||||
// 20: Copied
|
||||
"Abgeschrieben" => 20,
|
||||
"Kopist" => 20,
|
||||
"Übersetzer" => 20,
|
||||
"Übersetzerin" => 20,
|
||||
"Übersetzer*in" => 20,
|
||||
|
@@ -24,7 +24,13 @@ final class MDConcCurrencies implements MDImporterConcordanceListInterface {
|
||||
"23.117,55" => "",
|
||||
"15.01.1900" => "",
|
||||
"Belarussischer Rubel" => 'by-BYN',
|
||||
|
||||
// Schweizer Franken / Swiss Franc
|
||||
"SFR" => "ch-CHF",
|
||||
"CHF" => "ch-CHF",
|
||||
"Swiss franc" => "ch-CHF",
|
||||
|
||||
// Deutsche Mark
|
||||
"DM" => "de-DM",
|
||||
"dM" => "de-DM",
|
||||
"Dm" => "de-DM",
|
||||
@@ -35,10 +41,17 @@ final class MDConcCurrencies implements MDImporterConcordanceListInterface {
|
||||
"Mark" => "de-DM",
|
||||
"de-DM" => "de-DM",
|
||||
"Deutsche Mark" => "de-DM",
|
||||
|
||||
// Reichsmark (Deutschland)
|
||||
"RM" => "de-RM",
|
||||
"Reichsmark" => "de-RM",
|
||||
"Reichsmark (Deutsches Reich)" => "de-RM",
|
||||
"Reichsmark (Deutsches Reich" => "de-RM",
|
||||
|
||||
// Franc (France)
|
||||
"French Franc" => "fr-FF",
|
||||
|
||||
// Forint
|
||||
"Forint" => "hu-Ft",
|
||||
"FT" => "hu-Ft",
|
||||
"Korona" => "hu-Korona",
|
||||
|
@@ -303,6 +303,8 @@ final class MDConcEntryTypes implements MDImporterConcordanceListInterface {
|
||||
"Dauerausleihe" => "16",
|
||||
"Dauerleihgabe von Privat" => "16",
|
||||
"Letét" => "16",
|
||||
"Permanent loan" => "16",
|
||||
"permanent loan" => "16",
|
||||
"Tartós leltét" => "16",
|
||||
|
||||
// 98: Old belongings
|
||||
@@ -335,6 +337,7 @@ final class MDConcEntryTypes implements MDImporterConcordanceListInterface {
|
||||
"Global" => "99",
|
||||
"Zurückgegeben" => "99",
|
||||
"Übernahme" => "99",
|
||||
"Übernahme 1986" => "99",
|
||||
"Übernahme von Betrieb" => "99",
|
||||
"Teilbetrag" => "99",
|
||||
"mitgenommen" => "99",
|
||||
@@ -343,6 +346,8 @@ final class MDConcEntryTypes implements MDImporterConcordanceListInterface {
|
||||
"unbekant" => "99",
|
||||
"Ünernahme" => "99",
|
||||
"Übergabe" => "99",
|
||||
"Unbezeichnet" => "99",
|
||||
"unbezeichnet" => "99",
|
||||
"Übergabe abgeschr.B. DHM" => "99",
|
||||
"gyűjtés" => "99",
|
||||
"sch" => "99",
|
||||
|
@@ -64,6 +64,7 @@ vermuteter Herstellungsort' => 1,
|
||||
'vermuteter Herstellungsort Fassung' => 1,
|
||||
'Kupferstecher' => 1,
|
||||
'Herstellungsort Fassung' => 1,
|
||||
'Herstellungsort Hose' => 1,
|
||||
'Herstellungsort Münze' => 1,
|
||||
'Herstellung oder Vertrieb' => 1,
|
||||
'Herstellung zugeschrieben' => 1,
|
||||
|
@@ -139,6 +139,7 @@ final class MDConcLicenses implements MDImporterConcordanceListInterface {
|
||||
|
||||
"http://www.europeana.eu/rights/rr-r/" => "RR-R",
|
||||
"https://www.europeana.eu/rights/rr-r/" => "RR-R",
|
||||
"Keine Verwendung erlaubt" => "RR-R",
|
||||
|
||||
'PDM' => 'Public Domain Mark',
|
||||
'Public Domain Mark 1.0' => 'Public Domain Mark',
|
||||
|
@@ -50,6 +50,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"unterer Bildrand" => "bottom",
|
||||
"Unterer Bildrand" => "bottom",
|
||||
"unterer Bildrand, mittig" => "bottom",
|
||||
"unten mitte" => "bottom",
|
||||
"Unterkante Bild" => "bottom",
|
||||
"Boden, unten" => "bottom",
|
||||
"unterer Blattrand" => "bottom",
|
||||
@@ -89,6 +90,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
// Bottom right
|
||||
"im Bild unten rechts" => "bottom_right",
|
||||
"rechts unten Signatur" => "bottom_right",
|
||||
"verso unten rechts" => "bottom_right",
|
||||
"unterer Bildrand rechts" => "bottom_right",
|
||||
"Bildrand rechts unten" => "bottom_right",
|
||||
"Rechts unten" => "bottom_right",
|
||||
@@ -256,6 +258,7 @@ final class MDConcMarkingPosition implements MDImporterConcordanceListInterface
|
||||
"Balken" => "other",
|
||||
"Zugbalken" => "other",
|
||||
"innen" => "other",
|
||||
"Innen" => "other",
|
||||
"inneres Lederfutter" => "other",
|
||||
"Innenseite" => "other",
|
||||
"unter Gewichtsauflagenschale" => "other",
|
||||
|
@@ -32,6 +32,9 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"rot gemasert" => "handwritten",
|
||||
"ornamentiert" => "handwritten",
|
||||
"handschriftlich; aufgeklebt" => "handwritten",
|
||||
"handschriftlich mit Bleistift" => "handwritten",
|
||||
"mit schwarzer Kreide" => "handwritten",
|
||||
"mit schwarzer Kreide - Signatur" => "handwritten",
|
||||
"Beschriftung auf Plakette (handschriftlich)" => "handwritten",
|
||||
"Beschriftung" => "handwritten",
|
||||
"Beschriftung (handschriftlich)" => "handwritten",
|
||||
@@ -45,6 +48,8 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"Titel (handschriftlich)" => "handwritten",
|
||||
"Widmung (handschriftlich)" => "handwritten",
|
||||
"Text" => "handwritten",
|
||||
"im Stein" => "handwritten",
|
||||
"im Stein - Beschriftung" => "handwritten",
|
||||
|
||||
# Handwriting
|
||||
|
||||
@@ -98,7 +103,6 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"geschrieben (schwarzer Filzstift)" => "handwritten",
|
||||
"geschrieben mit schwarzer Ölfarbe" => "handwritten",
|
||||
"geschrieben mit schwarzer Farbe" => "handwritten",
|
||||
"Künstlersignatur" => "handwritten",
|
||||
"Kugelschreiber,Bleistift" => "handwritten",
|
||||
"Kugelschreiber" => "handwritten",
|
||||
"Kulibeschriftung auf der Rückseite" => "handwritten",
|
||||
@@ -128,7 +132,7 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"signiert und datiert" => "handwritten",
|
||||
"Signiert" => "handwritten",
|
||||
"signiert, mit Bleistift geschrieben" => "handwritten",
|
||||
"Signatur mit Kugelschreiber" => "handwritten",
|
||||
"handschriftlich mit Bleistift - Marke" => "handwritten",
|
||||
"signiert, mit blauer Tinte geschrieben" => "handwritten",
|
||||
"signiert, mit schwarzer Tinte geschrieben" => "handwritten",
|
||||
"Tinte" => "handwritten",
|
||||
@@ -145,7 +149,6 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
|
||||
# Scratchings
|
||||
"Beschriftung (geritzt)" => "scratch",
|
||||
"Signatur (geritzt)" => "scratch",
|
||||
"kratzen, Filzstift" => "scratch",
|
||||
"gekratzt" => "scratch",
|
||||
"eingeritztes Kreuzchen" => "scratch",
|
||||
@@ -159,6 +162,7 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"Bemalung" => "painted",
|
||||
"bemalt" => "painted",
|
||||
"gemalt" => "painted",
|
||||
"Gemalt" => "painted",
|
||||
"signiert, gemalt" => "painted",
|
||||
"Wappen (gemalt)" => "painted",
|
||||
|
||||
@@ -227,6 +231,7 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"gerduckt" => "overprint",
|
||||
"goldener Druck mit Ornamenten und Zierrahmen" => "overprint",
|
||||
"Golddruck" => "overprint",
|
||||
"Titel mit Signatur (gedruckt)" => "overprint",
|
||||
"Bechriftung (gedruckt)" => "overprint",
|
||||
"Seriennummer" => "overprint",
|
||||
"Textaufdruck" => "overprint",
|
||||
@@ -245,6 +250,7 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"schwarzer Aufdruck" => "overprint",
|
||||
"schwwarzer Aufdruck" => "overprint",
|
||||
"geplottert" => "overprint",
|
||||
"gedruckt - Beschriftung" => "overprint",
|
||||
"gedruckt und eingeschoben" => "overprint",
|
||||
"gedruckt und eingeschoben, kursiv" => "overprint",
|
||||
"Druckerei-Vermerk" => "overprint",
|
||||
@@ -418,6 +424,16 @@ final class MDConcMarkingType implements MDImporterConcordanceListInterface {
|
||||
"Signatur mit Datierung (gemalt)" => "signature",
|
||||
"Signatur mit Datierung (gestempelt)" => "signature",
|
||||
"Signatur mit Datierung (gezeichnet)" => "signature",
|
||||
"Signatur mit Datum (handschriftlich)" => "signature",
|
||||
"Signatur mit Datum (gedruckt)" => "signature",
|
||||
"Signatur mit Datum (gemalt)" => "signature",
|
||||
"Signatur mit Datum (gestempelt)" => "signature",
|
||||
"Signatur mit Datum (gezeichnet)" => "signature",
|
||||
"Künstlersignatur" => "signature",
|
||||
"Signatur (geritzt)" => "signature",
|
||||
"Signatur mit Kugelschreiber" => "signature",
|
||||
"handschriftlich mit Bleistift - Signatur" => "signature",
|
||||
"im Stein - Signatur" => "signature",
|
||||
|
||||
# Watermark
|
||||
"Wasserzeichen" => "watermark",
|
||||
|
@@ -100,6 +100,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"Bemalte Bildfläche (Höhe x Breite)",
|
||||
"Plattengröße (Foto)",
|
||||
"Andere Maße",
|
||||
"Halsweite (Unterlage)",
|
||||
"Format",
|
||||
"Stichhöhe",
|
||||
"Maße Transport",
|
||||
@@ -181,6 +182,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"Höhe größtes Stück",
|
||||
"height",
|
||||
"height (overall)",
|
||||
"Höhe (Trägermaterial)",
|
||||
"Lichtmass (Höhe)",
|
||||
"Bruttomass (Höhe)",
|
||||
"Kartierung (Höhe)",
|
||||
@@ -225,6 +227,9 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
'Höhe (Einleger 22)',
|
||||
'Höhe (Einleger 23)',
|
||||
'Höhe (Einleger 24)',
|
||||
'Höhe (Passepartout)',
|
||||
'Höhe (Unterlage)',
|
||||
'Höhe (Buch)',
|
||||
"Reliefhöhe" => MDMeasurementType::height,
|
||||
|
||||
"Länge",
|
||||
@@ -260,6 +265,10 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"Sitzhöhe (Tiefe)",
|
||||
"Länge (Platte)",
|
||||
"Tiefe (Platte)",
|
||||
"Länge (Griff)",
|
||||
"Tiefe (Griff)",
|
||||
"Länge (Parierstange)",
|
||||
"Tiefe (Parierstange)",
|
||||
"Objektmaß (Länge)",
|
||||
"Objektmaß (Tiefe)",
|
||||
"Objektmass (Länge)",
|
||||
@@ -288,6 +297,12 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
'Tiefe (Einleger 2)',
|
||||
'Länge (Einleger 3)',
|
||||
'Tiefe (Einleger 3)',
|
||||
'Länge (Passepartout)',
|
||||
'Tiefe (Passepartout)',
|
||||
'Länge (Unterlage)',
|
||||
'Tiefe (Unterlage)',
|
||||
'Länge (Buch)',
|
||||
'Tiefe (Buch)',
|
||||
"depth",
|
||||
"Dicke" => MDMeasurementType::length,
|
||||
|
||||
@@ -307,7 +322,9 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
" (Breite)",
|
||||
"width",
|
||||
"width (overall)",
|
||||
"Breite (Griff)",
|
||||
"Außenmaß (Breite)",
|
||||
"Breite (Trägermaterial)",
|
||||
"Bruttomass (Breite)",
|
||||
"Objektmaß (Breite)",
|
||||
"Objektmass (Breite)",
|
||||
@@ -349,10 +366,14 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
'Breite (Einleger 19)',
|
||||
'Breite (Einleger 20)',
|
||||
'Breite (Einleger 21)',
|
||||
'Breite (Passepartout)',
|
||||
'Breite (Unterlage)',
|
||||
'Breite (Buch)',
|
||||
"Stärke",
|
||||
"Schenkelbreite (Breite)" => MDMeasurementType::width,
|
||||
|
||||
"Durchmesser",
|
||||
"Durchmesser (Schaft)",
|
||||
"Durchm.",
|
||||
"Durchmesser (mit Dicke)",
|
||||
"Durchmesser (Boden)",
|
||||
@@ -368,7 +389,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"Durchmesser unten",
|
||||
"Durchmesser (Höhe)",
|
||||
"Durchmesser (Breite)",
|
||||
"Durchmesser (Tiefe)",
|
||||
"Durchmesser (Länge)",
|
||||
"Durchmesser (Länge)",
|
||||
"Objektmaß (Durchmesser)",
|
||||
"Objektmass (Durchmesser)",
|
||||
@@ -485,6 +506,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
|
||||
"weight",
|
||||
"Gewicht (Höhe)",
|
||||
"Lauf (Gewicht)",
|
||||
"Gewicht (Breite)",
|
||||
"Gewicht (Tiefe)",
|
||||
"Gewicht (Länge)",
|
||||
@@ -502,6 +524,10 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"orientation",
|
||||
"Stempelstellung" => MDMeasurementType::die_axis,
|
||||
|
||||
"Länge (Klinge)" => MDMeasurementType::length_blade,
|
||||
"Breite (Klinge)" => MDMeasurementType::width_blade,
|
||||
"Höhe (Klinge)" => MDMeasurementType::height_blade,
|
||||
|
||||
default => throw new MDImporterMissingConcordance("Unmapped specific measurement type: " . $input),
|
||||
|
||||
};
|
||||
|
@@ -21,8 +21,13 @@ final class MDConcObjectTagRelTypes implements MDImporterConcordanceListInterfac
|
||||
'Assoziation' => 'tag',
|
||||
'assoziation' => 'tag',
|
||||
'description' => 'tag',
|
||||
'Druckvorlage' => 'tag',
|
||||
'emotion' => 'tag',
|
||||
'atmosphäre' => 'tag',
|
||||
'Objektart' => 'tag',
|
||||
'objektart' => 'tag',
|
||||
'schlagwort hist.ereignis' => 'tag',
|
||||
'schlagwort thema' => 'tag',
|
||||
|
||||
"motive" => "display_subject",
|
||||
"motiv" => "display_subject",
|
||||
@@ -36,6 +41,32 @@ final class MDConcObjectTagRelTypes implements MDImporterConcordanceListInterfac
|
||||
|
||||
];
|
||||
|
||||
// Maps to event type
|
||||
private const RELATION_TYPES_MAPPED_TO_EVENTS = [
|
||||
'\'datierung\'' => ['event_type' => 24, 'target_section' => 'time'],
|
||||
'datierung' => ['event_type' => 24, 'target_section' => 'time'],
|
||||
'schlagwort zeitraum' => ['event_type' => 24, 'target_section' => 'time'],
|
||||
'person' => ['event_type' => 23, 'target_section' => 'actor'],
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns the mapped event type and event type target
|
||||
* of a supposed tag-object relationship name.
|
||||
*
|
||||
* @param string $input Input string (relation type name).
|
||||
*
|
||||
* @return array{event_type: int, target_section: 'time'|'actor'|'place'}
|
||||
*/
|
||||
public static function getMappedEventType(string $input):array {
|
||||
|
||||
if (isset(self::RELATION_TYPES_MAPPED_TO_EVENTS[strtolower($input)])) {
|
||||
return self::RELATION_TYPES_MAPPED_TO_EVENTS[strtolower($input)];
|
||||
}
|
||||
|
||||
throw new MDImporterMissingConcordance("Unknown object-tag relationship type: " . $input);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Require a function for getting the concordance target.
|
||||
*
|
||||
@@ -52,6 +83,10 @@ final class MDConcObjectTagRelTypes implements MDImporterConcordanceListInterfac
|
||||
return self::RELATION_TYPE_NAMES[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);
|
||||
|
||||
}
|
||||
|
@@ -17,6 +17,8 @@ final class MDConcOwnershipStatus implements MDImporterConcordanceListInterface
|
||||
"Eigentum" => "owned",
|
||||
"Geschenk" => "owned",
|
||||
"Besitz" => "owned",
|
||||
"Owned" => "owned",
|
||||
"owned" => "owned",
|
||||
"Kauf" => "owned",
|
||||
"Fund" => "owned",
|
||||
"Eigenleistung" => "owned",
|
||||
@@ -28,6 +30,8 @@ final class MDConcOwnershipStatus implements MDImporterConcordanceListInterface
|
||||
// Permanent loans
|
||||
"Dauerleihe" => "permanent_loan",
|
||||
"Dauerleihgabe" => "permanent_loan",
|
||||
"Permanent loan" => "permanent_loan",
|
||||
"permanent loan" => "permanent_loan",
|
||||
|
||||
// Loans
|
||||
"Leihe" => "borrowed",
|
||||
@@ -39,6 +43,13 @@ final class MDConcOwnershipStatus implements MDImporterConcordanceListInterface
|
||||
'Third party property' => 'third_party_property',
|
||||
'Fremdeigentum' => 'third_party_property',
|
||||
|
||||
// Deaccessed
|
||||
'Deaccessed' => 'deaccessed',
|
||||
'deakzessioniert' => 'deaccessed',
|
||||
'Deakzessioniert' => 'deaccessed',
|
||||
'Deakzession' => 'deaccessed',
|
||||
'Deakzessiert' => 'deaccessed',
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
|
@@ -28,6 +28,7 @@ final class MDConcPlace implements MDImporterConcordanceListInterface {
|
||||
'Herstellungsland' => 1,
|
||||
'Herstellung' => 1,
|
||||
'Entstehungsort' => 1,
|
||||
'Herstellungsort Hose' => 1,
|
||||
'Münzstätte' => 1,
|
||||
|
||||
// 2: Finding / was found
|
||||
|
@@ -23,6 +23,7 @@ final class MDConcSourceTypes implements MDImporterConcordanceListInterface {
|
||||
"document]book" => "book",
|
||||
|
||||
// Misc
|
||||
"Weiteres" => "misc",
|
||||
"document]avm" => "misc",
|
||||
|
||||
];
|
||||
|
Reference in New Issue
Block a user