Add fields for actors' year of birth and death for events

Close #44
This commit is contained in:
Joshua Ramon Enslin 2025-04-03 17:40:55 +02:00
parent 01d958cdc2
commit f0ce5a9a58
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
7 changed files with 9 additions and 7 deletions

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?67d4f4c05ccf6" />
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?67eeab33e9e68" />
<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?67d4f4c05ccf8" type="text/javascript" async></script>
<script src="assets/js/csvxmlV2.min.js?67eeab33e9e6a" 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

@ -54,6 +54,8 @@ final class CsvxmlAvailableFields {
$output[$type . '_who' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who'));
$output[$type . '_who_sure' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]", dependsOn: [$type . '_who' . $number], allowedValues: ["y", "n"]);
$output[$type . '_who_description' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('actor', 'actor', 'short_description') . "]", dependsOn: [$type . '_who' . $number]);
$output[$type . '_who_birth' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('actor', 'actor', 'year_birth') . "]", dependsOn: [$type . '_who' . $number]);
$output[$type . '_who_death' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('actor', 'actor', 'year_death') . "]", dependsOn: [$type . '_who' . $number]);
$output[$type . '_who_gnd' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . ' (' . $tlLoader->tl("event", "event", 'gnd') . ')', dependsOn: [$type . '_who_sure' . $number, $type . '_who' . $number]);
$output[$type . '_who_wikidata' . $number] = new FieldEntry(name_human_readable: $typeName . ': ' . $tlLoader->tl("event", "event", 'who') . ' (Wikidata)', dependsOn: [$type . '_who_sure' . $number, $type . '_who' . $number]);
}