Add new fields for place and actor wikidata IDs
This commit is contained in:
parent
34c2b5618b
commit
6eba06808a
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?65d38a0e1ad18" />
|
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?66618f8edc636" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<meta name="theme-color" content="#aa4400" />
|
<meta name="theme-color" content="#aa4400" />
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="loading">
|
<body class="loading">
|
||||||
|
|
||||||
<script src="assets/js/csvxmlV2.min.js?65d38a0e1ad20" type="text/javascript" async></script>
|
<script src="assets/js/csvxmlV2.min.js?66618f8edc637" type="text/javascript" async></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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
|
@ -11,8 +11,8 @@ declare(strict_types = 1);
|
||||||
*/
|
*/
|
||||||
final class CsvxmlAvailableFields {
|
final class CsvxmlAvailableFields {
|
||||||
|
|
||||||
const GENERAL_FIELD_MULTIPLIER = 1;
|
public const GENERAL_FIELD_MULTIPLIER = 1;
|
||||||
const EVENT_MULTIPLIER = 3;
|
public const EVENT_MULTIPLIER = 3;
|
||||||
|
|
||||||
/** @var array<string, array<string, FieldEntry>>
|
/** @var array<string, array<string, FieldEntry>>
|
||||||
*/
|
*/
|
||||||
|
@ -72,8 +72,10 @@ final class CsvxmlAvailableFields {
|
||||||
$type . '_who' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who'), "", []),
|
$type . '_who' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who'), "", []),
|
||||||
$type . '_who_sure' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]", "", [$type . '_who' . $number], ["y", "n"]),
|
$type . '_who_sure' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]", "", [$type . '_who' . $number], ["y", "n"]),
|
||||||
$type . '_who_gnd' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who') . ' (' . $tlLoader->tl("event", "event", 'gnd') . ')', "", [$type . '_who_sure' . $number, $type . '_who' . $number]),
|
$type . '_who_gnd' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who') . ' (' . $tlLoader->tl("event", "event", 'gnd') . ')', "", [$type . '_who_sure' . $number, $type . '_who' . $number]),
|
||||||
|
$type . '_who_wikidata' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'who') . ' (Wikidata)', "", [$type . '_who_sure' . $number, $type . '_who' . $number]),
|
||||||
$type . '_where' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'where'), "", []),
|
$type . '_where' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'where'), "", []),
|
||||||
$type . '_where_sure' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'where') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]", "", [$type . '_where' . $number], ["y", "n"]),
|
$type . '_where_sure' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'where') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]", "", [$type . '_where' . $number], ["y", "n"]),
|
||||||
|
$type . '_where_wikidata' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'where') . ' (Wikidata)', "", [$type . '_where_sure' . $number, $type . '_where' . $number]),
|
||||||
$type . '_annotation' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'classic_annotation_intro'), ""),
|
$type . '_annotation' . $number => $this->_getSimpleAvailableFieldEntry($typeName . ': ' . $tlLoader->tl("event", "event", 'classic_annotation_intro'), ""),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1453,6 +1455,15 @@ final class CsvxmlAvailableFields {
|
||||||
$tlLoader->tl("object_addendum", "object_add", 'tag_relation_type_explica'),
|
$tlLoader->tl("object_addendum", "object_add", 'tag_relation_type_explica'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$availableFields[$tlLoader->tl("overview", "overview", 'tags')]["tag_wikidata" . $i] = new FieldEntry(
|
||||||
|
false,
|
||||||
|
[],
|
||||||
|
["tag" . $i],
|
||||||
|
'',
|
||||||
|
$tlLoader->tl("overview", "overview", 'tags') . " (Wikidata)",
|
||||||
|
"",
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
|
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
|
||||||
|
@ -1759,7 +1770,7 @@ final class CsvxmlAvailableFields {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = 1; $i <= 5 * self::GENERAL_FIELD_MULTIPLIER; $i++) {
|
for ($i = 1; $i <= self::EVENT_MULTIPLIER; $i++) {
|
||||||
|
|
||||||
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "5")] = array_merge(
|
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "5")] = array_merge(
|
||||||
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "5")],
|
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "5")],
|
||||||
|
@ -1779,13 +1790,21 @@ final class CsvxmlAvailableFields {
|
||||||
'',
|
'',
|
||||||
$tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
|
$tlLoader->tl("event", "event", 'who') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
|
||||||
""
|
""
|
||||||
)
|
),
|
||||||
|
"was_depicted_who_wikidata{$i}" => new FieldEntry(
|
||||||
|
false,
|
||||||
|
[],
|
||||||
|
["was_depicted_who{$i}"],
|
||||||
|
'',
|
||||||
|
$tlLoader->tl("event", "event", 'who') . " (Wikidata)",
|
||||||
|
""
|
||||||
|
),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = 1; $i <= self::EVENT_MULTIPLIER * self::GENERAL_FIELD_MULTIPLIER; $i++) {
|
for ($i = 1; $i <= self::EVENT_MULTIPLIER; $i++) {
|
||||||
|
|
||||||
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "36")] = array_merge(
|
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "36")] = array_merge(
|
||||||
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "36")],
|
$availableFields[$tlLoader->tl("basis", "basis", 'event') . ': ' . $tlLoader->tl("eventtype_name", "eventname", "36")],
|
||||||
|
@ -1806,6 +1825,14 @@ final class CsvxmlAvailableFields {
|
||||||
$tlLoader->tl("event", "event", 'where') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
|
$tlLoader->tl("event", "event", 'where') . " [" . $tlLoader->tl('csvxml-overview', 'csvxml_overview', 'certainty') . "]",
|
||||||
""
|
""
|
||||||
),
|
),
|
||||||
|
"was_depicted_place_wikidata{$i}" => new FieldEntry(
|
||||||
|
false,
|
||||||
|
[],
|
||||||
|
["was_depicted_place{$i}"],
|
||||||
|
'',
|
||||||
|
$tlLoader->tl("event", "event", 'where') . " (Wikidata)",
|
||||||
|
""
|
||||||
|
),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user