Extend concodance lists
This commit is contained in:
parent
ffc5fd5992
commit
a3650b2bee
|
@ -29,15 +29,20 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
'http://terminology.lido-schema.org/lido00004' => 1,
|
||||
'Ereignis' => 1,
|
||||
'http://terminology.lido-schema.org/lido00003' => 1,
|
||||
'Herstellung des Abzugs/der Abformung' => 1,
|
||||
|
||||
// 2: Was found
|
||||
'Auffinden' => 2,
|
||||
'Ausgrabung' => 2,
|
||||
'Excavation' => 2,
|
||||
'Finding' => 2,
|
||||
'Fund' => 2,
|
||||
'Fund (Aktivität)' => 2,
|
||||
'Finding' => 2,
|
||||
'Finding (Activity)' => 2,
|
||||
'Gefunden' => 2,
|
||||
'Finding
|
||||
(Activity)' => 2,
|
||||
'http://terminology.lido-schema.org/lido00002' => 2,
|
||||
|
||||
// 3: Published
|
||||
'Published' => 3,
|
||||
|
@ -82,6 +87,8 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
'Sammeln' => 8,
|
||||
'Collecting' => 8,
|
||||
'Sammeltätigkeit' => 8,
|
||||
'Sammelereignis' => 8,
|
||||
'http://terminology.lido-schema.org/lido00010' => 8,
|
||||
|
||||
// 9: => Painted
|
||||
'Painted' => 8,
|
||||
|
@ -91,6 +98,7 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
'Fotografische Aufnahme' => 10,
|
||||
'Aufnahme' => 10,
|
||||
'Aufgenommen' => 10,
|
||||
'Herstellung (Aufnahme)' => 10,
|
||||
|
||||
// '11' => Received
|
||||
'Received' => 11,
|
||||
|
@ -99,6 +107,8 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
// 12 => Printing plate produced
|
||||
'Printing plate produced' => 12,
|
||||
'Druckplatte hergestellt' => 12,
|
||||
'Herstellung der Druckform/Form' => 12,
|
||||
'http://terminology.lido-schema.org/lido00484' => 12,
|
||||
|
||||
// '13' => Sent
|
||||
'Sent' => 13,
|
||||
|
@ -117,6 +127,8 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
// '16' => First description
|
||||
'First description' => 16,
|
||||
'Erstbeschreibung' => 16,
|
||||
'Typuszuweisung' => 16,
|
||||
'http://terminology.lido-schema.org/lido00023' => 16,
|
||||
|
||||
// '19' => Drawn
|
||||
'Drawn' => 19,
|
||||
|
@ -214,7 +226,9 @@ final class MDConcEventTypes implements MDImporterConcordanceListInterface {
|
|||
// 41: Was Bought
|
||||
'Erwerb' => 41,
|
||||
'Erwerbung' => 41,
|
||||
'Acquisition' => 41,
|
||||
'Acquisition (Activity)' => 41,
|
||||
'http://terminology.lido-schema.org/lido00001' => 41,
|
||||
'Bodenreform' => 41,
|
||||
'Kauf' => 41,
|
||||
'Gekauft' => 41,
|
||||
|
|
|
@ -37,6 +37,8 @@ enum MDConcFieldRelatedWorksType {
|
|||
"Beschrieben in",
|
||||
"Literatur",
|
||||
"Literatur in Zusammenhang",
|
||||
'Literatur zum Stück',
|
||||
'Standardzitierwerk',
|
||||
"beschrieben in" => self::literature,
|
||||
|
||||
"Teil von",
|
||||
|
@ -116,7 +118,9 @@ enum MDConcFieldRelatedWorksType {
|
|||
"Vorlage" => self::related_works_freetext,
|
||||
|
||||
"Weblink",
|
||||
"Web link" => self::weblink,
|
||||
"Web link",
|
||||
"Fachportal"
|
||||
=> self::weblink,
|
||||
|
||||
"" => self::undefined,
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ final class MDConcLicenses implements MDImporterConcordanceListInterface {
|
|||
"CC.BY-NC-SA" => "CC BY-NC-SA",
|
||||
"CC BY-NC-SA 3.0 AT" => "CC BY-NC-SA",
|
||||
"http://creativecommons.org/licenses/by-nc-sa/3.0/" => "CC BY-NC-SA",
|
||||
"http://creativecommons.org/licenses/by-nc-sa/4.0/deed.de" => "CC BY-NC-SA",
|
||||
"http://creativecommons.org/licenses/by-nc-sa/4.0/" => "CC BY-NC-SA",
|
||||
"https://creativecommons.org/licenses/by-nc-sa/4.0/" => "CC BY-NC-SA",
|
||||
"Namensnennung - Nicht kommerziell - Weitergabe unter gleichen Bedingungen 4.0 International (CC BY-NC-SA 4.0)" => "CC BY-NC-SA",
|
||||
|
@ -68,6 +69,8 @@ final class MDConcLicenses implements MDImporterConcordanceListInterface {
|
|||
"CC.BY-NC-ND" => "CC BY-NC-ND",
|
||||
"http://creativecommons.org/licenses/by-nc-nd/4.0/" => "CC BY-NC-ND",
|
||||
"https://creativecommons.org/licenses/by-nc-nd/4.0/" => "CC BY-NC-ND",
|
||||
"http://creativecommons.org/licenses/by-nc-nd/3.0/de/" => "CC BY-NC-ND",
|
||||
"https://creativecommons.org/licenses/by-nc-nd/3.0/de/" => "CC BY-NC-ND",
|
||||
|
||||
"https://www.deutsche-digitale-bibliothek.de/content/lizenzen/rv-fz" => "RR-F",
|
||||
"https://www.deutsche-digitale-bibliothek.de/content/lizenzen/rv-fz/" => "RR-F",
|
||||
|
|
190
src/MDConcMeasurementTypes.php
Normal file
190
src/MDConcMeasurementTypes.php
Normal file
|
@ -0,0 +1,190 @@
|
|||
<?PHP
|
||||
/**
|
||||
* Constains lists for grouping measurement types.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Constains lists for grouping measurement types.
|
||||
*/
|
||||
final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface {
|
||||
|
||||
/**
|
||||
* Require a function for getting the concordance target.
|
||||
*
|
||||
* @param string $input Input string.
|
||||
*
|
||||
* @return MDMeasurementType|false
|
||||
*/
|
||||
public static function getConcordanceTarget(string $input):MDMeasurementType|false {
|
||||
|
||||
return match($input) {
|
||||
|
||||
// Just list entries
|
||||
"Allgemein",
|
||||
"Passepartout",
|
||||
"Passepartout Standardformat",
|
||||
"Objektmaß",
|
||||
"Objektmass",
|
||||
"Außenmaß",
|
||||
"Bildmaß",
|
||||
"Bildmass",
|
||||
"Auflagekarton (Höhe x Breite)",
|
||||
"Passepartout Standardformat (Höhe x Breite)",
|
||||
"Blattmaß",
|
||||
"Blattmass",
|
||||
"m",
|
||||
"cm",
|
||||
"mm",
|
||||
"dm",
|
||||
"Spieldauer (h___m___s)",
|
||||
"Geschwindigkeit (Schallplatte)",
|
||||
"Geschwindigkeit (Band)",
|
||||
"Transportmaß (Breite x Höhe x Tiefe)",
|
||||
"Transportmaß (Breite x Höhe x Tiefe)Transportmaß (Breite x Höhe x Tiefe)",
|
||||
"Öffnung (Durchmesser)",
|
||||
"Kartonformat (Höhe x Breite)",
|
||||
"Negativformat (Breite x Lange)",
|
||||
"Passepartout (Höhe x Breite)",
|
||||
"Montage (Breite x Länge)",
|
||||
"Verpackungsmaß (Breite x Höhe x Tiefe)Verpackungsmaß (Breite x Höhe x Tiefe)",
|
||||
"Maße Transport (Höhe x Tiefe x Breite)",
|
||||
"Volumen",
|
||||
"Hohlmaß",
|
||||
"Buchformat",
|
||||
"Hohlmass",
|
||||
"Kaliber",
|
||||
"Zeit",
|
||||
"Original",
|
||||
"size",
|
||||
"base",
|
||||
"target",
|
||||
"Modell",
|
||||
"",
|
||||
"Plattengröße (Höhe x Breite)",
|
||||
"Sockel (Höhe x Tiefe x Breite)",
|
||||
"Sockel (Höhe x Tiefe x Breite)",
|
||||
"Außenmaß (Höhe x Tiefe x Breite)",
|
||||
"Fläche",
|
||||
"Tafelmaß",
|
||||
"Tafelmass",
|
||||
"Bemalte Bildfläche",
|
||||
"Sockel",
|
||||
"Höhe x Breite",
|
||||
"Höhe x Durchmesser",
|
||||
"Rahmenmaß (Höhe x
|
||||
Breite)",
|
||||
"Höhe x Breite x Tiefe",
|
||||
"Höhe x Breite x Tiefe",
|
||||
"Rahmenmaß",
|
||||
"Rahmenmaß (Höhe x Breite)",
|
||||
"Rahmenmaß (Höhe x Breite)",
|
||||
"Rahmenmass",
|
||||
"Rahmenmass (Höhe x Breite)",
|
||||
"Rahmenaußenmaß (Höhe x Breite)",
|
||||
"Rahmenaußenmaß (Länge x Durchmesser)",
|
||||
"Höhe x Breite x Stärke",
|
||||
"Rahmenaußenmaß",
|
||||
"Rahmenaußenmass",
|
||||
"Kartonformat",
|
||||
"Kartonformat (Foto)",
|
||||
"Auflagekarton",
|
||||
"Bildformat (Foto)",
|
||||
"Tafelmaß (Höhe x Breite)",
|
||||
"Bemalte Bildfläche (Höhe x Breite)",
|
||||
"Plattengröße (Foto)",
|
||||
"Andere Maße",
|
||||
"Format",
|
||||
"Stichhöhe",
|
||||
"Maße Transport",
|
||||
"Länge x Breite x Höhe",
|
||||
"Länge x Breite x Tiefe",
|
||||
"Länge x Breite",
|
||||
"Maße Transport (Höhe x Tiefe x Breite)",
|
||||
"Blattmaß (Höhe x Breite)",
|
||||
"Objektmaß (Höhe x Tiefe x Breite)",
|
||||
"Objektmaß (Höhe x Tiefe x Breite)",
|
||||
"Teil 1",
|
||||
"Teil 2",
|
||||
"Teil 3",
|
||||
"Teil 4",
|
||||
"Teil 5",
|
||||
"Teil 6",
|
||||
"Teil 7",
|
||||
"Teil 8",
|
||||
"Kistenmaß (Länge x Breite x Höhe)",
|
||||
"Umfang",
|
||||
"Länge x Breite",
|
||||
"Bildmaß (Höhe x Breite)",
|
||||
"Bildformat (Höhe x Breite)",
|
||||
"Glasmaß (Höhe x Breite)",
|
||||
"Länge x Breite x Tiefe",
|
||||
"Höhe x Durchmesser",
|
||||
"Länge x Durchmesser",
|
||||
"Breite x Höhe",
|
||||
"Breite x Höhe x Tiefe",
|
||||
"Breite x Höhe",
|
||||
"Breite x Tiefe",
|
||||
"Höhe x Breite",
|
||||
"Höhe x Breite (aufgeschlagen)",
|
||||
"Höhe x Breite x Tiefe",
|
||||
"Durchmesser x Tiefe",
|
||||
"Durchmesser x Tiefe",
|
||||
"Gesamtmaß (Höhe x Breite x Tiefe)",
|
||||
"Form",
|
||||
"Andere",
|
||||
"Stichhöhe (Höhe x Breite)" => false,
|
||||
|
||||
"Höhe",
|
||||
"height",
|
||||
"Reliefhöhe" => MDMeasurementType::height,
|
||||
|
||||
"Länge",
|
||||
"length",
|
||||
"Tiefe",
|
||||
"Teife",
|
||||
"length",
|
||||
"depth",
|
||||
"Dicke" => MDMeasurementType::length,
|
||||
|
||||
"Breite",
|
||||
"width",
|
||||
"Schenkelbreite (Breite)" => MDMeasurementType::width,
|
||||
|
||||
"Durchmesser",
|
||||
"Durchm.",
|
||||
"Durchmesser (mit Dicke)",
|
||||
"Durchmesser (Boden)",
|
||||
"Mündung (Durchmesser)",
|
||||
"Rahmenaußenmaß Durchmesser",
|
||||
"diameter",
|
||||
"Durchmesser in Richtung Bohrung",
|
||||
"Durchmesser quer zur Bohrung",
|
||||
"d",
|
||||
"Ø" => MDMeasurementType::diameter,
|
||||
|
||||
|
||||
"width of wall",
|
||||
"Wandstärke (Durchmesser)" => MDMeasurementType::wall,
|
||||
|
||||
"weight",
|
||||
"Gewicht" => MDMeasurementType::weight,
|
||||
|
||||
|
||||
"number of pages",
|
||||
"Seitenzahl",
|
||||
"Paginierung" => MDMeasurementType::number_of_pages,
|
||||
|
||||
"Die Axis",
|
||||
"die-axis",
|
||||
"orientation",
|
||||
"Stempelstellung" => MDMeasurementType::die_axis,
|
||||
|
||||
default => throw new MDImporterMissingConcordance("Unmapped specific measurement type: " . $input),
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ final class MDBlacklistNodaRepositories implements MDImporterBlacklistInterface
|
|||
'kue.id',
|
||||
'kue.id.',
|
||||
'md:term',
|
||||
'term.museum-digital.de',
|
||||
'RIA/SMB',
|
||||
'swd-nummer',
|
||||
'SWD-Nummer',
|
||||
|
|
Loading…
Reference in New Issue
Block a user