Add fields for new event types

This commit is contained in:
Joshua Ramon Enslin 2024-08-07 23:37:39 +02:00
parent 5677cc051a
commit 818cb7dab6
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
10 changed files with 69 additions and 10 deletions

@ -1 +1 @@
Subproject commit c560a5581f3acbe82106b98f69810f5d361551f5
Subproject commit 7826b7d8914ef26296ad8ce61e2cae25aa105256

@ -1 +1 @@
Subproject commit cd46a3ec735cac9bc4f752fbbde1163320acc96b
Subproject commit a57036789e0051adedd01fcbbd14e59a11a6de76

@ -1 +1 @@
Subproject commit 1eba5d8753c6d0ca355d910b3a61d96cc3aadee7
Subproject commit 4353ef43c9bb7b3ad7a4f56ae1b2e87accd9279f

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?66734b4745c23" />
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?66b3e80ea9ddf" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#aa4400" />
@ -27,7 +27,7 @@
</head>
<body class="loading">
<script src="assets/js/csvxmlV2.min.js?66734b4745c24" type="text/javascript" async></script>
<script src="assets/js/csvxmlV2.min.js?66b3e80ea9de1" type="text/javascript" async></script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1172,6 +1172,8 @@ final class CsvxmlAvailableFields {
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "48") => [],
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "49") => [],
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "50") => [],
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "51") => [],
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "52") => [],
$tlLoader->tl("basis", "basis", 'exhibitions') => [],
];
@ -1838,6 +1840,56 @@ final class CsvxmlAvailableFields {
}
for ($i = 1; $i <= self::EVENT_MULTIPLIER; $i++) {
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "52")] = array_merge(
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "52")],
[
"emerged_place{$i}" => new FieldEntry(
false,
[],
["emerged_place_sure{$i}"],
'',
$tlLoader->tl("event", "event", 'where'),
""
),
"emerged_place_sure{$i}" => new FieldEntry(
false,
["y", "n"],
["emerged_place{$i}"],
'',
$tlLoader->tl("event", "event", 'where') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
""
),
"emerged_place_wikidata{$i}" => new FieldEntry(
false,
[],
["emerged_place{$i}"],
'',
$tlLoader->tl("event", "event", 'where') . " (Wikidata)",
""
),
"emerged_when{$i}" => new FieldEntry(
false,
[],
["emerged_when_sure{$i}"],
'',
$tlLoader->tl("event", "event", 'when'),
""
),
"emerged_when_sure{$i}" => new FieldEntry(
false,
["y", "n"],
["emerged_when{$i}"],
'',
$tlLoader->tl("event", "event", 'when') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
""
),
]
);
}
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "6")] = array_merge(
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "6")],
@ -2104,6 +2156,13 @@ final class CsvxmlAvailableFields {
);
}
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "51")] = array_merge(
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "51")],
$this->_generateGenericFullEvent($tlLoader, $tlLoader->tl("eventtype_name", "eventname", "51"), "subject_of", $i)
);
}
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "21")] = array_merge(