1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* webtrees: online genealogy |
5
|
|
|
* Copyright (C) 2022 webtrees development team |
6
|
|
|
* This program is free software: you can redistribute it and/or modify |
7
|
|
|
* it under the terms of the GNU General Public License as published by |
8
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
9
|
|
|
* (at your option) any later version. |
10
|
|
|
* This program is distributed in the hope that it will be useful, |
11
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13
|
|
|
* GNU General Public License for more details. |
14
|
|
|
* You should have received a copy of the GNU General Public License |
15
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
16
|
|
|
*/ |
17
|
|
|
|
18
|
|
|
declare(strict_types=1); |
19
|
|
|
|
20
|
|
|
namespace Fisharebest\Webtrees; |
21
|
|
|
|
22
|
|
|
use Fisharebest\Webtrees\Contracts\ElementFactoryInterface; |
23
|
|
|
use Fisharebest\Webtrees\Contracts\ElementInterface; |
24
|
|
|
use Fisharebest\Webtrees\Elements\AddressCity; |
25
|
|
|
use Fisharebest\Webtrees\Elements\AddressCountry; |
26
|
|
|
use Fisharebest\Webtrees\Elements\AddressEmail; |
27
|
|
|
use Fisharebest\Webtrees\Elements\AddressFax; |
28
|
|
|
use Fisharebest\Webtrees\Elements\AddressLine; |
29
|
|
|
use Fisharebest\Webtrees\Elements\AddressLine1; |
30
|
|
|
use Fisharebest\Webtrees\Elements\AddressLine2; |
31
|
|
|
use Fisharebest\Webtrees\Elements\AddressLine3; |
32
|
|
|
use Fisharebest\Webtrees\Elements\AddressPostalCode; |
33
|
|
|
use Fisharebest\Webtrees\Elements\AddressState; |
34
|
|
|
use Fisharebest\Webtrees\Elements\AddressWebPage; |
35
|
|
|
use Fisharebest\Webtrees\Elements\AdoptedByWhichParent; |
36
|
|
|
use Fisharebest\Webtrees\Elements\Adoption; |
37
|
|
|
use Fisharebest\Webtrees\Elements\AdultChristening; |
38
|
|
|
use Fisharebest\Webtrees\Elements\AgeAtEvent; |
39
|
|
|
use Fisharebest\Webtrees\Elements\AncestralFileNumber; |
40
|
|
|
use Fisharebest\Webtrees\Elements\Annulment; |
41
|
|
|
use Fisharebest\Webtrees\Elements\ApprovedSystemId; |
42
|
|
|
use Fisharebest\Webtrees\Elements\AutomatedRecordId; |
43
|
|
|
use Fisharebest\Webtrees\Elements\Baptism; |
44
|
|
|
use Fisharebest\Webtrees\Elements\BarMitzvah; |
45
|
|
|
use Fisharebest\Webtrees\Elements\BasMitzvah; |
46
|
|
|
use Fisharebest\Webtrees\Elements\Birth; |
47
|
|
|
use Fisharebest\Webtrees\Elements\Blessing; |
48
|
|
|
use Fisharebest\Webtrees\Elements\Burial; |
49
|
|
|
use Fisharebest\Webtrees\Elements\CasteName; |
50
|
|
|
use Fisharebest\Webtrees\Elements\CauseOfEvent; |
51
|
|
|
use Fisharebest\Webtrees\Elements\Census; |
52
|
|
|
use Fisharebest\Webtrees\Elements\CertaintyAssessment; |
53
|
|
|
use Fisharebest\Webtrees\Elements\Change; |
54
|
|
|
use Fisharebest\Webtrees\Elements\ChangeDate; |
55
|
|
|
use Fisharebest\Webtrees\Elements\CharacterSet; |
56
|
|
|
use Fisharebest\Webtrees\Elements\ChildLinkageStatus; |
57
|
|
|
use Fisharebest\Webtrees\Elements\Christening; |
58
|
|
|
use Fisharebest\Webtrees\Elements\Confirmation; |
59
|
|
|
use Fisharebest\Webtrees\Elements\ContentDescription; |
60
|
|
|
use Fisharebest\Webtrees\Elements\Coordinates; |
61
|
|
|
use Fisharebest\Webtrees\Elements\CopyrightFile; |
62
|
|
|
use Fisharebest\Webtrees\Elements\CopyrightSourceData; |
63
|
|
|
use Fisharebest\Webtrees\Elements\CountOfChildren; |
64
|
|
|
use Fisharebest\Webtrees\Elements\CountOfMarriages; |
65
|
|
|
use Fisharebest\Webtrees\Elements\Cremation; |
66
|
|
|
use Fisharebest\Webtrees\Elements\CustomElement; |
67
|
|
|
use Fisharebest\Webtrees\Elements\CustomEvent; |
68
|
|
|
use Fisharebest\Webtrees\Elements\CustomFact; |
69
|
|
|
use Fisharebest\Webtrees\Elements\CustomFamilyEvent; |
70
|
|
|
use Fisharebest\Webtrees\Elements\CustomIndividualEvent; |
71
|
|
|
use Fisharebest\Webtrees\Elements\DateLdsOrd; |
72
|
|
|
use Fisharebest\Webtrees\Elements\DateValue; |
73
|
|
|
use Fisharebest\Webtrees\Elements\Death; |
74
|
|
|
use Fisharebest\Webtrees\Elements\DescriptiveTitle; |
75
|
|
|
use Fisharebest\Webtrees\Elements\Divorce; |
76
|
|
|
use Fisharebest\Webtrees\Elements\DivorceFiled; |
77
|
|
|
use Fisharebest\Webtrees\Elements\Emigration; |
78
|
|
|
use Fisharebest\Webtrees\Elements\EmptyElement; |
79
|
|
|
use Fisharebest\Webtrees\Elements\Engagement; |
80
|
|
|
use Fisharebest\Webtrees\Elements\EntryRecordingDate; |
81
|
|
|
use Fisharebest\Webtrees\Elements\EventAttributeType; |
82
|
|
|
use Fisharebest\Webtrees\Elements\EventOrFactClassification; |
83
|
|
|
use Fisharebest\Webtrees\Elements\EventsRecorded; |
84
|
|
|
use Fisharebest\Webtrees\Elements\EventTypeCitedFrom; |
85
|
|
|
use Fisharebest\Webtrees\Elements\FamilyCensus; |
86
|
|
|
use Fisharebest\Webtrees\Elements\FamilyRecord; |
87
|
|
|
use Fisharebest\Webtrees\Elements\FamilyResidence; |
88
|
|
|
use Fisharebest\Webtrees\Elements\FamilySearchFamilyTreeId; |
89
|
|
|
use Fisharebest\Webtrees\Elements\FamilyStatusText; |
90
|
|
|
use Fisharebest\Webtrees\Elements\FileName; |
91
|
|
|
use Fisharebest\Webtrees\Elements\FirstCommunion; |
92
|
|
|
use Fisharebest\Webtrees\Elements\Form; |
93
|
|
|
use Fisharebest\Webtrees\Elements\GedcomElement; |
94
|
|
|
use Fisharebest\Webtrees\Elements\GenerationsOfAncestors; |
95
|
|
|
use Fisharebest\Webtrees\Elements\GenerationsOfDescendants; |
96
|
|
|
use Fisharebest\Webtrees\Elements\GovIdentifier; |
97
|
|
|
use Fisharebest\Webtrees\Elements\Graduation; |
98
|
|
|
use Fisharebest\Webtrees\Elements\HeaderRecord; |
99
|
|
|
use Fisharebest\Webtrees\Elements\HierarchicalRelationship; |
100
|
|
|
use Fisharebest\Webtrees\Elements\Immigration; |
101
|
|
|
use Fisharebest\Webtrees\Elements\IndividualRecord; |
102
|
|
|
use Fisharebest\Webtrees\Elements\LanguageId; |
103
|
|
|
use Fisharebest\Webtrees\Elements\LdsBaptism; |
104
|
|
|
use Fisharebest\Webtrees\Elements\LdsBaptismDateStatus; |
105
|
|
|
use Fisharebest\Webtrees\Elements\LdsChildSealing; |
106
|
|
|
use Fisharebest\Webtrees\Elements\LdsChildSealingDateStatus; |
107
|
|
|
use Fisharebest\Webtrees\Elements\LdsConfirmation; |
108
|
|
|
use Fisharebest\Webtrees\Elements\LdsEndowment; |
109
|
|
|
use Fisharebest\Webtrees\Elements\LdsEndowmentDateStatus; |
110
|
|
|
use Fisharebest\Webtrees\Elements\LdsSpouseSealing; |
111
|
|
|
use Fisharebest\Webtrees\Elements\LdsSpouseSealingDateStatus; |
112
|
|
|
use Fisharebest\Webtrees\Elements\LocationRecord; |
113
|
|
|
use Fisharebest\Webtrees\Elements\MaidenheadLocator; |
114
|
|
|
use Fisharebest\Webtrees\Elements\Marriage; |
115
|
|
|
use Fisharebest\Webtrees\Elements\MarriageBanns; |
116
|
|
|
use Fisharebest\Webtrees\Elements\MarriageContract; |
117
|
|
|
use Fisharebest\Webtrees\Elements\MarriageLicence; |
118
|
|
|
use Fisharebest\Webtrees\Elements\MarriageSettlement; |
119
|
|
|
use Fisharebest\Webtrees\Elements\MarriageType; |
120
|
|
|
use Fisharebest\Webtrees\Elements\MediaRecord; |
121
|
|
|
use Fisharebest\Webtrees\Elements\MultimediaFileReference; |
122
|
|
|
use Fisharebest\Webtrees\Elements\MultimediaFormat; |
123
|
|
|
use Fisharebest\Webtrees\Elements\NameOfBusiness; |
124
|
|
|
use Fisharebest\Webtrees\Elements\NameOfFamilyFile; |
125
|
|
|
use Fisharebest\Webtrees\Elements\NameOfProduct; |
126
|
|
|
use Fisharebest\Webtrees\Elements\NameOfRepository; |
127
|
|
|
use Fisharebest\Webtrees\Elements\NameOfSourceData; |
128
|
|
|
use Fisharebest\Webtrees\Elements\NamePersonal; |
129
|
|
|
use Fisharebest\Webtrees\Elements\NamePhoneticVariation; |
130
|
|
|
use Fisharebest\Webtrees\Elements\NamePieceGiven; |
131
|
|
|
use Fisharebest\Webtrees\Elements\NamePieceNickname; |
132
|
|
|
use Fisharebest\Webtrees\Elements\NamePiecePrefix; |
133
|
|
|
use Fisharebest\Webtrees\Elements\NamePieceSuffix; |
134
|
|
|
use Fisharebest\Webtrees\Elements\NamePieceSurname; |
135
|
|
|
use Fisharebest\Webtrees\Elements\NamePieceSurnamePrefix; |
136
|
|
|
use Fisharebest\Webtrees\Elements\NameRomanizedVariation; |
137
|
|
|
use Fisharebest\Webtrees\Elements\NameType; |
138
|
|
|
use Fisharebest\Webtrees\Elements\NationalIdNumber; |
139
|
|
|
use Fisharebest\Webtrees\Elements\NationOrTribalOrigin; |
140
|
|
|
use Fisharebest\Webtrees\Elements\Naturalization; |
141
|
|
|
use Fisharebest\Webtrees\Elements\NobilityTypeTitle; |
142
|
|
|
use Fisharebest\Webtrees\Elements\NoteRecord; |
143
|
|
|
use Fisharebest\Webtrees\Elements\NoteStructure; |
144
|
|
|
use Fisharebest\Webtrees\Elements\Occupation; |
145
|
|
|
use Fisharebest\Webtrees\Elements\OrdinanceProcessFlag; |
146
|
|
|
use Fisharebest\Webtrees\Elements\Ordination; |
147
|
|
|
use Fisharebest\Webtrees\Elements\PafUid; |
148
|
|
|
use Fisharebest\Webtrees\Elements\PedigreeLinkageType; |
149
|
|
|
use Fisharebest\Webtrees\Elements\PermanentRecordFileNumber; |
150
|
|
|
use Fisharebest\Webtrees\Elements\PhoneNumber; |
151
|
|
|
use Fisharebest\Webtrees\Elements\PhoneticType; |
152
|
|
|
use Fisharebest\Webtrees\Elements\PhysicalDescription; |
153
|
|
|
use Fisharebest\Webtrees\Elements\PlaceHierarchy; |
154
|
|
|
use Fisharebest\Webtrees\Elements\PlaceLatitude; |
155
|
|
|
use Fisharebest\Webtrees\Elements\PlaceLivingOrdinance; |
156
|
|
|
use Fisharebest\Webtrees\Elements\PlaceLongtitude; |
157
|
|
|
use Fisharebest\Webtrees\Elements\PlaceName; |
158
|
|
|
use Fisharebest\Webtrees\Elements\PlacePhoneticVariation; |
159
|
|
|
use Fisharebest\Webtrees\Elements\PlaceRomanizedVariation; |
160
|
|
|
use Fisharebest\Webtrees\Elements\Possessions; |
161
|
|
|
use Fisharebest\Webtrees\Elements\Probate; |
162
|
|
|
use Fisharebest\Webtrees\Elements\PublicationDate; |
163
|
|
|
use Fisharebest\Webtrees\Elements\ReceivingSystemName; |
164
|
|
|
use Fisharebest\Webtrees\Elements\RelationIsDescriptor; |
165
|
|
|
use Fisharebest\Webtrees\Elements\ReligiousAffiliation; |
166
|
|
|
use Fisharebest\Webtrees\Elements\RepositoryRecord; |
167
|
|
|
use Fisharebest\Webtrees\Elements\ResearchTask; |
168
|
|
|
use Fisharebest\Webtrees\Elements\ResearchTaskPriority; |
169
|
|
|
use Fisharebest\Webtrees\Elements\ResearchTaskStatus; |
170
|
|
|
use Fisharebest\Webtrees\Elements\ResearchTaskType; |
171
|
|
|
use Fisharebest\Webtrees\Elements\Residence; |
172
|
|
|
use Fisharebest\Webtrees\Elements\ResponsibleAgency; |
173
|
|
|
use Fisharebest\Webtrees\Elements\RestrictionNotice; |
174
|
|
|
use Fisharebest\Webtrees\Elements\Retirement; |
175
|
|
|
use Fisharebest\Webtrees\Elements\RoleInEvent; |
176
|
|
|
use Fisharebest\Webtrees\Elements\RomanizedType; |
177
|
|
|
use Fisharebest\Webtrees\Elements\ScholasticAchievement; |
178
|
|
|
use Fisharebest\Webtrees\Elements\SexValue; |
179
|
|
|
use Fisharebest\Webtrees\Elements\SexXValue; |
180
|
|
|
use Fisharebest\Webtrees\Elements\SocialSecurityNumber; |
181
|
|
|
use Fisharebest\Webtrees\Elements\SourceCallNumber; |
182
|
|
|
use Fisharebest\Webtrees\Elements\SourceData; |
183
|
|
|
use Fisharebest\Webtrees\Elements\SourceFiledByEntry; |
184
|
|
|
use Fisharebest\Webtrees\Elements\SourceJurisdictionPlace; |
185
|
|
|
use Fisharebest\Webtrees\Elements\SourceMediaType; |
186
|
|
|
use Fisharebest\Webtrees\Elements\SourceOriginator; |
187
|
|
|
use Fisharebest\Webtrees\Elements\SourcePublicationFacts; |
188
|
|
|
use Fisharebest\Webtrees\Elements\SourceRecord; |
189
|
|
|
use Fisharebest\Webtrees\Elements\SubmissionRecord; |
190
|
|
|
use Fisharebest\Webtrees\Elements\SubmitterName; |
191
|
|
|
use Fisharebest\Webtrees\Elements\SubmitterRecord; |
192
|
|
|
use Fisharebest\Webtrees\Elements\SubmitterRegisteredRfn; |
193
|
|
|
use Fisharebest\Webtrees\Elements\SubmitterText; |
194
|
|
|
use Fisharebest\Webtrees\Elements\TempleCode; |
195
|
|
|
use Fisharebest\Webtrees\Elements\TextFromSource; |
196
|
|
|
use Fisharebest\Webtrees\Elements\TimeValue; |
197
|
|
|
use Fisharebest\Webtrees\Elements\TransmissionDate; |
198
|
|
|
use Fisharebest\Webtrees\Elements\UserReferenceNumber; |
199
|
|
|
use Fisharebest\Webtrees\Elements\UserReferenceType; |
200
|
|
|
use Fisharebest\Webtrees\Elements\VersionNumber; |
201
|
|
|
use Fisharebest\Webtrees\Elements\WebtreesUser; |
202
|
|
|
use Fisharebest\Webtrees\Elements\WhereWithinSource; |
203
|
|
|
use Fisharebest\Webtrees\Elements\Will; |
204
|
|
|
use Fisharebest\Webtrees\Elements\XrefAssociate; |
205
|
|
|
use Fisharebest\Webtrees\Elements\XrefFamily; |
206
|
|
|
use Fisharebest\Webtrees\Elements\XrefIndividual; |
207
|
|
|
use Fisharebest\Webtrees\Elements\XrefLocation; |
208
|
|
|
use Fisharebest\Webtrees\Elements\XrefMedia; |
209
|
|
|
use Fisharebest\Webtrees\Elements\XrefRepository; |
210
|
|
|
use Fisharebest\Webtrees\Elements\XrefSource; |
211
|
|
|
use Fisharebest\Webtrees\Elements\XrefSubmission; |
212
|
|
|
use Fisharebest\Webtrees\Elements\XrefSubmitter; |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* GEDCOM 5.5.1 specification |
216
|
|
|
*/ |
217
|
|
|
class Gedcom |
218
|
|
|
{ |
219
|
|
|
// 255 less the EOL character. |
220
|
|
|
public const LINE_LENGTH = 253; |
221
|
|
|
|
222
|
|
|
// Gedcom tags which indicate the start of life. |
223
|
|
|
public const BIRTH_EVENTS = ['BIRT', 'CHR', 'BAPM']; |
224
|
|
|
|
225
|
|
|
// Gedcom tags which indicate the end of life. |
226
|
|
|
public const DEATH_EVENTS = ['DEAT', 'BURI', 'CREM']; |
227
|
|
|
|
228
|
|
|
// Gedcom tags which indicate the start of a relationship. |
229
|
|
|
public const MARRIAGE_EVENTS = ['MARR', '_NMR']; |
230
|
|
|
|
231
|
|
|
// Gedcom tags which indicate the end of a relationship. |
232
|
|
|
public const DIVORCE_EVENTS = ['DIV', 'ANUL', '_SEPR']; |
233
|
|
|
|
234
|
|
|
// Regular expression to match a GEDCOM tag. |
235
|
|
|
public const REGEX_TAG = '[_A-Z][_A-Z0-9]*'; |
236
|
|
|
|
237
|
|
|
// Regular expression to match a GEDCOM XREF. |
238
|
|
|
public const REGEX_XREF = '[A-Za-z0-9:_.-]{1,20}'; |
239
|
|
|
|
240
|
|
|
// Regular expression to match a GEDCOM fact/event |
241
|
|
|
private const REGEX_VALUE = '( .+)?'; |
242
|
|
|
private const REGEX_LEVEL_9 = '\n9 ' . self::REGEX_TAG . self::REGEX_VALUE; |
243
|
|
|
private const REGEX_LEVEL_8 = '\n8 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_9 . ')*'; |
244
|
|
|
private const REGEX_LEVEL_7 = '\n7 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_8 . ')*'; |
245
|
|
|
private const REGEX_LEVEL_6 = '\n6 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_7 . ')*'; |
246
|
|
|
private const REGEX_LEVEL_5 = '\n5 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_6 . ')*'; |
247
|
|
|
private const REGEX_LEVEL_4 = '\n4 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_5 . ')*'; |
248
|
|
|
private const REGEX_LEVEL_3 = '\n3 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_4 . ')*'; |
249
|
|
|
private const REGEX_LEVEL_2 = '\n2 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_3 . ')*'; |
250
|
|
|
public const REGEX_FACT = '1 ' . self::REGEX_TAG . self::REGEX_VALUE . '(' . self::REGEX_LEVEL_2 . ')*'; |
251
|
|
|
|
252
|
|
|
// Separates the parts of a place name. |
253
|
|
|
public const PLACE_SEPARATOR = ', '; |
254
|
|
|
|
255
|
|
|
// Regex to match a (badly formed) GEDCOM place separator. |
256
|
|
|
public const PLACE_SEPARATOR_REGEX = '/ *,[, ]*/'; |
257
|
|
|
|
258
|
|
|
// LATI and LONG tags |
259
|
|
|
public const LATITUDE_NORTH = 'N'; |
260
|
|
|
public const LATITUDE_SOUTH = 'S'; |
261
|
|
|
public const LONGITUDE_EAST = 'E'; |
262
|
|
|
public const LONGITUDE_WEST = 'W'; |
263
|
|
|
|
264
|
|
|
// Not all record types allow a CHAN event. |
265
|
|
|
public const RECORDS_WITH_CHAN = [ |
266
|
|
|
Family::RECORD_TYPE, |
267
|
|
|
Individual::RECORD_TYPE, |
268
|
|
|
Media::RECORD_TYPE, |
269
|
|
|
Note::RECORD_TYPE, |
270
|
|
|
Repository::RECORD_TYPE, |
271
|
|
|
Source::RECORD_TYPE, |
272
|
|
|
Submitter::RECORD_TYPE, |
273
|
|
|
]; |
274
|
|
|
|
275
|
|
|
// These preferences control multiple tag definitions |
276
|
|
|
public const HIDDEN_TAGS = [ |
277
|
|
|
// Individual names |
278
|
|
|
'NAME_NPFX' => ['INDI:NAME:NPFX', 'INDI:NAME:FONE:NPFX', 'INDI:NAME:ROMN:NPFX'], |
279
|
|
|
'NAME_SPFX' => ['INDI:NAME:SPFX', 'INDI:NAME:FONE:SPFX', 'INDI:NAME:ROMN:SPFX'], |
280
|
|
|
'NAME_NSFX' => ['INDI:NAME:NSFX', 'INDI:NAME:FONE:NSFX', 'INDI:NAME:ROMN:NSFX'], |
281
|
|
|
'NAME_NICK' => ['INDI:NAME:NICK', 'INDI:NAME:FONE:NICK', 'INDI:NAME:ROMN:NICK'], |
282
|
|
|
'NAME_FONE' => ['INDI:NAME:FONE'], |
283
|
|
|
'NAME_ROMN' => ['INDI:NAME:ROMN'], |
284
|
|
|
'NAME_NOTE' => ['INDI:NAME:NOTE'], |
285
|
|
|
'NAME_SOUR' => ['INDI:NAME:SOUR'], |
286
|
|
|
// Places |
287
|
|
|
'PLAC_MAP' => [':PLAC:MAP'], |
288
|
|
|
'PLAC_FONE' => [':PLAC:FONE'], |
289
|
|
|
'PLAC_ROMN' => [':PLAC:ROMN'], |
290
|
|
|
'PLAC_FORM' => [':PLAC:FORM', 'HEAD:PLAC'], |
291
|
|
|
'PLAC_NOTE' => [':PLAC:NOTE'], |
292
|
|
|
// Addresses |
293
|
|
|
'ADDR_EMAIL' => [':EMAIL'], |
294
|
|
|
'ADDR_PHON' => [':PHON'], |
295
|
|
|
'ADDR_WWW' => [':WWW'], |
296
|
|
|
// Source citations |
297
|
|
|
'SOUR_EVEN' => [':SOUR:EVEN'], |
298
|
|
|
'SOUR_DATE' => [':SOUR:DATA:DATE'], |
299
|
|
|
'SOUR_NOTE' => [':SOUR:NOTE'], |
300
|
|
|
'SOUR_QUAY' => [':SOUR:QUAY'], |
301
|
|
|
// Sources |
302
|
|
|
'SOUR_DATA' => ['SOUR:DATA:EVEN', 'SOUR:DATA:AGNC', 'SOUR:DATA:NOTE'], |
303
|
|
|
// Individuals |
304
|
|
|
'BIRT_FAMC' => ['INDI:BIRT:FAMC'], |
305
|
|
|
'RELI' => ['INDI:RELI'], |
306
|
|
|
'BAPM' => ['INDI:BAPM'], |
307
|
|
|
'CHR' => ['INDI:CHR', 'INDI:CHRA'], |
308
|
|
|
'FCOM' => ['INDI:FCOM', 'INDI:CONF'], |
309
|
|
|
'ORDN' => ['INDI:ORDN'], |
310
|
|
|
'BARM' => ['INDI:BARM', 'INDI:BASM'], |
311
|
|
|
'ALIA' => ['INDI:ALIA'], |
312
|
|
|
'ASSO' => ['INDI:ASSO'], |
313
|
|
|
// Families |
314
|
|
|
'ENGA' => ['FAM:ENGA'], |
315
|
|
|
'MARB' => ['FAM:MARB'], |
316
|
|
|
'MARC' => ['FAM:MARC'], |
317
|
|
|
'MARL' => ['FAM:MARL'], |
318
|
|
|
'MARS' => ['FAM:MARS'], |
319
|
|
|
'ANUL' => ['FAM:ANUL'], |
320
|
|
|
'DIVF' => ['FAM:DIVF'], |
321
|
|
|
'FAM_RESI' => ['FAM:RESI'], |
322
|
|
|
'FAM_CENS' => ['FAM:CENS'], |
323
|
|
|
// LDS church |
324
|
|
|
'LDS' => ['INDI:BAPL', 'INDI:CONL', 'INDI:ENDL', 'INDI:SLGC', 'FAM:SLGS', 'HEAD:SUBN'], |
325
|
|
|
// Identifiers |
326
|
|
|
'AFN' => ['INDI:AFN'], |
327
|
|
|
'IDNO' => ['INDI:IDNO'], |
328
|
|
|
'SSN' => ['INDI:SSN'], |
329
|
|
|
'RFN' => [':RFN'], |
330
|
|
|
'REFN' => [':REFN'], |
331
|
|
|
'RIN' => [':RIN'], |
332
|
|
|
// Submitters |
333
|
|
|
'SUBM' => ['INDI:SUBM', 'FAM:SUBM'], |
334
|
|
|
'ANCI' => ['INDI:ANCI', 'INDI:DESI'], |
335
|
|
|
]; |
336
|
|
|
|
337
|
|
|
// Custom GEDCOM tags that can be created in webtrees. |
338
|
|
|
public const CUSTOM_FAMILY_TAGS = [ |
339
|
|
|
'FACT', |
340
|
|
|
'_COML', |
341
|
|
|
'_MARI', |
342
|
|
|
'_MBON', |
343
|
|
|
'_NMR', |
344
|
|
|
'_SEPR', |
345
|
|
|
]; |
346
|
|
|
|
347
|
|
|
public const CUSTOM_INDIVIDUAL_TAGS = [ |
348
|
|
|
'_BRTM', |
349
|
|
|
'_CIRC', |
350
|
|
|
'_DEG', |
351
|
|
|
'_DNA', |
352
|
|
|
'_EXCM', |
353
|
|
|
'_EYEC', |
354
|
|
|
'_FNRL', |
355
|
|
|
'_FSFTID', |
356
|
|
|
'_HAIR', |
357
|
|
|
'_HEIG', |
358
|
|
|
'_INTE', |
359
|
|
|
'_MDCL', |
360
|
|
|
'_MEDC', |
361
|
|
|
'_MILI', |
362
|
|
|
'_MILT', |
363
|
|
|
'_NAMS', |
364
|
|
|
'_PRMN', |
365
|
|
|
'_WEIG', |
366
|
|
|
'_YART', |
367
|
|
|
]; |
368
|
|
|
|
369
|
|
|
// Some applications create GEDCOM files containing records without XREFS. |
370
|
|
|
// We cannot process these. |
371
|
|
|
public const CUSTOM_RECORDS_WITHOUT_XREFS = [ |
372
|
|
|
'EMOTIONALRELATIONSHIP', // GenoPro |
373
|
|
|
'GENOMAP', // GenoPro |
374
|
|
|
'GLOBAL', // GenoPro |
375
|
|
|
'LABEL', // GenoPro |
376
|
|
|
'PEDIGREELINK', // GenoPro |
377
|
|
|
'SOCIALRELATIONSHIP', // GenoPro |
378
|
|
|
'_EVDEF', // RootsMagic |
379
|
|
|
'_EVENT_DEFN', // PAF and Legacy |
380
|
|
|
'_HASHTAG_DEFN', // Legacy |
381
|
|
|
'_PUBLISH', // MyHeritage |
382
|
|
|
'_TODO', // Legacy |
383
|
|
|
]; |
384
|
|
|
|
385
|
|
|
/** |
386
|
|
|
* Definitions for GEDCOM 5.5.1. |
387
|
|
|
* |
388
|
|
|
* @return array<string,ElementInterface> |
389
|
|
|
*/ |
390
|
|
|
private function gedcom551Tags(): array |
391
|
|
|
{ |
392
|
|
|
return [ |
393
|
|
|
'FAM' => new FamilyRecord(I18N::translate('Family')), |
394
|
|
|
'FAM:*:ADDR' => new AddressLine(I18N::translate('Address')), |
395
|
|
|
'FAM:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
396
|
|
|
'FAM:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
397
|
|
|
'FAM:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
398
|
|
|
'FAM:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
399
|
|
|
'FAM:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
400
|
|
|
'FAM:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
401
|
|
|
'FAM:*:ADDR:STAE' => new AddressState(I18N::translate('State')), |
402
|
|
|
'FAM:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), |
403
|
|
|
'FAM:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), |
404
|
|
|
'FAM:*:DATE' => new DateValue(I18N::translate('Date')), |
405
|
|
|
'FAM:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
406
|
|
|
'FAM:*:FAX' => new AddressFax(I18N::translate('Fax')), |
407
|
|
|
'FAM:*:HUSB' => new EmptyElement(I18N::translate('Husband'), ['AGE' => '0:1']), |
408
|
|
|
'FAM:*:HUSB:AGE' => new AgeAtEvent(I18N::translate('Husband’s age')), |
409
|
|
|
'FAM:*:NOTE' => new NoteStructure(I18N::translate('Note')), |
410
|
|
|
'FAM:*:OBJE' => new XrefMedia(I18N::translate('Media object')), |
411
|
|
|
'FAM:*:PHON' => new PhoneNumber(I18N::translate('Phone')), |
412
|
|
|
'FAM:*:PLAC' => new PlaceName(I18N::translate('Place')), |
413
|
|
|
'FAM:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), |
414
|
|
|
'FAM:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), |
415
|
|
|
'FAM:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), |
416
|
|
|
'FAM:*:PLAC:MAP' => new Coordinates(I18N::translate('Coordinates')), |
417
|
|
|
'FAM:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), |
418
|
|
|
'FAM:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), |
419
|
|
|
'FAM:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), |
420
|
|
|
'FAM:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), |
421
|
|
|
'FAM:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), |
422
|
|
|
'FAM:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), |
423
|
|
|
'FAM:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
424
|
|
|
'FAM:*:SOUR' => new XrefSource(I18N::translate('Source citation')), |
425
|
|
|
'FAM:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
426
|
|
|
'FAM:*:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
427
|
|
|
'FAM:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
428
|
|
|
'FAM:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
429
|
|
|
'FAM:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
430
|
|
|
'FAM:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
431
|
|
|
'FAM:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
432
|
|
|
'FAM:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
433
|
|
|
'FAM:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
434
|
|
|
'FAM:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), |
435
|
|
|
'FAM:*:WIFE' => new EmptyElement(I18N::translate('Wife'), ['AGE' => '0:1']), |
436
|
|
|
'FAM:*:WIFE:AGE' => new AgeAtEvent(I18N::translate('Wife’s age')), |
437
|
|
|
'FAM:*:WWW' => new AddressWebPage(I18N::translate('URL')), |
438
|
|
|
'FAM:ANUL' => new Annulment(I18N::translate('Annulment')), |
439
|
|
|
'FAM:CENS' => new FamilyCensus(I18N::translate('Family census')), |
440
|
|
|
'FAM:CHAN' => new Change(I18N::translate('Last change')), |
441
|
|
|
'FAM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
442
|
|
|
'FAM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
443
|
|
|
'FAM:CHIL' => new XrefIndividual(I18N::translate('Child')), |
444
|
|
|
'FAM:DIV' => new Divorce(I18N::translate('Divorce')), |
445
|
|
|
'FAM:DIV:DATE' => new DateValue(I18N::translate('Date of divorce')), |
446
|
|
|
'FAM:DIVF' => new DivorceFiled(I18N::translate('Divorce filed')), |
447
|
|
|
'FAM:ENGA' => new Engagement(I18N::translate('Engagement')), |
448
|
|
|
'FAM:ENGA:DATE' => new DateValue(I18N::translate('Date of engagement')), |
449
|
|
|
'FAM:ENGA:PLAC' => new PlaceName(I18N::translate('Place of engagement')), |
450
|
|
|
'FAM:EVEN' => new CustomFamilyEvent(I18N::translate('Event')), |
451
|
|
|
'FAM:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), |
452
|
|
|
'FAM:HUSB' => new XrefIndividual(I18N::translate('Husband')), |
453
|
|
|
'FAM:MARB' => new MarriageBanns(I18N::translate('Marriage banns')), |
454
|
|
|
'FAM:MARB:DATE' => new DateValue(I18N::translate('Date of marriage banns')), |
455
|
|
|
'FAM:MARB:PLAC' => new PlaceName(I18N::translate('Place of marriage banns')), |
456
|
|
|
'FAM:MARC' => new MarriageContract(I18N::translate('Marriage contract')), |
457
|
|
|
'FAM:MARL' => new MarriageLicence(I18N::translate('Marriage license')), |
458
|
|
|
'FAM:MARR' => new Marriage(I18N::translate('Marriage')), |
459
|
|
|
'FAM:MARR:DATE' => new DateValue(I18N::translate('Date of marriage')), |
460
|
|
|
'FAM:MARR:PLAC' => new PlaceName(I18N::translate('Place of marriage')), |
461
|
|
|
'FAM:MARR:TYPE' => new MarriageType(I18N::translate('Type of marriage')), |
462
|
|
|
'FAM:MARS' => new MarriageSettlement(I18N::translate('Marriage settlement')), |
463
|
|
|
'FAM:NCHI' => new CountOfChildren(I18N::translate('Number of children')), |
464
|
|
|
'FAM:NOTE' => new NoteStructure(I18N::translate('Note')), |
465
|
|
|
'FAM:OBJE' => new XrefMedia(I18N::translate('Media object')), |
466
|
|
|
'FAM:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
467
|
|
|
'FAM:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
468
|
|
|
'FAM:RESI' => new FamilyResidence(I18N::translate('Family residence')), |
469
|
|
|
'FAM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
470
|
|
|
'FAM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
471
|
|
|
'FAM:SLGS' => new LdsSpouseSealing(I18N::translate('LDS spouse sealing')), |
472
|
|
|
'FAM:SLGS:DATE' => new DateLdsOrd(I18N::translate('Date of LDS spouse sealing')), |
473
|
|
|
'FAM:SLGS:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS spouse sealing')), |
474
|
|
|
'FAM:SLGS:STAT' => new LdsSpouseSealingDateStatus(I18N::translate('Status')), |
475
|
|
|
'FAM:SLGS:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), |
476
|
|
|
'FAM:SLGS:TEMP' => new TempleCode(I18N::translate('Temple')), |
477
|
|
|
'FAM:SOUR' => new XrefSource(I18N::translate('Source citation')), |
478
|
|
|
'FAM:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
479
|
|
|
'FAM:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
480
|
|
|
'FAM:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
481
|
|
|
'FAM:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
482
|
|
|
'FAM:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
483
|
|
|
'FAM:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
484
|
|
|
'FAM:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
485
|
|
|
'FAM:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
486
|
|
|
'FAM:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
487
|
|
|
'FAM:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), |
488
|
|
|
'FAM:WIFE' => new XrefIndividual(I18N::translate('Wife')), |
489
|
|
|
'HEAD' => new HeaderRecord(I18N::translate('Header')), |
490
|
|
|
'HEAD:CHAR' => new CharacterSet(I18N::translate('Character set')), |
491
|
|
|
'HEAD:CHAR:VERS' => new VersionNumber(I18N::translate('Version')), |
492
|
|
|
'HEAD:COPR' => new CopyrightFile(I18N::translate('Copyright')), |
493
|
|
|
'HEAD:DATE' => new TransmissionDate(I18N::translate('Date')), |
494
|
|
|
'HEAD:DATE:TIME' => new TimeValue(I18N::translate('Time')), |
495
|
|
|
'HEAD:DEST' => new ReceivingSystemName(I18N::translate('Destination')), |
496
|
|
|
'HEAD:FILE' => new FileName(I18N::translate('Filename')), |
497
|
|
|
'HEAD:GEDC' => new GedcomElement(I18N::translate('GEDCOM')), |
498
|
|
|
'HEAD:GEDC:FORM' => new Form(I18N::translate('Format')), |
499
|
|
|
'HEAD:GEDC:VERS' => new VersionNumber(I18N::translate('Version')), |
500
|
|
|
'HEAD:LANG' => new LanguageId(I18N::translate('Language')), |
501
|
|
|
'HEAD:NOTE' => new ContentDescription(I18N::translate('Note')), |
502
|
|
|
'HEAD:PLAC' => new EmptyElement(I18N::translate('Place hierarchy'), ['FORM' => '1:1']), |
503
|
|
|
'HEAD:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), |
504
|
|
|
'HEAD:SOUR' => new ApprovedSystemId(I18N::translate('Application ID')), |
505
|
|
|
'HEAD:SOUR:CORP' => new NameOfBusiness(I18N::translate('Corporation')), |
506
|
|
|
'HEAD:SOUR:CORP:ADDR' => new AddressLine(I18N::translate('Address')), |
507
|
|
|
'HEAD:SOUR:CORP:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
508
|
|
|
'HEAD:SOUR:CORP:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
509
|
|
|
'HEAD:SOUR:CORP:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
510
|
|
|
'HEAD:SOUR:CORP:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
511
|
|
|
'HEAD:SOUR:CORP:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
512
|
|
|
'HEAD:SOUR:CORP:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
513
|
|
|
'HEAD:SOUR:CORP:ADDR:STAE' => new AddressState(I18N::translate('State')), |
514
|
|
|
'HEAD:SOUR:CORP:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
515
|
|
|
'HEAD:SOUR:CORP:FAX' => new AddressFax(I18N::translate('Fax')), |
516
|
|
|
'HEAD:SOUR:CORP:PHON' => new PhoneNumber(I18N::translate('Phone')), |
517
|
|
|
'HEAD:SOUR:CORP:WWW' => new AddressWebPage(I18N::translate('URL')), |
518
|
|
|
'HEAD:SOUR:DATA' => new NameOfSourceData(I18N::translate('Data')), |
519
|
|
|
'HEAD:SOUR:DATA:COPR' => new CopyrightSourceData(I18N::translate('Copyright')), |
520
|
|
|
'HEAD:SOUR:DATA:DATE' => new PublicationDate(I18N::translate('Date')), |
521
|
|
|
'HEAD:SOUR:NAME' => new NameOfProduct(I18N::translate('Application name')), |
522
|
|
|
'HEAD:SOUR:VERS' => new VersionNumber(I18N::translate('Version')), |
523
|
|
|
'HEAD:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), |
524
|
|
|
'HEAD:SUBN' => new XrefSubmission(I18N::translate('Submission')), |
525
|
|
|
'INDI' => new IndividualRecord(I18N::translate('Individual')), |
526
|
|
|
'INDI:*:ADDR' => new AddressLine(I18N::translate('Address')), |
527
|
|
|
'INDI:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
528
|
|
|
'INDI:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
529
|
|
|
'INDI:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
530
|
|
|
'INDI:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
531
|
|
|
'INDI:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
532
|
|
|
'INDI:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
533
|
|
|
'INDI:*:ADDR:STAE' => new AddressState(I18N::translate('State')), |
534
|
|
|
'INDI:*:AGE' => new AgeAtEvent(I18N::translate('Age')), |
535
|
|
|
'INDI:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), |
536
|
|
|
'INDI:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), |
537
|
|
|
'INDI:*:DATE' => new DateValue(I18N::translate('Date')), |
538
|
|
|
'INDI:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
539
|
|
|
'INDI:*:FAX' => new AddressFax(I18N::translate('Fax')), |
540
|
|
|
'INDI:*:NOTE' => new NoteStructure(I18N::translate('Note')), |
541
|
|
|
'INDI:*:OBJE' => new XrefMedia(I18N::translate('Media object')), |
542
|
|
|
'INDI:*:PHON' => new PhoneNumber(I18N::translate('Phone')), |
543
|
|
|
'INDI:*:PLAC' => new PlaceName(I18N::translate('Place')), |
544
|
|
|
'INDI:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), |
545
|
|
|
'INDI:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), |
546
|
|
|
'INDI:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), |
547
|
|
|
'INDI:*:PLAC:MAP' => new Coordinates(I18N::translate('Coordinates')), |
548
|
|
|
'INDI:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), |
549
|
|
|
'INDI:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), |
550
|
|
|
'INDI:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), |
551
|
|
|
'INDI:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), |
552
|
|
|
'INDI:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), |
553
|
|
|
'INDI:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), |
554
|
|
|
'INDI:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
555
|
|
|
'INDI:*:SOUR' => new XrefSource(I18N::translate('Source citation')), |
556
|
|
|
'INDI:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
557
|
|
|
'INDI:*:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
558
|
|
|
'INDI:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
559
|
|
|
'INDI:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
560
|
|
|
'INDI:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
561
|
|
|
'INDI:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
562
|
|
|
'INDI:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
563
|
|
|
'INDI:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
564
|
|
|
'INDI:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
565
|
|
|
'INDI:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), |
566
|
|
|
'INDI:*:WWW' => new AddressWebPage(I18N::translate('URL')), |
567
|
|
|
'INDI:ADOP' => new Adoption(I18N::translate('Adoption')), |
568
|
|
|
'INDI:ADOP:DATE' => new DateValue(I18N::translate('Date of adoption')), |
569
|
|
|
'INDI:ADOP:FAMC' => new XrefFamily(I18N::translate('Adoptive parents')), |
570
|
|
|
'INDI:ADOP:FAMC:ADOP' => new AdoptedByWhichParent(I18N::translate('Adoption')), |
571
|
|
|
'INDI:ADOP:PLAC' => new PlaceName(I18N::translate('Place of adoption')), |
572
|
|
|
'INDI:AFN' => new AncestralFileNumber(I18N::translate('Ancestral file number')), |
573
|
|
|
'INDI:ALIA' => new XrefIndividual(I18N::translate('Alias')), |
574
|
|
|
'INDI:ANCI' => new XrefSubmitter(I18N::translate('Ancestors interest')), |
575
|
|
|
'INDI:ASSO' => new XrefAssociate(I18N::translate('Associate')), |
576
|
|
|
'INDI:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
577
|
|
|
'INDI:BAPL' => new LdsBaptism(I18N::translate('LDS baptism')), |
578
|
|
|
'INDI:BAPL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS baptism')), |
579
|
|
|
'INDI:BAPL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS baptism')), |
580
|
|
|
'INDI:BAPL:STAT' => new LdsBaptismDateStatus(I18N::translate('Status')), |
581
|
|
|
'INDI:BAPL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), |
582
|
|
|
'INDI:BAPL:TEMP' => new TempleCode(I18N::translate('Temple')), |
583
|
|
|
'INDI:BAPM' => new Baptism(I18N::translate('Baptism')), |
584
|
|
|
'INDI:BAPM:DATE' => new DateValue(I18N::translate('Date of baptism')), |
585
|
|
|
'INDI:BAPM:PLAC' => new PlaceName(I18N::translate('Place of baptism')), |
586
|
|
|
'INDI:BARM' => new BarMitzvah(I18N::translate('Bar mitzvah')), |
587
|
|
|
'INDI:BARM:DATE' => new DateValue(I18N::translate('Date of bar mitzvah')), |
588
|
|
|
'INDI:BARM:PLAC' => new PlaceName(I18N::translate('Place of bar mitzvah')), |
589
|
|
|
'INDI:BASM' => new BasMitzvah(I18N::translate('Bat mitzvah')), |
590
|
|
|
'INDI:BASM:DATE' => new BasMitzvah(I18N::translate('Date of bat mitzvah')), |
591
|
|
|
'INDI:BASM:PLAC' => new DateValue(I18N::translate('Place of bat mitzvah')), |
592
|
|
|
'INDI:BIRT' => new Birth(I18N::translate('Birth')), |
593
|
|
|
'INDI:BIRT:DATE' => new DateValue(I18N::translate('Date of birth')), |
594
|
|
|
'INDI:BIRT:FAMC' => new XrefFamily(I18N::translate('Birth parents')), |
595
|
|
|
'INDI:BIRT:PLAC' => new PlaceName(I18N::translate('Place of birth')), |
596
|
|
|
'INDI:BLES' => new Blessing(I18N::translate('Blessing')), |
597
|
|
|
'INDI:BLES:DATE' => new DateValue(I18N::translate('Date of blessing')), |
598
|
|
|
'INDI:BLES:PLAC' => new PlaceName(I18N::translate('Place of blessing')), |
599
|
|
|
'INDI:BURI' => new Burial(I18N::translate('Burial')), |
600
|
|
|
'INDI:BURI:DATE' => new DateValue(I18N::translate('Date of burial')), |
601
|
|
|
'INDI:BURI:PLAC' => new PlaceName(I18N::translate('Place of burial')), |
602
|
|
|
'INDI:CAST' => new CasteName(I18N::translate('Caste')), |
603
|
|
|
'INDI:CENS' => new Census(I18N::translate('Census')), |
604
|
|
|
'INDI:CENS:DATE' => new DateValue(I18N::translate('Census date')), |
605
|
|
|
'INDI:CENS:PLAC' => new PlaceName(I18N::translate('Census place')), |
606
|
|
|
'INDI:CHAN' => new Change(I18N::translate('Last change')), |
607
|
|
|
'INDI:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
608
|
|
|
'INDI:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
609
|
|
|
'INDI:CHR' => new Christening(I18N::translate('Christening')), |
610
|
|
|
'INDI:CHR:DATE' => new DateValue(I18N::translate('Date of christening')), |
611
|
|
|
'INDI:CHR:FAMC' => new XrefFamily(I18N::translate('Godparents')), |
612
|
|
|
'INDI:CHR:PLAC' => new PlaceName(I18N::translate('Place of christening')), |
613
|
|
|
'INDI:CHRA' => new AdultChristening(I18N::translate('Adult christening')), |
614
|
|
|
'INDI:CHRA:PLAC' => new PlaceName(I18N::translate('Place of christening')), |
615
|
|
|
'INDI:CONF' => new Confirmation(I18N::translate('Confirmation')), |
616
|
|
|
'INDI:CONF:DATE' => new DateValue(I18N::translate('Date of confirmation')), |
617
|
|
|
'INDI:CONF:PLAC' => new PlaceName(I18N::translate('Place of confirmation')), |
618
|
|
|
'INDI:CONL' => new LdsConfirmation(I18N::translate('LDS confirmation')), |
619
|
|
|
'INDI:CONL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS confirmation')), |
620
|
|
|
'INDI:CONL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS confirmation')), |
621
|
|
|
'INDI:CONL:STAT' => new LdsSpouseSealingDateStatus(I18N::translate('Status')), |
622
|
|
|
'INDI:CONL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), |
623
|
|
|
'INDI:CONL:TEMP' => new TempleCode(I18N::translate('Temple')), |
624
|
|
|
'INDI:CREM' => new Cremation(I18N::translate('Cremation')), |
625
|
|
|
'INDI:CREM:DATE' => new DateValue(I18N::translate('Date of cremation')), |
626
|
|
|
'INDI:CREM:PLAC' => new PlaceName(I18N::translate('Place of cremation')), |
627
|
|
|
'INDI:DEAT' => new Death(I18N::translate('Death')), |
628
|
|
|
'INDI:DEAT:CAUS' => new CauseOfEvent(I18N::translate('Cause of death')), |
629
|
|
|
'INDI:DEAT:DATE' => new DateValue(I18N::translate('Date of death')), |
630
|
|
|
'INDI:DEAT:PLAC' => new PlaceName(I18N::translate('Place of death')), |
631
|
|
|
'INDI:DESI' => new XrefSubmitter(I18N::translate('Descendants interest')), |
632
|
|
|
'INDI:DSCR' => new PhysicalDescription(I18N::translate('Description')), |
633
|
|
|
'INDI:EDUC' => new ScholasticAchievement(I18N::translate('Education')), |
634
|
|
|
'INDI:EDUC:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), |
635
|
|
|
'INDI:EMIG' => new Emigration(I18N::translate('Emigration')), |
636
|
|
|
'INDI:EMIG:DATE' => new DateValue(I18N::translate('Date of emigration')), |
637
|
|
|
'INDI:EMIG:PLAC' => new PlaceName(I18N::translate('Place of emigration')), |
638
|
|
|
'INDI:ENDL' => new LdsEndowment(I18N::translate('LDS endowment')), |
639
|
|
|
'INDI:ENDL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS endowment')), |
640
|
|
|
'INDI:ENDL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS endowment')), |
641
|
|
|
'INDI:ENDL:STAT' => new LdsEndowmentDateStatus(I18N::translate('Status')), |
642
|
|
|
'INDI:ENDL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), |
643
|
|
|
'INDI:ENDL:TEMP' => new TempleCode(I18N::translate('Temple')), |
644
|
|
|
'INDI:EVEN' => new CustomIndividualEvent(I18N::translate('Event')), |
645
|
|
|
'INDI:EVEN:DATE' => new DateValue(I18N::translate('Date of event')), |
646
|
|
|
'INDI:EVEN:PLAC' => new PlaceName(I18N::translate('Place of event')), |
647
|
|
|
'INDI:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), |
648
|
|
|
'INDI:FACT' => new CustomFact(I18N::translate('Fact')), |
649
|
|
|
'INDI:FACT:TYPE' => new EventAttributeType(I18N::translate('Type of fact')), |
650
|
|
|
'INDI:FAMC' => new XrefFamily(I18N::translate('Family as a child'), ['NOTE' => '0:1', 'PEDI' => '0:1', 'STAT' => '0:1']), |
651
|
|
|
'INDI:FAMC:PEDI' => new PedigreeLinkageType(I18N::translate('Relationship to parents')), |
652
|
|
|
'INDI:FAMC:STAT' => new ChildLinkageStatus(I18N::translate('Status')), |
653
|
|
|
'INDI:FAMS' => new XrefFamily(I18N::translate('Family as a spouse')), |
654
|
|
|
'INDI:FCOM' => new FirstCommunion(I18N::translate('First communion')), |
655
|
|
|
'INDI:FCOM:DATE' => new DateValue(I18N::translate('Date of first communion')), |
656
|
|
|
'INDI:FCOM:PLAC' => new PlaceName(I18N::translate('Place of first communion')), |
657
|
|
|
'INDI:GRAD' => new Graduation(I18N::translate('Graduation')), |
658
|
|
|
'INDI:GRAD:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), |
659
|
|
|
'INDI:IDNO' => new NationalIdNumber(I18N::translate('Identification number')), |
660
|
|
|
'INDI:IDNO:TYPE' => new EventAttributeType(I18N::translate('Type of identification number')), |
661
|
|
|
'INDI:IMMI' => new Immigration(I18N::translate('Immigration')), |
662
|
|
|
'INDI:IMMI:DATE' => new DateValue(I18N::translate('Date of immigration')), |
663
|
|
|
'INDI:IMMI:PLAC' => new PlaceName(I18N::translate('Place of immigration')), |
664
|
|
|
'INDI:NAME' => new NamePersonal(I18N::translate('Name')), |
665
|
|
|
'INDI:NAME:FONE' => new NamePhoneticVariation(I18N::translate('Phonetic name')), |
666
|
|
|
'INDI:NAME:FONE:GIVN' => new NamePieceGiven(I18N::translate('Given names')), |
667
|
|
|
'INDI:NAME:FONE:NICK' => new NamePieceNickname(I18N::translate('Nickname')), |
668
|
|
|
'INDI:NAME:FONE:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), |
669
|
|
|
'INDI:NAME:FONE:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), |
670
|
|
|
'INDI:NAME:FONE:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), |
671
|
|
|
'INDI:NAME:FONE:SURN' => new NamePieceSurname(I18N::translate('Surname')), |
672
|
|
|
'INDI:NAME:FONE:TYPE' => new PhoneticType(I18N::translate('Phonetic type')), |
673
|
|
|
'INDI:NAME:GIVN' => new NamePieceGiven(I18N::translate('Given names')), |
674
|
|
|
'INDI:NAME:NICK' => new NamePieceNickname(I18N::translate('Nickname')), |
675
|
|
|
'INDI:NAME:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), |
676
|
|
|
'INDI:NAME:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), |
677
|
|
|
'INDI:NAME:ROMN' => new NameRomanizedVariation(I18N::translate('Romanized name')), |
678
|
|
|
'INDI:NAME:ROMN:GIVN' => new NamePieceGiven(I18N::translate('Given names')), |
679
|
|
|
'INDI:NAME:ROMN:NICK' => new NamePieceNickname(I18N::translate('Nickname')), |
680
|
|
|
'INDI:NAME:ROMN:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), |
681
|
|
|
'INDI:NAME:ROMN:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), |
682
|
|
|
'INDI:NAME:ROMN:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), |
683
|
|
|
'INDI:NAME:ROMN:SURN' => new NamePieceSurname(I18N::translate('Surname')), |
684
|
|
|
'INDI:NAME:ROMN:TYPE' => new RomanizedType(I18N::translate('Romanized type')), |
685
|
|
|
'INDI:NAME:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), |
686
|
|
|
'INDI:NAME:SURN' => new NamePieceSurname(I18N::translate('Surname')), |
687
|
|
|
'INDI:NAME:TYPE' => new NameType(I18N::translate('Type of name')), |
688
|
|
|
'INDI:NATI' => new NationOrTribalOrigin(I18N::translate('Nationality')), |
689
|
|
|
'INDI:NATU' => new Naturalization(I18N::translate('Naturalization')), |
690
|
|
|
'INDI:NATU:DATE' => new DateValue(I18N::translate('Date of naturalization')), |
691
|
|
|
'INDI:NATU:PLAC' => new PlaceName(I18N::translate('Place of naturalization')), |
692
|
|
|
'INDI:NCHI' => new CountOfChildren(I18N::translate('Number of children')), |
693
|
|
|
'INDI:NMR' => new CountOfMarriages(I18N::translate('Number of marriages')), |
694
|
|
|
'INDI:NOTE' => new NoteStructure(I18N::translate('Note')), |
695
|
|
|
'INDI:OBJE' => new XrefMedia(I18N::translate('Media object')), |
696
|
|
|
'INDI:OCCU' => new Occupation(I18N::translate('Occupation')), |
697
|
|
|
'INDI:OCCU:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), |
698
|
|
|
'INDI:ORDN' => new Ordination(I18N::translate('Ordination')), |
699
|
|
|
'INDI:ORDN:AGNC' => new Ordination(I18N::translate('Religious institution')), |
700
|
|
|
'INDI:ORDN:DATE' => new Ordination(I18N::translate('Date of ordination')), |
701
|
|
|
'INDI:ORDN:PLAC' => new Ordination(I18N::translate('Place of ordination')), |
702
|
|
|
'INDI:PROB' => new Probate(I18N::translate('Probate')), |
703
|
|
|
'INDI:PROP' => new Possessions(I18N::translate('Property')), |
704
|
|
|
'INDI:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
705
|
|
|
'INDI:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
706
|
|
|
'INDI:RELI' => new ReligiousAffiliation(I18N::translate('Religion')), |
707
|
|
|
'INDI:RESI' => new Residence(I18N::translate('Residence')), |
708
|
|
|
'INDI:RESI:DATE' => new DateValue(I18N::translate('Date of residence')), |
709
|
|
|
'INDI:RESI:PLAC' => new PlaceName(I18N::translate('Place of residence')), |
710
|
|
|
'INDI:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
711
|
|
|
'INDI:RETI' => new Retirement(I18N::translate('Retirement')), |
712
|
|
|
'INDI:RETI:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), |
713
|
|
|
'INDI:RFN' => new PermanentRecordFileNumber(I18N::translate('Record file number')), |
714
|
|
|
'INDI:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
715
|
|
|
'INDI:SEX' => new SexValue(I18N::translate('Gender')), |
716
|
|
|
'INDI:SLGC' => new LdsChildSealing(I18N::translate('LDS child sealing')), |
717
|
|
|
'INDI:SLGC:DATE' => new DateLdsOrd(I18N::translate('Date of LDS child sealing')), |
718
|
|
|
'INDI:SLGC:FAMC' => new XrefFamily(I18N::translate('Parents')), |
719
|
|
|
'INDI:SLGC:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS child sealing')), |
720
|
|
|
'INDI:SLGC:STAT' => new LdsChildSealingDateStatus(I18N::translate('Status')), |
721
|
|
|
'INDI:SLGC:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), |
722
|
|
|
'INDI:SLGC:TEMP' => new TempleCode(I18N::translate('Temple')), |
723
|
|
|
'INDI:SOUR' => new XrefSource(I18N::translate('Source citation')), |
724
|
|
|
'INDI:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
725
|
|
|
'INDI:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
726
|
|
|
'INDI:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
727
|
|
|
'INDI:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
728
|
|
|
'INDI:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
729
|
|
|
'INDI:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
730
|
|
|
'INDI:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
731
|
|
|
'INDI:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
732
|
|
|
'INDI:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
733
|
|
|
'INDI:SSN' => new SocialSecurityNumber(I18N::translate('Social security number')), |
734
|
|
|
'INDI:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), |
735
|
|
|
'INDI:TITL' => new NobilityTypeTitle(I18N::translate('Title')), |
736
|
|
|
'INDI:WILL' => new Will(I18N::translate('Will')), |
737
|
|
|
'NOTE' => new NoteRecord(I18N::translate('Shared note')), |
738
|
|
|
'NOTE:CHAN' => new Change(I18N::translate('Last change')), |
739
|
|
|
'NOTE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
740
|
|
|
'NOTE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
741
|
|
|
'NOTE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
742
|
|
|
'NOTE:CONC' => new SubmitterText(I18N::translate('Note')), |
743
|
|
|
'NOTE:CONT' => new SubmitterText(I18N::translate('Continuation')), |
744
|
|
|
'NOTE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
745
|
|
|
'NOTE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
746
|
|
|
'NOTE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
747
|
|
|
'NOTE:SOUR' => new XrefSource(I18N::translate('Source citation')), |
748
|
|
|
'NOTE:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
749
|
|
|
'NOTE:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
750
|
|
|
'NOTE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
751
|
|
|
'NOTE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
752
|
|
|
'NOTE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
753
|
|
|
'NOTE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
754
|
|
|
'NOTE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
755
|
|
|
'NOTE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
756
|
|
|
'NOTE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
757
|
|
|
'OBJE' => new MediaRecord(I18N::translate('Media object')), |
758
|
|
|
'OBJE:BLOB' => new CustomElement(I18N::translate('Binary data object')), |
759
|
|
|
'OBJE:CHAN' => new Change(I18N::translate('Last change')), |
760
|
|
|
'OBJE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
761
|
|
|
'OBJE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
762
|
|
|
'OBJE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
763
|
|
|
'OBJE:FILE' => new MultimediaFileReference(I18N::translate('Filename')), |
764
|
|
|
'OBJE:FILE:FORM' => new MultimediaFormat(I18N::translate('Format')), |
765
|
|
|
'OBJE:FILE:FORM:TYPE' => new SourceMediaType(I18N::translate('Media type')), |
766
|
|
|
'OBJE:FILE:TITL' => new DescriptiveTitle(I18N::translate('Title')), |
767
|
|
|
'OBJE:NOTE' => new NoteStructure(I18N::translate('Note')), |
768
|
|
|
'OBJE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
769
|
|
|
'OBJE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
770
|
|
|
'OBJE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
771
|
|
|
'OBJE:SOUR' => new XrefSource(I18N::translate('Source citation')), |
772
|
|
|
'OBJE:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
773
|
|
|
'OBJE:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
774
|
|
|
'OBJE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
775
|
|
|
'OBJE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
776
|
|
|
'OBJE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
777
|
|
|
'OBJE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
778
|
|
|
'OBJE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
779
|
|
|
'OBJE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
780
|
|
|
'OBJE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
781
|
|
|
'REPO' => new RepositoryRecord(I18N::translate('Repository')), |
782
|
|
|
'REPO:ADDR' => new AddressLine(I18N::translate('Address')), |
783
|
|
|
'REPO:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
784
|
|
|
'REPO:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
785
|
|
|
'REPO:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
786
|
|
|
'REPO:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
787
|
|
|
'REPO:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
788
|
|
|
'REPO:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
789
|
|
|
'REPO:ADDR:STAE' => new AddressState(I18N::translate('State')), |
790
|
|
|
'REPO:CHAN' => new Change(I18N::translate('Last change')), |
791
|
|
|
'REPO:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
792
|
|
|
'REPO:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
793
|
|
|
'REPO:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
794
|
|
|
'REPO:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
795
|
|
|
'REPO:FAX' => new AddressFax(I18N::translate('Fax')), |
796
|
|
|
'REPO:NAME' => new NameOfRepository(I18N::translateContext('Repository', 'Name')), |
797
|
|
|
'REPO:NOTE' => new NoteStructure(I18N::translate('Note')), |
798
|
|
|
'REPO:PHON' => new PhoneNumber(I18N::translate('Phone')), |
799
|
|
|
'REPO:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
800
|
|
|
'REPO:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
801
|
|
|
'REPO:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
802
|
|
|
'REPO:WWW' => new AddressWebPage(I18N::translate('URL')), |
803
|
|
|
'SOUR' => new SourceRecord(I18N::translate('Source')), |
804
|
|
|
'SOUR:ABBR' => new SourceFiledByEntry(I18N::translate('Abbreviation')), |
805
|
|
|
'SOUR:AUTH' => new SourceOriginator(I18N::translate('Author')), |
806
|
|
|
'SOUR:CHAN' => new Change(I18N::translate('Last change')), |
807
|
|
|
'SOUR:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
808
|
|
|
'SOUR:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
809
|
|
|
'SOUR:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
810
|
|
|
'SOUR:DATA' => new EmptyElement(I18N::translate('Data'), ['EVEN' => '0:M', 'AGNC' => '0:1', 'NOTE' => '0:M']), |
811
|
|
|
'SOUR:DATA:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), |
812
|
|
|
'SOUR:DATA:EVEN' => new EventsRecorded(I18N::translate('Events')), |
813
|
|
|
'SOUR:DATA:EVEN:DATE' => new DateValue(I18N::translate('Date range')), |
814
|
|
|
'SOUR:DATA:EVEN:PLAC' => new SourceJurisdictionPlace(I18N::translate('Place'), []), |
815
|
|
|
'SOUR:DATA:NOTE' => new NoteStructure(I18N::translate('Note')), |
816
|
|
|
'SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
817
|
|
|
'SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
818
|
|
|
'SOUR:PUBL' => new SourcePublicationFacts(I18N::translate('Publication')), |
819
|
|
|
'SOUR:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), |
820
|
|
|
'SOUR:REFN:TYPE' => new UserReferenceType(I18N::translate('Type of reference number')), |
821
|
|
|
'SOUR:REPO' => new XrefRepository(I18N::translate('Repository')), |
822
|
|
|
'SOUR:REPO:CALN' => new SourceCallNumber(I18N::translate('Call number')), |
823
|
|
|
'SOUR:REPO:CALN:MEDI' => new SourceMediaType(I18N::translate('Media type')), |
824
|
|
|
'SOUR:REPO:NOTE' => new NoteStructure(I18N::translate('Note')), |
825
|
|
|
'SOUR:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
826
|
|
|
'SOUR:TEXT' => new TextFromSource(I18N::translate('Text')), |
827
|
|
|
'SOUR:TITL' => new DescriptiveTitle(I18N::translate('Title')), |
828
|
|
|
'SUBM' => new SubmitterRecord(I18N::translate('Submitter')), |
829
|
|
|
'SUBM:ADDR' => new AddressLine(I18N::translate('Address')), |
830
|
|
|
'SUBM:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
831
|
|
|
'SUBM:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
832
|
|
|
'SUBM:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
833
|
|
|
'SUBM:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
834
|
|
|
'SUBM:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
835
|
|
|
'SUBM:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
836
|
|
|
'SUBM:ADDR:STAE' => new AddressState(I18N::translate('State')), |
837
|
|
|
'SUBM:CHAN' => new Change(I18N::translate('Last change')), |
838
|
|
|
'SUBM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
839
|
|
|
'SUBM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
840
|
|
|
'SUBM:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
841
|
|
|
'SUBM:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
842
|
|
|
'SUBM:FAX' => new AddressFax(I18N::translate('Fax')), |
843
|
|
|
'SUBM:LANG' => new LanguageId(I18N::translate('Language')), |
844
|
|
|
'SUBM:NAME' => new SubmitterName(I18N::translate('Name')), |
845
|
|
|
'SUBM:NOTE' => new NoteStructure(I18N::translate('Note')), |
846
|
|
|
'SUBM:OBJE' => new XrefMedia(I18N::translate('Media object')), |
847
|
|
|
'SUBM:PHON' => new PhoneNumber(I18N::translate('Phone')), |
848
|
|
|
'SUBM:RFN' => new SubmitterRegisteredRfn(I18N::translate('Record file number')), |
849
|
|
|
'SUBM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
850
|
|
|
'SUBM:WWW' => new AddressWebPage(I18N::translate('URL')), |
851
|
|
|
'SUBN' => new SubmissionRecord(I18N::translate('Submission')), |
852
|
|
|
'SUBN:ANCE' => new GenerationsOfAncestors(I18N::translate('Generations of ancestors')), |
853
|
|
|
'SUBN:CHAN' => new Change(I18N::translate('Last change')), |
854
|
|
|
'SUBN:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
855
|
|
|
'SUBN:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time of last change')), |
856
|
|
|
'SUBN:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
857
|
|
|
'SUBN:DESC' => new GenerationsOfDescendants(I18N::translate('Generations of descendants')), |
858
|
|
|
'SUBN:FAMF' => new NameOfFamilyFile(I18N::translate('Family file')), |
859
|
|
|
'SUBN:NOTE' => new NoteStructure(I18N::translate('Note')), |
860
|
|
|
'SUBN:ORDI' => new OrdinanceProcessFlag(I18N::translate('Ordinance')), |
861
|
|
|
'SUBN:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
862
|
|
|
'SUBN:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), |
863
|
|
|
'SUBN:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), |
864
|
|
|
'TRLR' => new EmptyElement(I18N::translate('Trailer')), |
865
|
|
|
]; |
866
|
|
|
} |
867
|
|
|
|
868
|
|
|
/** |
869
|
|
|
* @return array<string,ElementInterface> |
870
|
|
|
*/ |
871
|
|
|
private function aldfaerTags(): array |
872
|
|
|
{ |
873
|
|
|
return [ |
874
|
|
|
'INDI:BIRT:_LENGTH' => new CustomElement(I18N::translate('Length')), |
875
|
|
|
'INDI:BIRT:_WEIGHT' => new CustomElement(I18N::translate('Weight')), |
876
|
|
|
]; |
877
|
|
|
} |
878
|
|
|
|
879
|
|
|
/** |
880
|
|
|
* @return array<string,ElementInterface> |
881
|
|
|
* |
882
|
|
|
* @see https://www.webtrees.net/index.php/en/forum/help-for-release-2-1-x/36664-2-1-beta-support-for-indi-even-sour-data-note-and-the-like |
883
|
|
|
*/ |
884
|
|
|
private function ancestryTags(): array |
885
|
|
|
{ |
886
|
|
|
return [ |
887
|
|
|
'HEAD:SOUR:_TREE' => new CustomElement(I18N::translate('Family tree')), |
888
|
|
|
'HEAD:SOUR:_TREE:NOTE' => new SubmitterText(I18N::translate('Note')), |
889
|
|
|
'HEAD:SOUR:_TREE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
890
|
|
|
'INDI:*:SOUR:_APID' => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry PID')), |
891
|
|
|
'INDI:*:SOUR:DATA:NOTE' => new SubmitterText(I18N::translate('Note')), |
892
|
|
|
'INDI:_EMPLOY' => new CustomFact(I18N::translate('Occupation')), |
893
|
|
|
'INDI:_FUN' => new CustomEvent(I18N::translate('Funeral')), |
894
|
|
|
'INDI:_INIT' => /* I18N: GEDCOM tag _INIT - an LDS ceremony performed */ new CustomEvent(I18N::translate('Initiatory')), |
895
|
|
|
'INDI:_ORDI' => new CustomEvent(I18N::translate('Ordination')), |
896
|
|
|
'INDI:_ORIG' => new CustomFact(I18N::translate('Origin')), |
897
|
|
|
'INDI:_DEST' => new CustomFact(I18N::translate('Destination')), |
898
|
|
|
'OBJE:DATE' => new DateValue(I18N::translate('Date')), |
899
|
|
|
'OBJE:PLAC' => new PlaceName(I18N::translate('Place')), |
900
|
|
|
'OBJE:_CREA' => /* I18N: GEDCOM tag _CREA */ new CustomElement(I18N::translate('Created at')), |
901
|
|
|
'OBJE:_ORIG' => /* I18N: GEDCOM tag _ORIG */ new CustomElement(I18N::translate('Original text')), |
902
|
|
|
'OBJE:_ORIG:_URL' => new AddressWebPage(I18N::translate('URL')), |
903
|
|
|
]; |
904
|
|
|
} |
905
|
|
|
|
906
|
|
|
/** |
907
|
|
|
* @return array<string,ElementInterface> |
908
|
|
|
* |
909
|
|
|
* @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag |
910
|
|
|
*/ |
911
|
|
|
private function brothersKeeperTags(): array |
912
|
|
|
{ |
913
|
|
|
return [ |
914
|
|
|
'FAM:*:_EVN' => new CustomElement('Event number'), |
915
|
|
|
'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), |
916
|
|
|
'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), |
917
|
|
|
'FAM:_COML' => new CustomFamilyEvent(I18N::translate('Common law marriage')), |
918
|
|
|
'FAM:_MARI' => new CustomFamilyEvent(I18N::translate('Marriage intention')), |
919
|
|
|
'FAM:_MBON' => new CustomFamilyEvent(I18N::translate('Marriage bond')), |
920
|
|
|
'FAM:_NMR' => new CustomFamilyEvent(I18N::translate('Not married'), ['NOTE' => '0:M', 'SOUR' => '0:M']), |
921
|
|
|
'FAM:_PRMN' => new CustomElement(I18N::translate('Permanent number')), |
922
|
|
|
'FAM:_SEPR' => new CustomFamilyEvent(I18N::translate('Separated')), |
923
|
|
|
'FAM:_TODO' => new CustomElement(I18N::translate('Research task')), |
924
|
|
|
'INDI:*:_EVN' => new CustomElement('Event number'), |
925
|
|
|
'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []), |
926
|
|
|
'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []), |
927
|
|
|
'INDI:NAME:_BIRN' => new NamePersonal(I18N::translate('Birth name'), []), |
928
|
|
|
'INDI:NAME:_CALL' => new NamePersonal('Called name', []), |
929
|
|
|
'INDI:NAME:_CENN' => new NamePersonal('Census name', []), |
930
|
|
|
'INDI:NAME:_CURN' => new NamePersonal('Current name', []), |
931
|
|
|
'INDI:NAME:_FARN' => new NamePersonal(I18N::translate('Estate name'), []), |
932
|
|
|
'INDI:NAME:_FKAN' => new NamePersonal('Formal name', []), |
933
|
|
|
'INDI:NAME:_FRKA' => new NamePersonal('Formerly known as', []), |
934
|
|
|
'INDI:NAME:_GERN' => new NamePersonal('German name', []), |
935
|
|
|
'INDI:NAME:_HEBN' => new NamePersonal(I18N::translate('Hebrew name'), []), |
936
|
|
|
'INDI:NAME:_HNM' => new NamePersonal(I18N::translate('Hebrew name'), []), |
937
|
|
|
'INDI:NAME:_INDG' => new NamePersonal('Indigenous name', []), |
938
|
|
|
'INDI:NAME:_INDN' => new NamePersonal('Indian name', []), |
939
|
|
|
'INDI:NAME:_LNCH' => new NamePersonal('Legal name change', []), |
940
|
|
|
'INDI:NAME:_MARN' => new NamePersonal('Married name', []), |
941
|
|
|
'INDI:NAME:_MARNM' => new NamePersonal('Married name', []), |
942
|
|
|
'INDI:NAME:_OTHN' => new NamePersonal('Other name', []), |
943
|
|
|
'INDI:NAME:_RELN' => new NamePersonal('Religious name', []), |
944
|
|
|
'INDI:NAME:_SHON' => new NamePersonal('Short name', []), |
945
|
|
|
'INDI:NAME:_SLDN' => new NamePersonal('Soldier name', []), |
946
|
|
|
'INDI:_ADPF' => new CustomElement(I18N::translate('Adopted by father')), |
947
|
|
|
'INDI:_ADPM' => new CustomElement(I18N::translate('Adopted by mother')), |
948
|
|
|
'INDI:_BRTM' => new CustomIndividualEvent(I18N::translate('Brit milah')), |
949
|
|
|
'INDI:_BRTM:DATE' => new DateValue(I18N::translate('Date of brit milah')), |
950
|
|
|
'INDI:_BRTM:PLAC' => new PlaceName(I18N::translate('Place of brit milah')), |
951
|
|
|
'INDI:_EMAIL' => new AddressEmail(I18N::translate('Email address')), |
952
|
|
|
'INDI:_EYEC' => new CustomFact(I18N::translate('Eye color')), |
953
|
|
|
'INDI:_FRNL' => new CustomElement(I18N::translate('Funeral')), |
954
|
|
|
'INDI:_HAIR' => new CustomFact(I18N::translate('Hair color')), |
955
|
|
|
'INDI:_HEIG' => new CustomFact(I18N::translate('Height')), |
956
|
|
|
'INDI:_INTE' => new CustomElement(I18N::translate('Interment')), |
957
|
|
|
'INDI:_MEDC' => new CustomFact(I18N::translate('Medical')), |
958
|
|
|
'INDI:_MILT' => new CustomElement(I18N::translate('Military service')), |
959
|
|
|
'INDI:_NLIV' => new CustomFact(I18N::translate('Not living')), |
960
|
|
|
'INDI:_NMAR' => new CustomFact(I18N::translate('Never married'), ['NOTE' => '0:M', 'SOUR' => '0:M']), |
961
|
|
|
'INDI:_PRMN' => new CustomElement(I18N::translate('Permanent number')), |
962
|
|
|
'INDI:_TODO' => new CustomElement(I18N::translate('Research task')), |
963
|
|
|
'INDI:_WEIG' => new CustomFact(I18N::translate('Weight')), |
964
|
|
|
'INDI:_YART' => new CustomIndividualEvent(I18N::translate('Yahrzeit')), |
965
|
|
|
// 1 XXXX |
966
|
|
|
// 2 _EVN ## |
967
|
|
|
// 1 ASSO @Xnnn@ |
968
|
|
|
// 2 RELA Witness at event _EVN ## |
969
|
|
|
]; |
970
|
|
|
} |
971
|
|
|
|
972
|
|
|
/** |
973
|
|
|
* @return array<string,ElementInterface> |
974
|
|
|
*/ |
975
|
|
|
private function familySearchTags(): array |
976
|
|
|
{ |
977
|
|
|
return [ |
978
|
|
|
'INDI:_FSFTID' => /* I18N: familysearch.org */ new FamilySearchFamilyTreeId(I18N::translate('FamilySearch ID')), |
979
|
|
|
]; |
980
|
|
|
} |
981
|
|
|
|
982
|
|
|
/** |
983
|
|
|
* @return array<string,ElementInterface> |
984
|
|
|
*/ |
985
|
|
|
private function familyTreeBuilderTags(): array |
986
|
|
|
{ |
987
|
|
|
return [ |
988
|
|
|
'*:_UPD' => /* I18N: GEDCOM tag _UPD */ new CustomElement(I18N::translate('Updated at')), // e.g. "1 _UPD 14 APR 2012 00:14:10 GMT-5" |
989
|
|
|
'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), |
990
|
|
|
'OBJE:_ALBUM' => new CustomElement(I18N::translate('Album')), // XREF to an album |
991
|
|
|
'OBJE:_DATE' => new DateValue(I18N::translate('Date')), |
992
|
|
|
'OBJE:_FILESIZE' => new CustomElement(I18N::translate('File size')), |
993
|
|
|
'OBJE:_PHOTO_RIN' => new CustomElement(I18N::translate('Record ID number')), |
994
|
|
|
'OBJE:_PLACE' => new PlaceName(I18N::translate('Place')), |
995
|
|
|
'_ALBUM:_PHOTO' => new CustomElement(I18N::translate('Photo')), |
996
|
|
|
'_ALBUM:_PHOTO:_PRIN' => new CustomElement(I18N::translate('Highlighted image')), |
997
|
|
|
]; |
998
|
|
|
} |
999
|
|
|
|
1000
|
|
|
/** |
1001
|
|
|
* @return array<string,ElementInterface> |
1002
|
|
|
* |
1003
|
|
|
* @see https://wiki-de.genealogy.net/GEDCOM/_Nutzerdef-Tag |
1004
|
|
|
*/ |
1005
|
|
|
private function familyTreeMakerTags(): array |
1006
|
|
|
{ |
1007
|
|
|
return [ |
1008
|
|
|
'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), |
1009
|
|
|
'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), |
1010
|
|
|
'FAM:_DETS' => new CustomElement(I18N::translate('Death of one spouse')), |
1011
|
|
|
'FAM:_FA1' => new CustomElement(I18N::translate('Fact 1')), |
1012
|
|
|
'FAM:_FA10' => new CustomElement(I18N::translate('Fact 10')), |
1013
|
|
|
'FAM:_FA11' => new CustomElement(I18N::translate('Fact 11')), |
1014
|
|
|
'FAM:_FA12' => new CustomElement(I18N::translate('Fact 12')), |
1015
|
|
|
'FAM:_FA13' => new CustomElement(I18N::translate('Fact 13')), |
1016
|
|
|
'FAM:_FA2' => new CustomElement(I18N::translate('Fact 2')), |
1017
|
|
|
'FAM:_FA3' => new CustomElement(I18N::translate('Fact 3')), |
1018
|
|
|
'FAM:_FA4' => new CustomElement(I18N::translate('Fact 4')), |
1019
|
|
|
'FAM:_FA5' => new CustomElement(I18N::translate('Fact 5')), |
1020
|
|
|
'FAM:_FA6' => new CustomElement(I18N::translate('Fact 6')), |
1021
|
|
|
'FAM:_FA7' => new CustomElement(I18N::translate('Fact 7')), |
1022
|
|
|
'FAM:_FA8' => new CustomElement(I18N::translate('Fact 8')), |
1023
|
|
|
'FAM:_FA9' => new CustomElement(I18N::translate('Fact 9')), |
1024
|
|
|
'FAM:_MEND' => new CustomElement(I18N::translate('Marriage ending status')), |
1025
|
|
|
'FAM:_MSTAT' => new CustomElement(I18N::translate('Marriage beginning status')), |
1026
|
|
|
'FAM:_SEPR' => new CustomElement(I18N::translate('Separation')), |
1027
|
|
|
'HEAD:_SCHEMA' => new CustomElement(I18N::translate('Schema')), |
1028
|
|
|
'HEAD:_SCHEMA:FAM' => new CustomElement(I18N::translate('Family')), |
1029
|
|
|
'HEAD:_SCHEMA:FAM:_FA*:LABL' => new CustomElement(I18N::translate('Label')), |
1030
|
|
|
'HEAD:_SCHEMA:FAM:_FA1' => new CustomElement(I18N::translate('Fact 1')), |
1031
|
|
|
'HEAD:_SCHEMA:FAM:_FA10' => new CustomElement(I18N::translate('Fact 10')), |
1032
|
|
|
'HEAD:_SCHEMA:FAM:_FA11' => new CustomElement(I18N::translate('Fact 11')), |
1033
|
|
|
'HEAD:_SCHEMA:FAM:_FA12' => new CustomElement(I18N::translate('Fact 12')), |
1034
|
|
|
'HEAD:_SCHEMA:FAM:_FA13' => new CustomElement(I18N::translate('Fact 13')), |
1035
|
|
|
'HEAD:_SCHEMA:FAM:_FA2' => new CustomElement(I18N::translate('Fact 2')), |
1036
|
|
|
'HEAD:_SCHEMA:FAM:_FA3' => new CustomElement(I18N::translate('Fact 3')), |
1037
|
|
|
'HEAD:_SCHEMA:FAM:_FA4' => new CustomElement(I18N::translate('Fact 4')), |
1038
|
|
|
'HEAD:_SCHEMA:FAM:_FA5' => new CustomElement(I18N::translate('Fact 5')), |
1039
|
|
|
'HEAD:_SCHEMA:FAM:_FA6' => new CustomElement(I18N::translate('Fact 6')), |
1040
|
|
|
'HEAD:_SCHEMA:FAM:_FA7' => new CustomElement(I18N::translate('Fact 7')), |
1041
|
|
|
'HEAD:_SCHEMA:FAM:_FA8' => new CustomElement(I18N::translate('Fact 8')), |
1042
|
|
|
'HEAD:_SCHEMA:FAM:_FA9' => new CustomElement(I18N::translate('Fact 9')), |
1043
|
|
|
'HEAD:_SCHEMA:FAM:_M*:LABL' => new CustomElement(I18N::translate('Label')), |
1044
|
|
|
'HEAD:_SCHEMA:FAM:_MEND' => new CustomElement(I18N::translate('Marriage ending status')), |
1045
|
|
|
'HEAD:_SCHEMA:FAM:_MSTAT' => new CustomElement(I18N::translate('Marriage beginning status')), |
1046
|
|
|
'HEAD:_SCHEMA:INDI' => new CustomElement(I18N::translate('Individual')), |
1047
|
|
|
'HEAD:_SCHEMA:INDI:_FA*:LABL' => new CustomElement(I18N::translate('Label')), |
1048
|
|
|
'HEAD:_SCHEMA:INDI:_FA1' => new CustomElement(I18N::translate('Fact 1')), |
1049
|
|
|
'HEAD:_SCHEMA:INDI:_FA10' => new CustomElement(I18N::translate('Fact 10')), |
1050
|
|
|
'HEAD:_SCHEMA:INDI:_FA11' => new CustomElement(I18N::translate('Fact 11')), |
1051
|
|
|
'HEAD:_SCHEMA:INDI:_FA12' => new CustomElement(I18N::translate('Fact 12')), |
1052
|
|
|
'HEAD:_SCHEMA:INDI:_FA13' => new CustomElement(I18N::translate('Fact 13')), |
1053
|
|
|
'HEAD:_SCHEMA:INDI:_FA2' => new CustomElement(I18N::translate('Fact 2')), |
1054
|
|
|
'HEAD:_SCHEMA:INDI:_FA3' => new CustomElement(I18N::translate('Fact 3')), |
1055
|
|
|
'HEAD:_SCHEMA:INDI:_FA4' => new CustomElement(I18N::translate('Fact 4')), |
1056
|
|
|
'HEAD:_SCHEMA:INDI:_FA5' => new CustomElement(I18N::translate('Fact 5')), |
1057
|
|
|
'HEAD:_SCHEMA:INDI:_FA6' => new CustomElement(I18N::translate('Fact 6')), |
1058
|
|
|
'HEAD:_SCHEMA:INDI:_FA7' => new CustomElement(I18N::translate('Fact 7')), |
1059
|
|
|
'HEAD:_SCHEMA:INDI:_FA8' => new CustomElement(I18N::translate('Fact 8')), |
1060
|
|
|
'HEAD:_SCHEMA:INDI:_FA9' => new CustomElement(I18N::translate('Fact 9')), |
1061
|
|
|
'HEAD:_SCHEMA:INDI:_FREL' => new CustomElement(I18N::translate('Relationship to father')), |
1062
|
|
|
'HEAD:_SCHEMA:INDI:_M*:LABL' => new CustomElement(I18N::translate('Label')), |
1063
|
|
|
'HEAD:_SCHEMA:INDI:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), |
1064
|
|
|
'INDI:*:SOUR:_APID' => /* I18N: GEDCOM tag _APID */ new CustomElement(I18N::translate('Ancestry.com source identifier')), |
1065
|
|
|
'INDI:*:SOUR:_LINK' => new CustomElement(I18N::translate('External link')), |
1066
|
|
|
'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), |
1067
|
|
|
'INDI:NAME:_MARNM' => new NamePersonal(I18N::translate('Married name'), []), |
1068
|
|
|
'INDI:_CIRC' => new CustomElement(I18N::translate('Circumcision')), |
1069
|
|
|
'INDI:_DCAUSE' => new CustomElement(I18N::translate('Cause of death')), |
1070
|
|
|
'INDI:_DEG' => new CustomElement(I18N::translate('Degree')), |
1071
|
|
|
'INDI:_DNA' => new CustomElement(I18N::translate('DNA markers')), |
1072
|
|
|
'INDI:_ELEC' => new CustomElement('Elected'), |
1073
|
|
|
'INDI:_EMPLOY' => new CustomElement('Employment'), |
1074
|
|
|
'INDI:_EXCM' => new CustomElement('Excommunicated'), |
1075
|
|
|
'INDI:_FA1' => new CustomElement(I18N::translate('Fact 1')), |
1076
|
|
|
'INDI:_FA10' => new CustomElement(I18N::translate('Fact 10')), |
1077
|
|
|
'INDI:_FA11' => new CustomElement(I18N::translate('Fact 11')), |
1078
|
|
|
'INDI:_FA12' => new CustomElement(I18N::translate('Fact 12')), |
1079
|
|
|
'INDI:_FA13' => new CustomElement(I18N::translate('Fact 13')), |
1080
|
|
|
'INDI:_FA2' => new CustomElement(I18N::translate('Fact 2')), |
1081
|
|
|
'INDI:_FA3' => new CustomElement(I18N::translate('Fact 3')), |
1082
|
|
|
'INDI:_FA4' => new CustomElement(I18N::translate('Fact 4')), |
1083
|
|
|
'INDI:_FA5' => new CustomElement(I18N::translate('Fact 5')), |
1084
|
|
|
'INDI:_FA6' => new CustomElement(I18N::translate('Fact 6')), |
1085
|
|
|
'INDI:_FA7' => new CustomElement(I18N::translate('Fact 7')), |
1086
|
|
|
'INDI:_FA8' => new CustomElement(I18N::translate('Fact 8')), |
1087
|
|
|
'INDI:_FA9' => new CustomElement(I18N::translate('Fact 9')), |
1088
|
|
|
'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')), |
1089
|
|
|
'INDI:_MILT' => new CustomElement(I18N::translate('Military service')), |
1090
|
|
|
'INDI:_MILTID' => new CustomElement('Military ID number'), |
1091
|
|
|
'INDI:_MISN' => new CustomElement('Mission'), |
1092
|
|
|
'INDI:_NAMS' => new CustomElement(I18N::translate('Namesake')), |
1093
|
|
|
'INDI:_UNKN' => new CustomElement(I18N::translate('Unknown')), // Special individual ID code for later file comparisons |
1094
|
|
|
]; |
1095
|
|
|
} |
1096
|
|
|
|
1097
|
|
|
/** |
1098
|
|
|
* @return array<string,ElementInterface> |
1099
|
|
|
*/ |
1100
|
|
|
private function gedcomLTags(): array |
1101
|
|
|
{ |
1102
|
|
|
return [ |
1103
|
|
|
'FAM:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1104
|
|
|
// I18N: https://gov.genealogy.net |
1105
|
|
|
'FAM:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), |
1106
|
|
|
'FAM:*:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), |
1107
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1108
|
|
|
'FAM:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1109
|
|
|
'FAM:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1110
|
|
|
'FAM:*:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), |
1111
|
|
|
'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1112
|
|
|
'FAM:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), |
1113
|
|
|
'FAM:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1114
|
|
|
'FAM:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), |
1115
|
|
|
'FAM:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1116
|
|
|
'FAM:*:_ASSO:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1117
|
|
|
'FAM:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1118
|
|
|
'FAM:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1119
|
|
|
'FAM:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1120
|
|
|
'FAM:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1121
|
|
|
'FAM:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1122
|
|
|
'FAM:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1123
|
|
|
'FAM:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1124
|
|
|
'FAM:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), |
1125
|
|
|
'FAM:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1126
|
|
|
'FAM:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1127
|
|
|
'FAM:_STAT' => new FamilyStatusText(I18N::translate('Family status')), |
1128
|
|
|
'FAM:_TODO' => new ResearchTask(I18N::translate('Research task'), ['DESC' => '1:1', '_CAT' => '0:1', '_PRTY' => '0:1', 'TYPE' => '0:1', 'NOTE' => '0:M', 'DATA' => '0:1', 'STAT' => '0:1', '_CDATE' => '0:1', '_RDATE' => '0:1', 'REPO' => '0:1', '_UID' => '0:M']), |
1129
|
|
|
'FAM:_TODO:DATA' => new SubmitterText(I18N::translate('The solution')), |
1130
|
|
|
'FAM:_TODO:DATE' => new DateValue(I18N::translate('Creation date')), |
1131
|
|
|
'FAM:_TODO:DESC' => new CustomElement(I18N::translate('Description')), |
1132
|
|
|
'FAM:_TODO:NOTE' => new SubmitterText(I18N::translate('Note')), |
1133
|
|
|
'FAM:_TODO:REPO' => new XrefRepository(I18N::translate('Repository'), []), |
1134
|
|
|
'FAM:_TODO:STAT' => new ResearchTaskStatus(I18N::translate('Status')), |
1135
|
|
|
'FAM:_TODO:TYPE' => new ResearchTaskType(I18N::translate('Type of research task')), |
1136
|
|
|
'FAM:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), |
1137
|
|
|
'FAM:_TODO:_CDATE' => new DateValue(I18N::translate('Completion date')), |
1138
|
|
|
'FAM:_TODO:_PRTY' => new ResearchTaskPriority(I18N::translate('Priority')), |
1139
|
|
|
'FAM:_TODO:_RDATE' => new DateValue(I18N::translate('Reminder date')), |
1140
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1141
|
|
|
'HEAD:GEDC:VERS:_ADDENDUM' => new EmptyElement(I18N::translate('GEDCOM-L')), |
1142
|
|
|
'HEAD:GEDC:VERS:_ADDENDUM:VERS' => new VersionNumber(I18N::translate('Version')), |
1143
|
|
|
'HEAD:GEDC:VERS:_ADDENDUM:WWW' => new AddressWebPage(I18N::translate('URL')), |
1144
|
|
|
'HEAD:SOUR:CORP:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1145
|
|
|
'HEAD:_SCHEMA' => new EmptyElement(I18N::translate('Schema')), |
1146
|
|
|
'HEAD:_SCHEMA:*' => new EmptyElement(I18N::translate('Base GEDCOM tag')), |
1147
|
|
|
'HEAD:_SCHEMA:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), |
1148
|
|
|
'HEAD:_SCHEMA:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), |
1149
|
|
|
'HEAD:_SCHEMA:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), |
1150
|
|
|
'HEAD:_SCHEMA:*:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), |
1151
|
|
|
'HEAD:_SCHEMA:*:*:*:*:*:*' => new EmptyElement(I18N::translate('New GEDCOM tag')), |
1152
|
|
|
'HEAD:_SCHEMA:*:*:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), |
1153
|
|
|
'HEAD:_SCHEMA:*:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), |
1154
|
|
|
'HEAD:_SCHEMA:*:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), |
1155
|
|
|
'HEAD:_SCHEMA:*:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), |
1156
|
|
|
'HEAD:_SCHEMA:*:*:_DEFN' => new EmptyElement(I18N::translate('Definition')), |
1157
|
|
|
'INDI:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1158
|
|
|
// I18N: https://gov.genealogy.net |
1159
|
|
|
'INDI:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), |
1160
|
|
|
'INDI:*:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), |
1161
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1162
|
|
|
'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1163
|
|
|
'INDI:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1164
|
|
|
'INDI:*:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), |
1165
|
|
|
'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1166
|
|
|
'INDI:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), |
1167
|
|
|
'INDI:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1168
|
|
|
'INDI:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), |
1169
|
|
|
'INDI:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1170
|
|
|
'INDI:*:_ASSO:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1171
|
|
|
'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1172
|
|
|
'INDI:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1173
|
|
|
'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1174
|
|
|
'INDI:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1175
|
|
|
'INDI:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1176
|
|
|
'INDI:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1177
|
|
|
'INDI:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1178
|
|
|
'INDI:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), |
1179
|
|
|
'INDI:BAPM:_GODP' => new CustomElement(I18N::translate('Godparents')), |
1180
|
|
|
'INDI:CHR:_GODP' => new CustomElement(I18N::translate('Godparents')), |
1181
|
|
|
'INDI:NAME:_RUFNAME' => new NamePieceGiven(I18N::translate('Rufname')), |
1182
|
|
|
'INDI:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1183
|
|
|
'INDI:SEX' => new SexXValue(I18N::translate('Gender')), |
1184
|
|
|
'INDI:_TODO' => new ResearchTask(I18N::translate('Research task')), |
1185
|
|
|
'INDI:_TODO:DATA' => new SubmitterText(I18N::translate('The solution')), |
1186
|
|
|
'INDI:_TODO:DATE' => new DateValue(I18N::translate('Creation date')), |
1187
|
|
|
'INDI:_TODO:DESC' => new CustomElement(I18N::translate('Description')), |
1188
|
|
|
'INDI:_TODO:NOTE' => new SubmitterText(I18N::translate('Note')), |
1189
|
|
|
'INDI:_TODO:REPO' => new XrefRepository(I18N::translate('Repository'), []), |
1190
|
|
|
'INDI:_TODO:STAT' => new ResearchTaskStatus(I18N::translate('Status')), |
1191
|
|
|
'INDI:_TODO:TYPE' => new ResearchTaskType(I18N::translate('Type of research task')), |
1192
|
|
|
'INDI:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), |
1193
|
|
|
'INDI:_TODO:_CDATE' => new DateValue(I18N::translate('Completion date')), |
1194
|
|
|
'INDI:_TODO:_PRTY' => new ResearchTaskPriority(I18N::translate('Priority')), |
1195
|
|
|
'INDI:_TODO:_RDATE' => new DateValue(I18N::translate('Reminder date')), |
1196
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1197
|
|
|
'NOTE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1198
|
|
|
'OBJE:FILE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1199
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1200
|
|
|
'REPO:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1201
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1202
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1203
|
|
|
'SOUR:DATA:EVEN:PLAC:_LOC' => new XrefLocation(I18N::translate('Location')), |
1204
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1205
|
|
|
'SOUR:DATA:EVEN:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1206
|
|
|
'SOUR:DATA:EVEN:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1207
|
|
|
'SOUR:DATA:EVEN:PLAC:_POST:DATE' => new DateValue(I18N::translate('Date')), |
1208
|
|
|
'SUBM:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1209
|
|
|
'SUBM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1210
|
|
|
'SUBN:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1211
|
|
|
'_LOC' => new LocationRecord(I18N::translate('Location')), |
1212
|
|
|
'_LOC:CHAN' => new Change(I18N::translate('Last change')), |
1213
|
|
|
'_LOC:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), |
1214
|
|
|
'_LOC:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), |
1215
|
|
|
'_LOC:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), |
1216
|
|
|
'_LOC:EVEN' => new CustomEvent(I18N::translate('Event')), |
1217
|
|
|
'_LOC:EVEN:DATE' => new DateValue(I18N::translate('Date of event')), |
1218
|
|
|
'_LOC:EVEN:PLAC' => new PlaceName(I18N::translate('Place of event')), |
1219
|
|
|
'_LOC:EVEN:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), |
1220
|
|
|
'_LOC:EVEN:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), |
1221
|
|
|
'_LOC:EVEN:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), |
1222
|
|
|
'_LOC:EVEN:PLAC:MAP' => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']), |
1223
|
|
|
'_LOC:EVEN:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), |
1224
|
|
|
'_LOC:EVEN:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), |
1225
|
|
|
'_LOC:EVEN:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), |
1226
|
|
|
'_LOC:EVEN:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), |
1227
|
|
|
'_LOC:EVEN:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), |
1228
|
|
|
'_LOC:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), |
1229
|
|
|
'_LOC:EVEN:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), |
1230
|
|
|
'_LOC:EVEN:ADDR' => new AddressLine(I18N::translate('Address')), |
1231
|
|
|
'_LOC:EVEN:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
1232
|
|
|
'_LOC:EVEN:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
1233
|
|
|
'_LOC:EVEN:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), |
1234
|
|
|
'_LOC:EVEN:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
1235
|
|
|
'_LOC:EVEN:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
1236
|
|
|
'_LOC:EVEN:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1237
|
|
|
'_LOC:EVEN:ADDR:STAE' => new AddressState(I18N::translate('State')), |
1238
|
|
|
'_LOC:EVEN:CAUS' => new CauseOfEvent(I18N::translate('Cause')), |
1239
|
|
|
'_LOC:EVEN:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), |
1240
|
|
|
'_LOC:EVEN:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1241
|
|
|
'_LOC:EVEN:SOUR' => new XrefSource(I18N::translate('Source citation')), |
1242
|
|
|
'_LOC:EVEN:NOTE' => new NoteStructure(I18N::translate('Note')), |
1243
|
|
|
'_LOC:EVEN:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1244
|
|
|
'_LOC:MAP' => new EmptyElement(I18N::translate('Coordinates'), ['LATI' => '1:1', 'LONG' => '1:1']), |
1245
|
|
|
'_LOC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), |
1246
|
|
|
'_LOC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), |
1247
|
|
|
'_LOC:NAME' => new PlaceName(I18N::translate('Place'), ['ABBR' => '0:1', 'DATE' => '0:1', 'LANG' => '0:1', 'SOUR' => '0:M']), |
1248
|
|
|
'_LOC:NAME:ABBR' => new CustomElement(I18N::translate('Abbreviation')), |
1249
|
|
|
'_LOC:NAME:ABBR:TYPE' => new CustomElement(I18N::translate('Type of abbreviation')), |
1250
|
|
|
'_LOC:NAME:DATE' => new DateValue(I18N::translate('Date')), |
1251
|
|
|
'_LOC:NAME:LANG' => new LanguageId(I18N::translate('Language')), |
1252
|
|
|
'_LOC:NAME:SOUR' => new XrefSource(I18N::translate('Source')), |
1253
|
|
|
'_LOC:NOTE' => new NoteStructure(I18N::translate('Note')), |
1254
|
|
|
'_LOC:OBJE' => new XrefMedia(I18N::translate('Media')), |
1255
|
|
|
'_LOC:RELI' => new ReligiousAffiliation(I18N::translate('Religion'), []), |
1256
|
|
|
'_LOC:SOUR' => new XrefSource(I18N::translate('Source')), |
1257
|
|
|
'_LOC:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1258
|
|
|
'_LOC:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1259
|
|
|
'_LOC:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1260
|
|
|
'_LOC:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1261
|
|
|
'_LOC:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1262
|
|
|
'_LOC:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1263
|
|
|
'_LOC:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1264
|
|
|
'_LOC:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1265
|
|
|
'_LOC:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1266
|
|
|
'_LOC:TYPE' => new CustomElement(I18N::translate('Type of location'), ['DATE' => '0:1', '_GOVTYPE' => '0:1', 'SOUR' => '0:M']), |
1267
|
|
|
'_LOC:TYPE:DATE' => new DateValue(I18N::translate('Date')), |
1268
|
|
|
'_LOC:TYPE:SOUR' => new XrefSource(I18N::translate('Source')), |
1269
|
|
|
'_LOC:TYPE:_GOVTYPE' => new CustomElement(I18N::translate('GOV identifier type')), |
1270
|
|
|
'_LOC:_AIDN' => new CustomElement(I18N::translate('Administrative ID')), |
1271
|
|
|
'_LOC:_AIDN:DATE' => new DateValue(I18N::translate('Date')), |
1272
|
|
|
'_LOC:_AIDN:SOUR' => new XrefSource(I18N::translate('Source')), |
1273
|
|
|
'_LOC:_AIDN:TYPE' => new CustomElement(I18N::translate('Type of administrative ID')), |
1274
|
|
|
'_LOC:_DMGD' => new CustomElement(I18N::translate('Demographic data')), |
1275
|
|
|
'_LOC:_DMGD:DATE' => new DateValue(I18N::translate('Date')), |
1276
|
|
|
'_LOC:_DMGD:SOUR' => new XrefSource(I18N::translate('Source')), |
1277
|
|
|
'_LOC:_DMGD:TYPE' => new CustomElement(I18N::translate('Type of demographic data')), |
1278
|
|
|
// I18N: https://gov.genealogy.net |
1279
|
|
|
'_LOC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), |
1280
|
|
|
'_LOC:_LOC' => new XrefLocation(I18N::translate('Parent location'), ['DATE' => '0:1', 'SOUR' => '0:M', 'TYPE' => '0:1']), |
1281
|
|
|
'_LOC:_LOC:DATE' => new DateValue(I18N::translate('Date')), |
1282
|
|
|
'_LOC:_LOC:SOUR' => new XrefSource(I18N::translate('Source')), |
1283
|
|
|
'_LOC:_LOC:TYPE' => new HierarchicalRelationship(I18N::translate('Hierarchical relationship')), |
1284
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1285
|
|
|
'_LOC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1286
|
|
|
'_LOC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1287
|
|
|
'_LOC:_POST:DATE' => new DateValue(I18N::translate('Date')), |
1288
|
|
|
'_LOC:_POST:SOUR' => new XrefSource(I18N::translate('Source')), |
1289
|
|
|
'_LOC:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1290
|
|
|
'_LOC:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1291
|
|
|
'_LOC:*:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1292
|
|
|
'_LOC:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1293
|
|
|
'_LOC:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1294
|
|
|
'_LOC:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1295
|
|
|
'_LOC:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1296
|
|
|
'_LOC:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1297
|
|
|
'_LOC:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1298
|
|
|
'_LOC:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1299
|
|
|
]; |
1300
|
|
|
} |
1301
|
|
|
|
1302
|
|
|
/** |
1303
|
|
|
* @return array<string,ElementInterface> |
1304
|
|
|
*/ |
1305
|
|
|
private function geneatique(): array |
1306
|
|
|
{ |
1307
|
|
|
return [ |
1308
|
|
|
/* |
1309
|
|
|
Pour déclarer les témoins dans les actes de naissance |
1310
|
|
|
|
1311
|
|
|
Balise GEDCOM non valide. INDI:BIRT:ASSO |
1312
|
|
|
INDI:BIRT:ASSO:TYPE |
1313
|
|
|
INDI:BIRT:ASSO:RELA |
1314
|
|
|
INDI:DEAT:PLAC:QUAY |
1315
|
|
|
INDI:BIRT:OBJE:QUAY |
1316
|
|
|
INDI:BIRT:SOUR:TEXT |
1317
|
|
|
|
1318
|
|
|
Dans les mariages |
1319
|
|
|
|
1320
|
|
|
FAM:MARR:ASSO |
1321
|
|
|
FAM:MARR:ASSO:TYPE |
1322
|
|
|
FAM:MARR:ASSO:RELA |
1323
|
|
|
FAM:MARR:WWW:QUAY |
1324
|
|
|
OBJE:WWW |
1325
|
|
|
OBJE:SOUR:TEXTHTTPS |
1326
|
|
|
OBJE:NOTE:WWW |
1327
|
|
|
SOUR:QUAY |
1328
|
|
|
SOUR:TYPE |
1329
|
|
|
*/ |
1330
|
|
|
]; |
1331
|
|
|
} |
1332
|
|
|
|
1333
|
|
|
/** |
1334
|
|
|
* @return array<string,ElementInterface> |
1335
|
|
|
*/ |
1336
|
|
|
private function genPlusWinTags(): array |
1337
|
|
|
{ |
1338
|
|
|
return [ |
1339
|
|
|
'FAM:*:ADDR:_NUM' => new CustomElement(I18N::translate('House number')), |
1340
|
|
|
'FAM:*:ADDR:_STRASSE' => new CustomElement(I18N::translate('Street name')), |
1341
|
|
|
'FAM:*:DATE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1342
|
|
|
'FAM:*:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1343
|
|
|
'FAM:*:PLAC:_AON' => new CustomElement(I18N::translate('Alternative place name')), |
1344
|
|
|
// I18N: https://foko.genealogy.net |
1345
|
|
|
'FAM:*:PLAC:_FCTRY' => new CustomElement(I18N::translate('FOKO country')), |
1346
|
|
|
// I18N: https://foko.genealogy.net |
1347
|
|
|
'FAM:*:PLAC:_FSTAE' => new CustomElement(I18N::translate('FOKO country')), |
1348
|
|
|
// I18N: https://gov.genealogy.net |
1349
|
|
|
'FAM:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), |
1350
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1351
|
|
|
'FAM:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1352
|
|
|
'FAM:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1353
|
|
|
'FAM:*:PLAC:_SIC' => new CustomElement(I18N::translate('Reliability of the information')), |
1354
|
|
|
'FAM:*:PLAC:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1355
|
|
|
'FAM:*:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), |
1356
|
|
|
'FAM:*:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1357
|
|
|
'FAM:*:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1358
|
|
|
'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1359
|
|
|
'FAM:*:_CERT' => new CustomElement(I18N::translate('Certificate number')), |
1360
|
|
|
'FAM:*:_COM' => new CustomElement(I18N::translate('Comment')), |
1361
|
|
|
'FAM:*:_SITE' => new CustomElement(I18N::translate('Extra information')), |
1362
|
|
|
'FAM:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), |
1363
|
|
|
'FAM:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1364
|
|
|
'FAM:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), |
1365
|
|
|
'FAM:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1366
|
|
|
'FAM:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1367
|
|
|
'FAM:_CREAT' => new DateValue(I18N::translate('Creation date')), |
1368
|
|
|
'FAM:_LIV' => new CustomElement(I18N::translate('Cohabitation')), |
1369
|
|
|
'FAM:_NAME' => new CustomElement(I18N::translate('Joint family name')), |
1370
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1371
|
|
|
'INDI:*:ADDR:_NUM' => new CustomElement(I18N::translate('House number')), |
1372
|
|
|
'INDI:*:ADDR:_STRASSE' => new CustomElement(I18N::translate('Street name')), |
1373
|
|
|
'INDI:*:DATE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1374
|
|
|
'INDI:*:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1375
|
|
|
'INDI:*:PLAC:_AON' => new CustomElement(I18N::translate('Alternative place name')), |
1376
|
|
|
// I18N: https://foko.genealogy.net |
1377
|
|
|
'INDI:*:PLAC:_FCTRY' => new CustomElement(I18N::translate('FOKO country')), |
1378
|
|
|
// I18N: https://foko.genealogy.net |
1379
|
|
|
'INDI:*:PLAC:_FSTAE' => new CustomElement(I18N::translate('FOKO country')), |
1380
|
|
|
// I18N: https://gov.genealogy.net |
1381
|
|
|
'INDI:*:PLAC:_GOV' => new GovIdentifier(I18N::translate('GOV identifier')), |
1382
|
|
|
// I18N: https://en.wikipedia.org/wiki/Maidenhead_Locator_System |
1383
|
|
|
'INDI:*:PLAC:_MAIDENHEAD' => new MaidenheadLocator(I18N::translate('Maidenhead location code')), |
1384
|
|
|
'INDI:*:PLAC:_POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1385
|
|
|
'INDI:*:PLAC:_SIC' => new CustomElement(I18N::translate('Reliability of the information')), |
1386
|
|
|
'INDI:*:PLAC:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1387
|
|
|
'INDI:*:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), |
1388
|
|
|
'INDI:*:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1389
|
|
|
'INDI:*:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1390
|
|
|
'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1391
|
|
|
'INDI:*:_CERT' => new CustomElement(I18N::translate('Certificate number')), |
1392
|
|
|
'INDI:*:_COM' => new CustomElement(I18N::translate('Comment')), |
1393
|
|
|
'INDI:*:_SITE' => new CustomElement(I18N::translate('Extra information')), |
1394
|
|
|
'INDI:*:_WITN' => new CustomElement(I18N::translate('Witnesses')), |
1395
|
|
|
'INDI:BAPM:_GODP' => new CustomElement(I18N::translate('Godparents')), |
1396
|
|
|
'INDI:CHR:_GODP' => new CustomElement(I18N::translate('Godparents')), |
1397
|
|
|
'INDI:OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1398
|
|
|
'INDI:SOUR:_ORI' => new TextFromSource(I18N::translate('Original text')), |
1399
|
|
|
'INDI:SOUR:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1400
|
|
|
'INDI:SOUR:PAGE:_ZUS' => new CustomElement(I18N::translate('Additional information')), |
1401
|
|
|
'INDI:NAME:_AKA' => new CustomElement(I18N::translate('Also known as')), |
1402
|
|
|
// https://en.wikipedia.org/wiki/Rufname |
1403
|
|
|
'INDI:NAME:RUFN' => new CustomElement(I18N::translate('Rufname')), |
1404
|
|
|
'INDI:_CREAT' => new CustomElement(I18N::translate('Creation date')), |
1405
|
|
|
'INDI:_HEIM' => new CustomElement(/* I18N: German Bürgerort */ I18N::translate('Place of citizenship')), |
1406
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1407
|
|
|
'NOTE:_CREAT' => new DateValue(I18N::translate('Creation date')), |
1408
|
|
|
'NOTE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1409
|
|
|
'OBJE:_CREAT' => new DateValue(I18N::translate('Creation date')), |
1410
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1411
|
|
|
'REPO:_CREAT' => new DateValue(I18N::translate('Creation date')), |
1412
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1413
|
|
|
'SOUR:_CREAT' => new DateValue(I18N::translate('Creation date')), |
1414
|
|
|
'SOUR:_KTIT' => new SourceFiledByEntry(I18N::translate('Abbreviation')), |
1415
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1416
|
|
|
]; |
1417
|
|
|
} |
1418
|
|
|
|
1419
|
|
|
/** |
1420
|
|
|
* @return array<string,ElementInterface> |
1421
|
|
|
*/ |
1422
|
|
|
private function heredis(): array |
1423
|
|
|
{ |
1424
|
|
|
return [ |
1425
|
|
|
'INDI:SIGN' => new CustomElement(I18N::translate('Signature')), |
1426
|
|
|
/* Reported on the forum - but what do they mean? |
1427
|
|
|
'INDI:_FIL' => new CustomElement(I18N::translate('???')), |
1428
|
|
|
'INDI:*:_FNA' => new CustomElement(I18N::translate('???')), |
1429
|
|
|
'INDI:????:????:_SUBMAP' => new EmptyElement(I18N::translate('Coordinates'), ['INDI' => '1:1', 'LONG' => '1:1']), |
1430
|
|
|
'INDI:????:????:_SUBMAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), |
1431
|
|
|
'INDI:????:????:_SUBMAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), |
1432
|
|
|
*/ |
1433
|
|
|
]; |
1434
|
|
|
} |
1435
|
|
|
|
1436
|
|
|
/** |
1437
|
|
|
* @see http://support.legacyfamilytree.com/article/AA-00520/0/GEDCOM-Files-custom-tags-in-Legacy.html |
1438
|
|
|
* |
1439
|
|
|
* @return array<string,ElementInterface> |
1440
|
|
|
*/ |
1441
|
|
|
private function legacyTags(): array |
1442
|
|
|
{ |
1443
|
|
|
return [ |
1444
|
|
|
'FAM:*:ADDR:_PRIV' => new CustomElement(I18N::translate('Private')), |
1445
|
|
|
'FAM:*:PLAC:_VERI' => new CustomElement(I18N::translate('Verified')), |
1446
|
|
|
'FAM:*:SOUR:DATE' => new DateValue(I18N::translate('Date')), |
1447
|
|
|
'FAM:*:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), |
1448
|
|
|
'FAM:*:_PRIV' => new CustomElement(I18N::translate('Private')), |
1449
|
|
|
'FAM:CHIL:_FREL' => new CustomElement(I18N::translate('Relationship to father')), |
1450
|
|
|
'FAM:CHIL:_MREL' => new CustomElement(I18N::translate('Relationship to mother')), |
1451
|
|
|
'FAM:CHIL:_STAT' => new CustomElement(I18N::translate('Status')), |
1452
|
|
|
'FAM:EVEN:_OVER' => new CustomElement('Event sentence override'), |
1453
|
|
|
'FAM:MARR:_HTITL' => new CustomElement(I18N::translate('Label for husband')), |
1454
|
|
|
'FAM:MARR:_STAT' => new CustomElement(I18N::translate('Status')), |
1455
|
|
|
'FAM:MARR:_WTITL' => new CustomElement(I18N::translate('Label for wife')), |
1456
|
|
|
'FAM:_NONE' => new CustomElement(I18N::translate('No children')), |
1457
|
|
|
'FAM:_TAG' => new CustomElement('Tag'), |
1458
|
|
|
'FAM:_TAG2' => new CustomElement('Tag #2'), |
1459
|
|
|
'FAM:_TAG3' => new CustomElement('Tag #3'), |
1460
|
|
|
'FAM:_TAG4' => new CustomElement('Tag #4'), |
1461
|
|
|
'FAM:_TAG5' => new CustomElement('Tag #5'), |
1462
|
|
|
'FAM:_TAG6' => new CustomElement('Tag #6'), |
1463
|
|
|
'FAM:_TAG7' => new CustomElement('Tag #7'), |
1464
|
|
|
'FAM:_TAG8' => new CustomElement('Tag #8'), |
1465
|
|
|
'FAM:_TAG9' => new CustomElement('Tag #9'), |
1466
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1467
|
|
|
'HEAD:_EVENT_DEFN' => new CustomElement('Event definition'), |
1468
|
|
|
'HEAD:_EVENT_DEFN:_CONF_FLAG' => new CustomElement(I18N::translate('Private')), |
1469
|
|
|
'HEAD:_EVENT_DEFN:_DATE_TYPE' => new CustomElement(I18N::translate('Date')), |
1470
|
|
|
'HEAD:_EVENT_DEFN:_DESC_FLAG' => new CustomElement(I18N::translate('Description')), |
1471
|
|
|
'HEAD:_EVENT_DEFN:_PLACE_TYPE' => new CustomElement(I18N::translate('Place')), |
1472
|
|
|
'HEAD:_EVENT_DEFN:_PP_EXCLUDE' => new CustomElement('Exclude event from potential problems report'), |
1473
|
|
|
'HEAD:_EVENT_DEFN:_SEN1' => new CustomElement('Event sentence definition'), |
1474
|
|
|
'HEAD:_EVENT_DEFN:_SEN2' => new CustomElement('Event sentence definition'), |
1475
|
|
|
'HEAD:_EVENT_DEFN:_SEN3' => new CustomElement('Event sentence definition'), |
1476
|
|
|
'HEAD:_EVENT_DEFN:_SEN4' => new CustomElement('Event sentence definition'), |
1477
|
|
|
'HEAD:_EVENT_DEFN:_SEN5' => new CustomElement('Event sentence definition'), |
1478
|
|
|
'HEAD:_EVENT_DEFN:_SEN6' => new CustomElement('Event sentence definition'), |
1479
|
|
|
'HEAD:_EVENT_DEFN:_SEN7' => new CustomElement('Event sentence definition'), |
1480
|
|
|
'HEAD:_EVENT_DEFN:_SEN8' => new CustomElement('Event sentence definition'), |
1481
|
|
|
'HEAD:_EVENT_DEFN:_SENDOF' => new CustomElement('Event sentence, female, date only'), |
1482
|
|
|
'HEAD:_EVENT_DEFN:_SENDOM' => new CustomElement('Event sentence, male, date only'), |
1483
|
|
|
'HEAD:_EVENT_DEFN:_SENDOU' => new CustomElement('Event sentence, unknown sex, date only'), |
1484
|
|
|
'HEAD:_EVENT_DEFN:_SENDPF' => new CustomElement('Event sentence, female, date and place'), |
1485
|
|
|
'HEAD:_EVENT_DEFN:_SENDPM' => new CustomElement('Event sentence, male, date and place'), |
1486
|
|
|
'HEAD:_EVENT_DEFN:_SENDPU' => new CustomElement('Event sentence, unknown sex, date and place'), |
1487
|
|
|
'HEAD:_EVENT_DEFN:_SENF' => new CustomElement('Event sentence, female'), |
1488
|
|
|
'HEAD:_EVENT_DEFN:_SENM' => new CustomElement('Event sentence, male'), |
1489
|
|
|
'HEAD:_EVENT_DEFN:_SENPOF' => new CustomElement('Event sentence, unknown sex'), |
1490
|
|
|
'HEAD:_EVENT_DEFN:_SENPOM' => new CustomElement('Event sentence, female, place only'), |
1491
|
|
|
'HEAD:_EVENT_DEFN:_SENPOU' => new CustomElement('Event sentence, male, place only'), |
1492
|
|
|
'HEAD:_EVENT_DEFN:_SENU' => new CustomElement('Event sentence, unknown sex, place only'), |
1493
|
|
|
'HEAD:_PLAC_DEFN' => new CustomElement('Place definition'), |
1494
|
|
|
'HEAD:_PLAC_DEFN:_PREP' => new CustomElement('Place preposition'), |
1495
|
|
|
'INDI:*:ADDR:_EMAIL' => new CustomElement(I18N::translate('Email')), |
1496
|
|
|
'INDI:*:ADDR:_LIST1' => new CustomElement('Include in the “newsletter” group'), |
1497
|
|
|
'INDI:*:ADDR:_LIST2' => new CustomElement('Include in the “family association” group'), |
1498
|
|
|
'INDI:*:ADDR:_LIST3' => new CustomElement('Include in the “birthday” group'), |
1499
|
|
|
'INDI:*:ADDR:_LIST4' => new CustomElement('Include in the “research” group'), |
1500
|
|
|
'INDI:*:ADDR:_LIST5' => new CustomElement('Include in the “christmas” group'), |
1501
|
|
|
'INDI:*:ADDR:_LIST6' => new CustomElement('Include in the “holiday” group'), |
1502
|
|
|
'INDI:*:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1503
|
|
|
'INDI:*:ADDR:_PRIV' => new CustomElement(I18N::translate('Private')), |
1504
|
|
|
'INDI:*:ADDR:_SORT' => new CustomElement('The spelling of a name to be used when sorting addresses for a report'), |
1505
|
|
|
'INDI:*:ADDR:_TAG' => new CustomElement('Tag'), |
1506
|
|
|
'INDI:*:PLAC:_TAG' => new CustomElement('Tag'), |
1507
|
|
|
'INDI:*:PLAC:_VERI' => new CustomElement(I18N::translate('Verified')), |
1508
|
|
|
'INDI:*:SOUR:DATE' => new DateValue(I18N::translate('Date')), |
1509
|
|
|
'INDI:*:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), |
1510
|
|
|
'INDI:*:_PRIV' => new CustomElement(I18N::translate('Private')), |
1511
|
|
|
'INDI:EVEN:_OVER' => new CustomElement('Event sentence override'), |
1512
|
|
|
'INDI:SOUR:_VERI' => new CustomElement(I18N::translate('Verified')), |
1513
|
|
|
'INDI:_TAG' => new CustomElement('Tag'), |
1514
|
|
|
'INDI:_TAG2' => new CustomElement('Tag #2'), |
1515
|
|
|
'INDI:_TAG3' => new CustomElement('Tag #3'), |
1516
|
|
|
'INDI:_TAG4' => new CustomElement('Tag #4'), |
1517
|
|
|
'INDI:_TAG5' => new CustomElement('Tag #5'), |
1518
|
|
|
'INDI:_TAG6' => new CustomElement('Tag #6'), |
1519
|
|
|
'INDI:_TAG7' => new CustomElement('Tag #7'), |
1520
|
|
|
'INDI:_TAG8' => new CustomElement('Tag #8'), |
1521
|
|
|
'INDI:_TAG9' => new CustomElement('Tag #9'), |
1522
|
|
|
'INDI:_TODO' => new CustomElement(I18N::translate('Research task')), |
1523
|
|
|
'INDI:_TODO:PRTY' => new CustomElement(I18N::translate('Priority')), |
1524
|
|
|
'INDI:_TODO:_CAT' => new CustomElement(I18N::translate('Category')), |
1525
|
|
|
'INDI:_TODO:_CDATE' => new CustomElement(I18N::translate('Completion date')), |
1526
|
|
|
'INDI:_TODO:_LOCL' => new CustomElement(I18N::translate('Location')), |
1527
|
|
|
'INDI:_TODO:_RDATE' => new CustomElement(I18N::translate('Reminder date')), |
1528
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1529
|
|
|
'INDI:_URL' => new AddressWebPage(I18N::translate('URL')), |
1530
|
|
|
'OBJE:_DATE' => new CustomElement(I18N::translate('Date')), |
1531
|
|
|
'OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1532
|
|
|
'OBJE:_SCBK' => new CustomElement(I18N::translate('Scrapbook')), |
1533
|
|
|
'OBJE:_SOUND' => new CustomElement(I18N::translate('Audio')), |
1534
|
|
|
'OBJE:_TYPE' => new CustomElement(I18N::translate('Type')), |
1535
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1536
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1537
|
|
|
'SOUR:_ITALIC' => new CustomElement('The source title should be printed in italic on reports'), |
1538
|
|
|
'SOUR:_PAREN' => new CustomElement('The source title should be printed within parentheses on reports'), |
1539
|
|
|
'SOUR:_QUOTED' => new CustomElement('The source title should be printed within quotes on reports'), |
1540
|
|
|
'SOUR:_TAG' => new CustomElement('Exclude the source citation detail on reports'), |
1541
|
|
|
'SOUR:_TAG2' => new CustomElement('Exclude the source citation on reports'), |
1542
|
|
|
'SOUR:_TAG3' => new CustomElement('Include the source citation detail text on reports'), |
1543
|
|
|
'SOUR:_TAG4' => new CustomElement('Include the source citation detail notes on reports'), |
1544
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1545
|
|
|
]; |
1546
|
|
|
} |
1547
|
|
|
|
1548
|
|
|
/** |
1549
|
|
|
* @return array<string,ElementInterface> |
1550
|
|
|
*/ |
1551
|
|
|
private function myHeritageTags(): array |
1552
|
|
|
{ |
1553
|
|
|
return [ |
1554
|
|
|
'FAM:*:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1555
|
|
|
'FAM:*:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
1556
|
|
|
'HEAD:DATE:_TIMEZONE' => new CustomElement(I18N::translate('Time zone')), |
1557
|
|
|
'HEAD:SOUR:_RTLSAVE' => new CustomElement(I18N::translate('Text direction')), // ? |
1558
|
|
|
'HEAD:_RINS' => new CustomElement(I18N::translate('Record ID number')), // ? |
1559
|
|
|
'HEAD:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1560
|
|
|
'HEAD:_PROJECT_GUID' => new PafUid(I18N::translate('Unique identifier')), |
1561
|
|
|
'HEAD:_EXPORTED_FROM_SITE_ID' => new CustomElement(I18N::translate('Site identification code')), |
1562
|
|
|
'HEAD:_DESCRIPTION_AWARE' => new CustomElement(I18N::translate('Description')), // ? |
1563
|
|
|
'INDI:*:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1564
|
|
|
'INDI:*:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), |
1565
|
|
|
'*:_UPD' => new CustomElement(I18N::translate('Updated at')), |
1566
|
|
|
]; |
1567
|
|
|
} |
1568
|
|
|
|
1569
|
|
|
/** |
1570
|
|
|
* @return array<string,ElementInterface> |
1571
|
|
|
*/ |
1572
|
|
|
private function personalAncestralFileTags(): array |
1573
|
|
|
{ |
1574
|
|
|
return [ |
1575
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1576
|
|
|
'INDI:NAME:_ADPN' => new NamePersonal(I18N::translate('Adopted name'), []), |
1577
|
|
|
'INDI:NAME:_AKA' => new NamePersonal(I18N::translate('Also known as'), []), |
1578
|
|
|
'INDI:NAME:_AKAN' => new NamePersonal(I18N::translate('Also known as'), []), |
1579
|
|
|
'INDI:ADDR' => new AddressLine(I18N::translate('Address')), |
1580
|
|
|
'INDI:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), |
1581
|
|
|
'INDI:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), |
1582
|
|
|
'INDI:ADDR:CITY' => new AddressCity(I18N::translate('City')), |
1583
|
|
|
'INDI:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), |
1584
|
|
|
'INDI:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), |
1585
|
|
|
'INDI:ADDR:STAE' => new AddressState(I18N::translate('State')), |
1586
|
|
|
'INDI:ADDR:_NAME' => new CustomElement(I18N::translate('Name of addressee')), |
1587
|
|
|
'INDI:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
1588
|
|
|
'INDI:FAX' => new AddressFax(I18N::translate('Fax')), |
1589
|
|
|
'INDI:PHON' => new PhoneNumber(I18N::translate('Phone')), |
1590
|
|
|
'INDI:URL' => new CustomElement(I18N::translate('URL')), |
1591
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1592
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1593
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1594
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1595
|
|
|
]; |
1596
|
|
|
} |
1597
|
|
|
|
1598
|
|
|
/** |
1599
|
|
|
* @return array<string,ElementInterface> |
1600
|
|
|
*/ |
1601
|
|
|
private function phpGedViewTags(): array |
1602
|
|
|
{ |
1603
|
|
|
return [ |
1604
|
|
|
'FAM:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1605
|
|
|
'FAM:COMM' => new CustomElement(I18N::translate('Comment')), |
1606
|
|
|
'FAM:FACT' => new CustomFact(I18N::translate('Fact')), |
1607
|
|
|
'INDI:*:ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1608
|
|
|
'INDI:*:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1609
|
|
|
'INDI:*:PLAC:_HEB' => new NoteStructure(I18N::translate('Place in Hebrew')), |
1610
|
|
|
'INDI:ADDR' => new AddressLine(I18N::translate('Address')), |
1611
|
|
|
'INDI:BIRT:DATE:TIME' => new TimeValue(I18N::translate('Time of birth')), |
1612
|
|
|
'INDI:BURI:CEME' => new CustomElement(I18N::translate('Cemetery')), |
1613
|
|
|
'INDI:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1614
|
|
|
'INDI:COMM' => new CustomElement(I18N::translate('Comment')), |
1615
|
|
|
'INDI:DEAT:DATE:TIME' => new TimeValue(I18N::translate('Time of death')), |
1616
|
|
|
'INDI:EMAIL' => new AddressEmail(I18N::translate('Email address')), |
1617
|
|
|
'INDI:NAME:_HEB' => new NamePersonal(I18N::translate('Name in Hebrew'), []), |
1618
|
|
|
'INDI:_FNRL' => new CustomIndividualEvent(I18N::translate('Funeral')), |
1619
|
|
|
'INDI:_HOL' => new CustomIndividualEvent(I18N::translate('Holocaust')), |
1620
|
|
|
'INDI:_MILI' => new CustomIndividualEvent(I18N::translate('Military')), |
1621
|
|
|
'INDI:_PGV_OBJS' => new XrefMedia(I18N::translate('Re-order media')), |
1622
|
|
|
'NOTE:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1623
|
|
|
'OBJE:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1624
|
|
|
'OBJE:_PRIM' => new CustomElement(I18N::translate('Highlighted image')), |
1625
|
|
|
'OBJE:_THUM' => new CustomElement(I18N::translate('Thumbnail image')), |
1626
|
|
|
'REPO:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1627
|
|
|
'SOUR:CHAN:_PGVU' => new WebtreesUser(I18N::translate('Author of last change')), |
1628
|
|
|
'SOUR:SERV' => new CustomElement(I18N::translate('Remote server')), |
1629
|
|
|
'SOUR:URL' => new AddressWebPage(I18N::translate('URL')), |
1630
|
|
|
'SOUR:URL:TYPE' => new CustomElement(I18N::translate('Type')), // e.g. "FamilySearch" |
1631
|
|
|
'SOUR:URL:_BLOCK' => new CustomElement(I18N::translate('Block')), // "e.g. "false" |
1632
|
|
|
'SOUR:_DBID' => new CustomElement(I18N::translate('Database name')), |
1633
|
|
|
'SOUR:_DBID:_PASS' => new CustomElement(I18N::translate('Database password')), |
1634
|
|
|
'SOUR:_DBID:_PASS:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1635
|
|
|
'SOUR:_DBID:_USER' => new CustomElement(I18N::translate('Database user account')), |
1636
|
|
|
]; |
1637
|
|
|
} |
1638
|
|
|
|
1639
|
|
|
/** |
1640
|
|
|
* @return array<string,ElementInterface> |
1641
|
|
|
*/ |
1642
|
|
|
private function reunionTags(): array |
1643
|
|
|
{ |
1644
|
|
|
return [ |
1645
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1646
|
|
|
'INDI:CITN' => new CustomElement(I18N::translate('Citizenship')), |
1647
|
|
|
'INDI:EMAL' => new AddressEmail(I18N::translate('Email address')), |
1648
|
|
|
'INDI:_LEGA' => new CustomElement(I18N::translate('Legatee')), |
1649
|
|
|
'INDI:_MDCL' => new CustomElement(I18N::translate('Medical')), |
1650
|
|
|
'INDI:_PURC' => /* I18N: GEDCOM tag _PURC */ new CustomElement(I18N::translate('Land purchase')), |
1651
|
|
|
'INDI:_SALE' => /* I18N: GEDCOM tag _SALE */ new CustomElement(I18N::translate('Land sale')), |
1652
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1653
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1654
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1655
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1656
|
|
|
]; |
1657
|
|
|
} |
1658
|
|
|
|
1659
|
|
|
/** |
1660
|
|
|
* @return array<string,ElementInterface> |
1661
|
|
|
*/ |
1662
|
|
|
private function rootsMagicTags(): array |
1663
|
|
|
{ |
1664
|
|
|
return [ |
1665
|
|
|
'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1666
|
|
|
'INDI:_DNA' => new CustomElement(I18N::translate('DNA markers')), |
1667
|
|
|
'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1668
|
|
|
'INDI:_WEBTAG' => new CustomElement(I18N::translate('External link')), |
1669
|
|
|
'INDI:_WEBTAG:NAME' => new CustomElement(I18N::translate('Text')), |
1670
|
|
|
'INDI:_WEBTAG:URL' => new AddressWebPage(I18N::translate('URL')), |
1671
|
|
|
'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1672
|
|
|
'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1673
|
|
|
'SOUR:_BIBL' => new CustomElement(I18N::translate('Bibliography')), |
1674
|
|
|
'SOUR:_SUBQ' => new CustomElement(I18N::translate('Abbreviation')), |
1675
|
|
|
'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), |
1676
|
|
|
]; |
1677
|
|
|
} |
1678
|
|
|
|
1679
|
|
|
/** |
1680
|
|
|
* @return array<string,ElementInterface> |
1681
|
|
|
*/ |
1682
|
|
|
private function theMasterGenealogistTags(): array |
1683
|
|
|
{ |
1684
|
|
|
return [ |
1685
|
|
|
'INDI:*:_SDATE' => new DateValue(I18N::translate('Sort date')), |
1686
|
|
|
'INDI:NAME:_DATE' => new DateValue(I18N::translate('Date')), |
1687
|
|
|
]; |
1688
|
|
|
} |
1689
|
|
|
|
1690
|
|
|
/** |
1691
|
|
|
* Custom tags for webtrees. |
1692
|
|
|
* |
1693
|
|
|
* @return array<string,ElementInterface> |
1694
|
|
|
*/ |
1695
|
|
|
private function webtreesTags(): array |
1696
|
|
|
{ |
1697
|
|
|
return [ |
1698
|
|
|
'FAM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1699
|
|
|
'FAM:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1700
|
|
|
'FAM:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), |
1701
|
|
|
'FAM:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1702
|
|
|
'FAM:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), |
1703
|
|
|
'FAM:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1704
|
|
|
'FAM:*:_ASSO:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1705
|
|
|
'FAM:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1706
|
|
|
'FAM:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1707
|
|
|
'FAM:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1708
|
|
|
'FAM:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1709
|
|
|
'FAM:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1710
|
|
|
'FAM:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1711
|
|
|
'FAM:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1712
|
|
|
'INDI:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1713
|
|
|
'INDI:*:_ASSO' => new XrefAssociate(I18N::translate('Associate')), |
1714
|
|
|
'INDI:*:_ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), |
1715
|
|
|
'INDI:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), |
1716
|
|
|
'INDI:*:_ASSO:SOUR' => new XrefSource(I18N::translate('Source citation')), |
1717
|
|
|
'INDI:*:_ASSO:SOUR:DATA' => new SourceData(I18N::translate('Data')), |
1718
|
|
|
'INDI:*:_ASSO:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), |
1719
|
|
|
'INDI:*:_ASSO:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), |
1720
|
|
|
'INDI:*:_ASSO:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), |
1721
|
|
|
'INDI:*:_ASSO:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), |
1722
|
|
|
'INDI:*:_ASSO:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), |
1723
|
|
|
'INDI:*:_ASSO:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), |
1724
|
|
|
'INDI:*:_ASSO:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), |
1725
|
|
|
'INDI:*:_ASSO:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), |
1726
|
|
|
'NOTE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1727
|
|
|
'NOTE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1728
|
|
|
'OBJE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1729
|
|
|
'OBJE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1730
|
|
|
'REPO:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1731
|
|
|
'REPO:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1732
|
|
|
'SOUR:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1733
|
|
|
'SOUR:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1734
|
|
|
'SUBM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1735
|
|
|
'SUBM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1736
|
|
|
'_LOC:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), |
1737
|
|
|
'_LOC:RESN' => new RestrictionNotice(I18N::translate('Restriction')), |
1738
|
|
|
]; |
1739
|
|
|
} |
1740
|
|
|
|
1741
|
|
|
/** |
1742
|
|
|
* @return array<string,array<int,array<int,string>>> |
1743
|
|
|
*/ |
1744
|
|
|
private function webtreesSubTags(): array |
1745
|
|
|
{ |
1746
|
|
|
return [ |
1747
|
|
|
'FAM' => [['_UID', '0:M']], |
1748
|
|
|
'FAM:*:SOUR' => [['NOTE', '0:0']], |
1749
|
|
|
'FAM:*:SOUR:DATA' => [['TEXT', '0:1']], |
1750
|
|
|
'FAM:ANUL' => [['_ASSO', '0:M', 'NOTE']], |
1751
|
|
|
'FAM:CENS' => [['_ASSO', '0:M', 'NOTE']], |
1752
|
|
|
'FAM:CHAN' => [['_WT_USER', '0:1']], |
1753
|
|
|
'FAM:DIV' => [['_ASSO', '0:M', 'NOTE']], |
1754
|
|
|
'FAM:DIVF' => [['_ASSO', '0:M', 'NOTE']], |
1755
|
|
|
'FAM:ENGA' => [['_ASSO', '0:M', 'NOTE']], |
1756
|
|
|
'FAM:EVEN' => [['_ASSO', '0:M', 'NOTE']], |
1757
|
|
|
'FAM:MARB' => [['_ASSO', '0:M', 'NOTE']], |
1758
|
|
|
'FAM:MARC' => [['_ASSO', '0:M', 'NOTE']], |
1759
|
|
|
'FAM:MARL' => [['_ASSO', '0:M', 'NOTE']], |
1760
|
|
|
'FAM:MARR' => [['_ASSO', '2:M', 'NOTE']], |
1761
|
|
|
'FAM:MARS' => [['_ASSO', '0:M', 'NOTE']], |
1762
|
|
|
'FAM:SLGS' => [['_ASSO', '0:M', 'NOTE']], |
1763
|
|
|
'FAM:SOUR:DATA' => [['TEXT', '0:1']], |
1764
|
|
|
'INDI' => [['_UID', '0:M']], |
1765
|
|
|
'INDI:*:SOUR:DATA' => [['TEXT', '0:1']], |
1766
|
|
|
'INDI:ADOP' => [['_ASSO', '0:M', 'NOTE']], |
1767
|
|
|
'INDI:BAPL' => [['_ASSO', '0:M', 'NOTE']], |
1768
|
|
|
'INDI:BAPM' => [['_ASSO', '2:M', 'NOTE']], |
1769
|
|
|
'INDI:BARM' => [['_ASSO', '0:M', 'NOTE']], |
1770
|
|
|
'INDI:BASM' => [['_ASSO', '0:M', 'NOTE']], |
1771
|
|
|
'INDI:BIRT' => [['_ASSO', '0:M', 'NOTE'], ['FAMC', '0:0']], |
1772
|
|
|
'INDI:BURI' => [['_ASSO', '0:M', 'NOTE']], |
1773
|
|
|
'INDI:CENS' => [['_ASSO', '0:M', 'NOTE']], |
1774
|
|
|
'INDI:CHAN' => [['_WT_USER', '0:1']], |
1775
|
|
|
'INDI:CHR' => [['_ASSO', '2:M', 'NOTE']], |
1776
|
|
|
'INDI:CHRA' => [['_ASSO', '0:M', 'NOTE']], |
1777
|
|
|
'INDI:CONF' => [['_ASSO', '0:M', 'NOTE']], |
1778
|
|
|
'INDI:CONL' => [['_ASSO', '0:M', 'NOTE']], |
1779
|
|
|
'INDI:CREM' => [['_ASSO', '0:M', 'NOTE']], |
1780
|
|
|
'INDI:DEAT' => [['_ASSO', '0:M', 'NOTE']], |
1781
|
|
|
'INDI:EDUC' => [['_ASSO', '0:M', 'NOTE']], |
1782
|
|
|
'INDI:EMIG' => [['_ASSO', '0:M', 'NOTE']], |
1783
|
|
|
'INDI:ENDL' => [['_ASSO', '0:M', 'NOTE']], |
1784
|
|
|
'INDI:EVEN' => [['_ASSO', '0:M', 'NOTE']], |
1785
|
|
|
'INDI:GRAD' => [['_ASSO', '0:M', 'NOTE']], |
1786
|
|
|
'INDI:IMMI' => [['_ASSO', '0:M', 'NOTE']], |
1787
|
|
|
'INDI:NAME:FONE' => [['NPFX', '0:0'], ['GIVN', '0:0'], ['SPFX', '0:0'], ['SURN', '0:0'], ['NSFX', '0:0'], ['NICK', '0:0']], |
1788
|
|
|
'INDI:NAME:ROMN' => [['NPFX', '0:0'], ['GIVN', '0:0'], ['SPFX', '0:0'], ['SURN', '0:0'], ['NSFX', '0:0'], ['NICK', '0:0']], |
1789
|
|
|
'INDI:NATU' => [['_ASSO', '0:M', 'NOTE']], |
1790
|
|
|
'INDI:OCCU' => [['_ASSO', '0:M', 'NOTE']], |
1791
|
|
|
'INDI:ORDN' => [['_ASSO', '0:M', 'NOTE']], |
1792
|
|
|
'INDI:PROB' => [['_ASSO', '0:M', 'NOTE']], |
1793
|
|
|
'INDI:PROP' => [['_ASSO', '0:M', 'NOTE']], |
1794
|
|
|
'INDI:RESI' => [['_ASSO', '0:M', 'NOTE']], |
1795
|
|
|
'INDI:RETI' => [['_ASSO', '0:M', 'NOTE']], |
1796
|
|
|
'INDI:SLGC' => [['_ASSO', '0:M', 'NOTE']], |
1797
|
|
|
'INDI:SOUR:DATA' => [['TEXT', '0:1']], |
1798
|
|
|
'INDI:TITL' => [['_ASSO', '0:M', 'NOTE']], |
1799
|
|
|
'INDI:WILL' => [['_ASSO', '0:M', 'NOTE']], |
1800
|
|
|
'NOTE' => [['RESN', '0:1', 'CHAN']], |
1801
|
|
|
'NOTE:CHAN' => [['_WT_USER', '0:1']], |
1802
|
|
|
'NOTE:SOUR' => [['NOTE', '0:0']], |
1803
|
|
|
'NOTE:SOUR:DATA' => [['TEXT', '0:1']], |
1804
|
|
|
'OBJE' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], |
1805
|
|
|
'OBJE:CHAN' => [['_WT_USER', '0:1']], |
1806
|
|
|
'OBJE:SOUR' => [['NOTE', '0:0']], |
1807
|
|
|
'OBJE:SOUR:DATA' => [['TEXT', '0:1']], |
1808
|
|
|
'REPO' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], |
1809
|
|
|
'REPO:CHAN' => [['_WT_USER', '0:1']], |
1810
|
|
|
'SOUR' => [['RESN', '0:1', 'CHAN'], ['_UID', '0:M']], |
1811
|
|
|
'SOUR:CHAN' => [['_WT_USER', '0:1']], |
1812
|
|
|
'SUBM' => [['RESN', '0:1', 'CHAN']], |
1813
|
|
|
'SUBM:CHAN' => [['_WT_USER', '0:1']], |
1814
|
|
|
]; |
1815
|
|
|
} |
1816
|
|
|
|
1817
|
|
|
/** |
1818
|
|
|
* @return array<string,array<int,array<int,string>>> |
1819
|
|
|
*/ |
1820
|
|
|
private function customSubTags(): array |
1821
|
|
|
{ |
1822
|
|
|
$custom_family_tags = array_filter(explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS'))); |
1823
|
|
|
$custom_individual_tags = array_filter(explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS'))); |
1824
|
|
|
|
1825
|
|
|
$subtags = [ |
1826
|
|
|
'FAM' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_family_tags), |
1827
|
|
|
'INDI' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_individual_tags), |
1828
|
|
|
]; |
1829
|
|
|
|
1830
|
|
|
if (Site::getPreference('CUSTOM_TIME_TAGS') === '1') { |
1831
|
|
|
$subtags['INDI:BIRT:DATE'][] = ['TIME', '0:1']; |
1832
|
|
|
$subtags['INDI:DEAT:DATE'][] = ['TIME', '0:1']; |
1833
|
|
|
} |
1834
|
|
|
|
1835
|
|
|
if (Site::getPreference('CUSTOM_GEDCOM_L_TAGS') === '1') { |
1836
|
|
|
$subtags['FAM'][] = ['_ASSO', '0:M']; |
1837
|
|
|
$subtags['FAM'][] = ['_STAT', '0:1']; |
1838
|
|
|
$subtags['FAM'][] = ['_UID', '0:M']; |
1839
|
|
|
$subtags['FAM:*:ADDR'] = [['_NAME', '0:1:?', 'ADR1']]; |
1840
|
|
|
$subtags['FAM:*:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1841
|
|
|
$subtags['FAM:ENGA:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1842
|
|
|
$subtags['FAM:MARB:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1843
|
|
|
$subtags['FAM:MARR'] = [['_WITN', '0:1']]; |
1844
|
|
|
$subtags['FAM:MARR:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1845
|
|
|
$subtags['FAM:SLGS:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1846
|
|
|
$subtags['INDI'][] = ['_UID', '0:M']; |
1847
|
|
|
$subtags['INDI:*:ADDR'] = [['_NAME', '0:1:?', 'ADR1']]; |
1848
|
|
|
$subtags['INDI:*:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1849
|
|
|
$subtags['INDI:ADOP:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1850
|
|
|
$subtags['INDI:BAPL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1851
|
|
|
$subtags['INDI:BAPM'] = [['_GODP', '0:1'], ['_WITN', '0:1']]; |
1852
|
|
|
$subtags['INDI:BAPM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1853
|
|
|
$subtags['INDI:BARM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1854
|
|
|
$subtags['INDI:BASM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1855
|
|
|
$subtags['INDI:BIRT:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1856
|
|
|
$subtags['INDI:BLES:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1857
|
|
|
$subtags['INDI:BURI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1858
|
|
|
$subtags['INDI:CENS:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1859
|
|
|
$subtags['INDI:CHR'] = [['_GODP', '0:1'], ['_WITN', '0:1']]; |
1860
|
|
|
$subtags['INDI:CHR:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1861
|
|
|
$subtags['INDI:CHRA:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1862
|
|
|
$subtags['INDI:CONF:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1863
|
|
|
$subtags['INDI:CONL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1864
|
|
|
$subtags['INDI:CREM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1865
|
|
|
$subtags['INDI:DEAT:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1866
|
|
|
$subtags['INDI:EMIG:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1867
|
|
|
$subtags['INDI:ENDL:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1868
|
|
|
$subtags['INDI:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1869
|
|
|
$subtags['INDI:FCOM:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1870
|
|
|
$subtags['INDI:IMMI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1871
|
|
|
$subtags['INDI:NAME'] = [['_RUFN', '0:1']]; |
1872
|
|
|
$subtags['INDI:NATU:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1873
|
|
|
$subtags['INDI:ORDN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1874
|
|
|
$subtags['INDI:RESI:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1875
|
|
|
$subtags['INDI:SLGC:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1876
|
|
|
$subtags['NOTE'] = [['_UID', '0:M']]; |
1877
|
|
|
$subtags['OBJE'] = [['_PRIM', '0:1:?'], ['_UID', '0:M']]; |
1878
|
|
|
$subtags['REPO'] = [['_UID', '0:M']]; |
1879
|
|
|
$subtags['REPO:ADDR'] = [['_NAME', '0:1', 'ADR1']]; |
1880
|
|
|
$subtags['SOUR'] = [['_UID', '0:M']]; |
1881
|
|
|
$subtags['SOUR:DATA:EVEN:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1']]; |
1882
|
|
|
$subtags['SUBM'] = [['_UID', '0:M']]; |
1883
|
|
|
$subtags['SUBM:ADDR'] = [['_NAME', '0:1', 'ADR1']]; |
1884
|
|
|
} |
1885
|
|
|
|
1886
|
|
|
return $subtags; |
1887
|
|
|
} |
1888
|
|
|
|
1889
|
|
|
public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void |
1890
|
|
|
{ |
1891
|
|
|
// Standard GEDCOM. |
1892
|
|
|
$element_factory->registerTags($this->gedcom551Tags()); |
1893
|
|
|
|
1894
|
|
|
// webtrees extensions. |
1895
|
|
|
$element_factory->registerTags($this->webtreesTags()); |
1896
|
|
|
|
1897
|
|
|
if ($include_custom_tags) { |
1898
|
|
|
// webtrees extensions. |
1899
|
|
|
$element_factory->registerSubTags($this->webtreesSubTags()); |
1900
|
|
|
|
1901
|
|
|
// Third-party extensions. |
1902
|
|
|
$element_factory->registerTags($this->aldfaerTags()); |
1903
|
|
|
$element_factory->registerTags($this->ancestryTags()); |
1904
|
|
|
$element_factory->registerTags($this->brothersKeeperTags()); |
1905
|
|
|
$element_factory->registerTags($this->familySearchTags()); |
1906
|
|
|
$element_factory->registerTags($this->familyTreeBuilderTags()); |
1907
|
|
|
$element_factory->registerTags($this->familyTreeMakerTags()); |
1908
|
|
|
$element_factory->registerTags($this->gedcomLTags()); |
1909
|
|
|
$element_factory->registerTags($this->geneatique()); |
1910
|
|
|
$element_factory->registerTags($this->genPlusWinTags()); |
1911
|
|
|
$element_factory->registerTags($this->heredis()); |
1912
|
|
|
$element_factory->registerTags($this->legacyTags()); |
1913
|
|
|
$element_factory->registerTags($this->myHeritageTags()); |
1914
|
|
|
$element_factory->registerTags($this->personalAncestralFileTags()); |
1915
|
|
|
$element_factory->registerTags($this->phpGedViewTags()); |
1916
|
|
|
$element_factory->registerTags($this->reunionTags()); |
1917
|
|
|
$element_factory->registerTags($this->rootsMagicTags()); |
1918
|
|
|
$element_factory->registerTags($this->theMasterGenealogistTags()); |
1919
|
|
|
|
1920
|
|
|
// Creating tags from all the above are grouped into one place |
1921
|
|
|
$element_factory->registerSubTags($this->customSubTags()); |
1922
|
|
|
} |
1923
|
|
|
} |
1924
|
|
|
} |
1925
|
|
|
|