1<?php 2 3/** 4 * webtrees: online genealogy 5 * Copyright (C) 2021 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 18declare(strict_types=1); 19 20namespace Fisharebest\Webtrees\Factories; 21 22use Fisharebest\Webtrees\Contracts\ElementFactoryInterface; 23use Fisharebest\Webtrees\Contracts\ElementInterface; 24use Fisharebest\Webtrees\Elements\AddressCity; 25use Fisharebest\Webtrees\Elements\AddressCountry; 26use Fisharebest\Webtrees\Elements\AddressEmail; 27use Fisharebest\Webtrees\Elements\AddressFax; 28use Fisharebest\Webtrees\Elements\AddressLine; 29use Fisharebest\Webtrees\Elements\AddressLine1; 30use Fisharebest\Webtrees\Elements\AddressLine2; 31use Fisharebest\Webtrees\Elements\AddressLine3; 32use Fisharebest\Webtrees\Elements\AddressPostalCode; 33use Fisharebest\Webtrees\Elements\AddressState; 34use Fisharebest\Webtrees\Elements\AddressWebPage; 35use Fisharebest\Webtrees\Elements\AdoptedByWhichParent; 36use Fisharebest\Webtrees\Elements\Adoption; 37use Fisharebest\Webtrees\Elements\AdultChristening; 38use Fisharebest\Webtrees\Elements\AgeAtEvent; 39use Fisharebest\Webtrees\Elements\AncestralFileNumber; 40use Fisharebest\Webtrees\Elements\Annulment; 41use Fisharebest\Webtrees\Elements\ApprovedSystemId; 42use Fisharebest\Webtrees\Elements\AttributeDescriptor; 43use Fisharebest\Webtrees\Elements\AutomatedRecordId; 44use Fisharebest\Webtrees\Elements\Baptism; 45use Fisharebest\Webtrees\Elements\BasMitzvah; 46use Fisharebest\Webtrees\Elements\Birth; 47use Fisharebest\Webtrees\Elements\Blessing; 48use Fisharebest\Webtrees\Elements\Burial; 49use Fisharebest\Webtrees\Elements\CasteName; 50use Fisharebest\Webtrees\Elements\CauseOfEvent; 51use Fisharebest\Webtrees\Elements\Census; 52use Fisharebest\Webtrees\Elements\CertaintyAssessment; 53use Fisharebest\Webtrees\Elements\Change; 54use Fisharebest\Webtrees\Elements\ChangeDate; 55use Fisharebest\Webtrees\Elements\CharacterSet; 56use Fisharebest\Webtrees\Elements\ChildLinkageStatus; 57use Fisharebest\Webtrees\Elements\Christening; 58use Fisharebest\Webtrees\Elements\Confirmation; 59use Fisharebest\Webtrees\Elements\ContentDescription; 60use Fisharebest\Webtrees\Elements\CopyrightFile; 61use Fisharebest\Webtrees\Elements\CopyrightSourceData; 62use Fisharebest\Webtrees\Elements\CountOfChildren; 63use Fisharebest\Webtrees\Elements\CountOfMarriages; 64use Fisharebest\Webtrees\Elements\Cremation; 65use Fisharebest\Webtrees\Elements\DateLdsOrd; 66use Fisharebest\Webtrees\Elements\DateValue; 67use Fisharebest\Webtrees\Elements\Death; 68use Fisharebest\Webtrees\Elements\DescriptiveTitle; 69use Fisharebest\Webtrees\Elements\Divorce; 70use Fisharebest\Webtrees\Elements\DivorceFiled; 71use Fisharebest\Webtrees\Elements\Emigration; 72use Fisharebest\Webtrees\Elements\EmptyElement; 73use Fisharebest\Webtrees\Elements\Engagement; 74use Fisharebest\Webtrees\Elements\EntryRecordingDate; 75use Fisharebest\Webtrees\Elements\EventAttributeType; 76use Fisharebest\Webtrees\Elements\EventDescriptor; 77use Fisharebest\Webtrees\Elements\EventOrFactClassification; 78use Fisharebest\Webtrees\Elements\EventsRecorded; 79use Fisharebest\Webtrees\Elements\EventTypeCitedFrom; 80use Fisharebest\Webtrees\Elements\FileName; 81use Fisharebest\Webtrees\Elements\FirstCommunion; 82use Fisharebest\Webtrees\Elements\Form; 83use Fisharebest\Webtrees\Elements\Gedcom; 84use Fisharebest\Webtrees\Elements\GenerationsOfAncestors; 85use Fisharebest\Webtrees\Elements\GenerationsOfDescendants; 86use Fisharebest\Webtrees\Elements\Graduation; 87use Fisharebest\Webtrees\Elements\Immigration; 88use Fisharebest\Webtrees\Elements\LanguageId; 89use Fisharebest\Webtrees\Elements\LdsBaptism; 90use Fisharebest\Webtrees\Elements\LdsBaptismDateStatus; 91use Fisharebest\Webtrees\Elements\LdsChildSealing; 92use Fisharebest\Webtrees\Elements\LdsChildSealingDateStatus; 93use Fisharebest\Webtrees\Elements\LdsConfirmation; 94use Fisharebest\Webtrees\Elements\LdsEndowment; 95use Fisharebest\Webtrees\Elements\LdsEndowmentDateStatus; 96use Fisharebest\Webtrees\Elements\LdsSpouseSealing; 97use Fisharebest\Webtrees\Elements\LdsSpouseSealingDateStatus; 98use Fisharebest\Webtrees\Elements\Marriage; 99use Fisharebest\Webtrees\Elements\MarriageBanns; 100use Fisharebest\Webtrees\Elements\MarriageContract; 101use Fisharebest\Webtrees\Elements\MarriageLicence; 102use Fisharebest\Webtrees\Elements\MarriageSettlement; 103use Fisharebest\Webtrees\Elements\MarriageType; 104use Fisharebest\Webtrees\Elements\MediaRecord; 105use Fisharebest\Webtrees\Elements\MultimediaFileReference; 106use Fisharebest\Webtrees\Elements\MultimediaFormat; 107use Fisharebest\Webtrees\Elements\NameOfBusiness; 108use Fisharebest\Webtrees\Elements\NameOfFamilyFile; 109use Fisharebest\Webtrees\Elements\NameOfProduct; 110use Fisharebest\Webtrees\Elements\NameOfRepository; 111use Fisharebest\Webtrees\Elements\NameOfSourceData; 112use Fisharebest\Webtrees\Elements\NamePersonal; 113use Fisharebest\Webtrees\Elements\NamePhoneticVariation; 114use Fisharebest\Webtrees\Elements\NamePieceGiven; 115use Fisharebest\Webtrees\Elements\NamePieceNickname; 116use Fisharebest\Webtrees\Elements\NamePiecePrefix; 117use Fisharebest\Webtrees\Elements\NamePieceSuffix; 118use Fisharebest\Webtrees\Elements\NamePieceSurname; 119use Fisharebest\Webtrees\Elements\NamePieceSurnamePrefix; 120use Fisharebest\Webtrees\Elements\NameRomanizedVariation; 121use Fisharebest\Webtrees\Elements\NameType; 122use Fisharebest\Webtrees\Elements\NationalIdNumber; 123use Fisharebest\Webtrees\Elements\NationOrTribalOrigin; 124use Fisharebest\Webtrees\Elements\Naturalization; 125use Fisharebest\Webtrees\Elements\NobilityTypeTitle; 126use Fisharebest\Webtrees\Elements\NoteRecord; 127use Fisharebest\Webtrees\Elements\NoteStructure; 128use Fisharebest\Webtrees\Elements\Occupation; 129use Fisharebest\Webtrees\Elements\OrdinanceProcessFlag; 130use Fisharebest\Webtrees\Elements\Ordination; 131use Fisharebest\Webtrees\Elements\PafUid; 132use Fisharebest\Webtrees\Elements\PedigreeLinkageType; 133use Fisharebest\Webtrees\Elements\PermanentRecordFileNumber; 134use Fisharebest\Webtrees\Elements\PhoneNumber; 135use Fisharebest\Webtrees\Elements\PhoneticType; 136use Fisharebest\Webtrees\Elements\PhysicalDescription; 137use Fisharebest\Webtrees\Elements\PlaceHierarchy; 138use Fisharebest\Webtrees\Elements\PlaceLatitude; 139use Fisharebest\Webtrees\Elements\PlaceLivingOrdinance; 140use Fisharebest\Webtrees\Elements\PlaceLongtitude; 141use Fisharebest\Webtrees\Elements\PlaceName; 142use Fisharebest\Webtrees\Elements\PlacePhoneticVariation; 143use Fisharebest\Webtrees\Elements\PlaceRomanizedVariation; 144use Fisharebest\Webtrees\Elements\Possessions; 145use Fisharebest\Webtrees\Elements\Probate; 146use Fisharebest\Webtrees\Elements\PublicationDate; 147use Fisharebest\Webtrees\Elements\ReceivingSystemName; 148use Fisharebest\Webtrees\Elements\RelationIsDescriptor; 149use Fisharebest\Webtrees\Elements\ReligiousAffiliation; 150use Fisharebest\Webtrees\Elements\RepositoryRecord; 151use Fisharebest\Webtrees\Elements\Residence; 152use Fisharebest\Webtrees\Elements\ResponsibleAgency; 153use Fisharebest\Webtrees\Elements\RestrictionNotice; 154use Fisharebest\Webtrees\Elements\Retirement; 155use Fisharebest\Webtrees\Elements\RoleInEvent; 156use Fisharebest\Webtrees\Elements\RomanizedType; 157use Fisharebest\Webtrees\Elements\ScholasticAchievement; 158use Fisharebest\Webtrees\Elements\SexValue; 159use Fisharebest\Webtrees\Elements\SocialSecurityNumber; 160use Fisharebest\Webtrees\Elements\SourceCallNumber; 161use Fisharebest\Webtrees\Elements\SourceData; 162use Fisharebest\Webtrees\Elements\SourceFiledByEntry; 163use Fisharebest\Webtrees\Elements\SourceJurisdictionPlace; 164use Fisharebest\Webtrees\Elements\SourceMediaType; 165use Fisharebest\Webtrees\Elements\SourceOriginator; 166use Fisharebest\Webtrees\Elements\SourcePublicationFacts; 167use Fisharebest\Webtrees\Elements\SourceRecord; 168use Fisharebest\Webtrees\Elements\SubmissionRecord; 169use Fisharebest\Webtrees\Elements\SubmitterName; 170use Fisharebest\Webtrees\Elements\SubmitterRecord; 171use Fisharebest\Webtrees\Elements\SubmitterRegisteredRfn; 172use Fisharebest\Webtrees\Elements\SubmitterText; 173use Fisharebest\Webtrees\Elements\TempleCode; 174use Fisharebest\Webtrees\Elements\TextFromSource; 175use Fisharebest\Webtrees\Elements\TimeValue; 176use Fisharebest\Webtrees\Elements\TransmissionDate; 177use Fisharebest\Webtrees\Elements\UnknownElement; 178use Fisharebest\Webtrees\Elements\UserReferenceNumber; 179use Fisharebest\Webtrees\Elements\UserReferenceType; 180use Fisharebest\Webtrees\Elements\VersionNumber; 181use Fisharebest\Webtrees\Elements\WebtreesUser; 182use Fisharebest\Webtrees\Elements\WhereWithinSource; 183use Fisharebest\Webtrees\Elements\Will; 184use Fisharebest\Webtrees\Elements\XrefFamily; 185use Fisharebest\Webtrees\Elements\XrefIndividual; 186use Fisharebest\Webtrees\Elements\XrefMedia; 187use Fisharebest\Webtrees\Elements\XrefRepository; 188use Fisharebest\Webtrees\Elements\XrefSource; 189use Fisharebest\Webtrees\Elements\XrefSubmission; 190use Fisharebest\Webtrees\Elements\XrefSubmitter; 191use Fisharebest\Webtrees\I18N; 192 193use function preg_match; 194use function strpos; 195 196/** 197 * Make a GEDCOM element. 198 */ 199class ElementFactory implements ElementFactoryInterface 200{ 201 /** @var null|array<string,ElementInterface> */ 202 private $elements; 203 204 /** 205 * Create a GEDCOM element that corresponds to a GEDCOM tag. 206 * Finds the correct element for all valid tags. 207 * Finds a likely element for custom tags. 208 * 209 * @param string $tag - Colon delimited hierarchy, e.g. 'INDI:BIRT:PLAC' 210 * 211 * @return ElementInterface 212 */ 213 public function make(string $tag): ElementInterface 214 { 215 return $this->elements()[$tag] ?? $this->findElementByWildcard($tag) ?? new UnknownElement($tag); 216 } 217 218 /** 219 * @param string $tag 220 * 221 * @return ElementInterface|null 222 */ 223 private function findElementByWildcard(string $tag): ?ElementInterface 224 { 225 foreach ($this->elements() as $tags => $element) { 226 if (strpos($tags, '*') !== false) { 227 $regex = '/^' . strtr($tags, ['*' => '[^:]+']) . '$/'; 228 229 if (preg_match($regex, $tag)) { 230 return $element; 231 } 232 } 233 } 234 235 return null; 236 } 237 238 /** 239 * Register more elements. 240 * 241 * @param array<string,ElementInterface> $elements 242 */ 243 public function register(array $elements): void 244 { 245 $this->elements = array_merge($this->elements(), $elements); 246 } 247 248 /** 249 * Association between GEDCOM tags and GEDCOM elements. 250 * We can't initialise this in the constructor, as the I18N package isn't available then. 251 * 252 * @return array<string,ElementInterface> 253 */ 254 private function elements(): array 255 { 256 if ($this->elements === null) { 257 // Custom tags are indicated with *** 258 $this->elements = [ 259 'FAM' => new EmptyElement(I18N::translate('Family')), 260 'FAM:*:ADDR' => new AddressLine(I18N::translate('Address')), 261 'FAM:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 262 'FAM:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 263 'FAM:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 264 'FAM:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), 265 'FAM:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 266 'FAM:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 267 'FAM:*:ADDR:STAE' => new AddressState(I18N::translate('State')), 268 'FAM:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 269 'FAM:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), 270 'FAM:*:DATE' => new DateValue(I18N::translate('Date')), 271 'FAM:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), 272 'FAM:*:FAX' => new AddressFax(I18N::translate('Fax')), 273 'FAM:*:HUSB' => new EmptyElement(I18N::translate('Husband'), ['AGE' => '0:1']), 274 'FAM:*:HUSB:AGE' => new AgeAtEvent(I18N::translate('Husband’s age')), 275 'FAM:*:NOTE' => new NoteStructure(I18N::translate('Note')), 276 'FAM:*:OBJE' => new XrefMedia(I18N::translate('Media object')), 277 'FAM:*:PHON' => new PhoneNumber(I18N::translate('Phone')), 278 'FAM:*:PLAC' => new PlaceName(I18N::translate('Place')), 279 'FAM:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), 280 'FAM:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), 281 'FAM:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 282 'FAM:*:PLAC:MAP' => new EmptyElement(I18N::translate('Coordinates')), 283 'FAM:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 284 'FAM:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 285 'FAM:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), 286 'FAM:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), 287 'FAM:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 288 'FAM:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion')), 289 'FAM:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 290 'FAM:*:SOUR' => new XrefSource(I18N::translate('Source')), 291 'FAM:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 292 'FAM:*:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 293 'FAM:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 294 'FAM:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 295 'FAM:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 296 'FAM:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 297 'FAM:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 298 'FAM:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 299 'FAM:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 300 'FAM:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), 301 'FAM:*:WIFE' => new EmptyElement(I18N::translate('Wife'), ['AGE' => '0:1']), 302 'FAM:*:WIFE:AGE' => new AgeAtEvent(I18N::translate('Wife’s age')), 303 'FAM:*:WWW' => new AddressWebPage(I18N::translate('URL')), 304 'FAM:*:_ASSO' => new XrefIndividual(I18N::translate('Associate')), // *** 305 'FAM:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), // *** 306 'FAM:ANUL' => new Annulment(I18N::translate('Annulment')), 307 'FAM:CENS' => new Census(I18N::translate('Census')), 308 'FAM:CHAN' => new Change(I18N::translate('Last change')), 309 'FAM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 310 'FAM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 311 'FAM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 312 'FAM:CHIL' => new XrefIndividual(I18N::translate('Child')), 313 'FAM:DIV' => new Divorce(I18N::translate('Divorce')), 314 'FAM:DIVF' => new DivorceFiled(I18N::translate('Divorce filed')), 315 'FAM:ENGA' => new Engagement(I18N::translate('Engagement')), 316 'FAM:ENGA:DATE' => new DateValue(I18N::translate('Date of engagement')), 317 'FAM:ENGA:PLACE' => new PlaceName(I18N::translate('Place of engagement')), 318 'FAM:EVEN' => new EventDescriptor(I18N::translate('Event')), 319 'FAM:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), 320 'FAM:HUSB' => new XrefIndividual(I18N::translate('Husband')), 321 'FAM:MARB' => new MarriageBanns(I18N::translate('Marriage banns')), 322 'FAM:MARB:DATE' => new DateValue(I18N::translate('Date of marriage banns')), 323 'FAM:MARB:PLAC' => new PlaceName(I18N::translate('Place of marriage banns')), 324 'FAM:MARC' => new MarriageContract(I18N::translate('Marriage contract')), 325 'FAM:MARL' => new MarriageLicence(I18N::translate('Marriage license')), 326 'FAM:MARR' => new Marriage(I18N::translate('Marriage')), 327 'FAM:MARR:DATE' => new DateValue(I18N::translate('Date of marriage')), 328 'FAM:MARR:PLAC' => new PlaceName(I18N::translate('Place of marriage')), 329 'FAM:MARR:TYPE' => new MarriageType(I18N::translate('Type of marriage')), 330 'FAM:MARS' => new MarriageSettlement(I18N::translate('Marriage settlement')), 331 'FAM:NCHI' => new CountOfChildren(I18N::translate('Number of children')), 332 'FAM:NOTE' => new NoteStructure(I18N::translate('Note')), 333 'FAM:OBJE' => new XrefMedia(I18N::translate('Media object')), 334 'FAM:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 335 'FAM:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 336 'FAM:RESI' => new Residence(I18N::translate('Residence')), 337 'FAM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 338 'FAM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 339 'FAM:SLGS' => new LdsSpouseSealing(I18N::translate('LDS spouse sealing')), 340 'FAM:SLGS:DATE' => new DateLdsOrd(I18N::translate('Date')), 341 'FAM:SLGS:NOTE' => new NoteStructure(I18N::translate('Note')), 342 'FAM:SLGS:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place')), 343 'FAM:SLGS:STAT' => new LdsSpouseSealingDateStatus(I18N::translate('Status')), 344 'FAM:SLGS:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 345 'FAM:SLGS:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 346 'FAM:SOUR' => new XrefSource(I18N::translate('Source')), 347 'FAM:SOUR:DATA' => new SourceData(I18N::translate('Data')), 348 'FAM:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 349 'FAM:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 350 'FAM:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 351 'FAM:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 352 'FAM:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 353 'FAM:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 354 'FAM:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 355 'FAM:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 356 'FAM:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 357 'FAM:WIFE' => new XrefIndividual(I18N::translate('Wife')), 358 'FAM:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 359 'HEAD' => new EmptyElement(I18N::translate('Header')), 360 'HEAD:CHAR' => new CharacterSet(I18N::translate('Character set')), 361 'HEAD:CHAR:VERS' => new VersionNumber(I18N::translate('Version')), 362 'HEAD:COPR' => new CopyrightFile(I18N::translate('Copyright')), 363 'HEAD:DATE' => new TransmissionDate(I18N::translate('Date')), 364 'HEAD:DATE:TIME' => new TimeValue(I18N::translate('Time')), 365 'HEAD:DEST' => new ReceivingSystemName(I18N::translate('Destination')), 366 'HEAD:FILE' => new FileName(I18N::translate('Filename')), 367 'HEAD:GEDC' => new Gedcom(I18N::translate('GEDCOM file')), 368 'HEAD:GEDC:FORM' => new Form(I18N::translate('Format')), 369 'HEAD:GEDC:VERS' => new VersionNumber(I18N::translate('Version')), 370 'HEAD:NOTE' => new ContentDescription(I18N::translate('Note')), 371 'HEAD:PLAC' => new EmptyElement(I18N::translate('Place'), ['FORM' => '1:1']), 372 'HEAD:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 373 'HEAD:SOUR' => new ApprovedSystemId('Genealogy software'), 374 'HEAD:SOUR:CORP' => new NameOfBusiness(I18N::translate('Corporation')), 375 'HEAD:SOUR:CORP:ADDR' => new AddressLine(I18N::translate('Address')), 376 'HEAD:SOUR:CORP:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 377 'HEAD:SOUR:CORP:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 378 'HEAD:SOUR:CORP:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 379 'HEAD:SOUR:CORP:ADDR:CITY' => new AddressCity(I18N::translate('City')), 380 'HEAD:SOUR:CORP:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 381 'HEAD:SOUR:CORP:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 382 'HEAD:SOUR:CORP:ADDR:STAE' => new AddressState(I18N::translate('State')), 383 'HEAD:SOUR:CORP:EMAIL' => new AddressEmail(I18N::translate('Email address')), 384 'HEAD:SOUR:CORP:FAX' => new AddressFax(I18N::translate('Fax')), 385 'HEAD:SOUR:CORP:PHON' => new PhoneNumber(I18N::translate('Phone')), 386 'HEAD:SOUR:CORP:WWW' => new AddressWebPage(I18N::translate('URL')), 387 'HEAD:SOUR:DATA' => new NameOfSourceData('Data'), 388 'HEAD:SOUR:DATA:COPR' => new CopyrightSourceData(I18N::translate('Copyright')), 389 'HEAD:SOUR:DATA:DATE' => new PublicationDate(I18N::translate('Date')), 390 'HEAD:SOUR:NAME' => new NameOfProduct('Software product'), 391 'HEAD:SOUR:VERS' => new VersionNumber(I18N::translate('Version')), 392 'HEAD:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 393 'HEAD:SUBN' => new XrefSubmission(I18N::translate('Submission')), 394 'INDI' => new EmptyElement(I18N::translate('Individual')), 395 'INDI:*:ADDR' => new AddressLine(I18N::translate('Address')), 396 'INDI:*:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 397 'INDI:*:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 398 'INDI:*:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 399 'INDI:*:ADDR:CITY' => new AddressCity(I18N::translate('City')), 400 'INDI:*:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 401 'INDI:*:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 402 'INDI:*:ADDR:STAE' => new AddressState(I18N::translate('State')), 403 'INDI:*:AGE' => new AgeAtEvent(I18N::translate('Age')), 404 'INDI:*:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 405 'INDI:*:ASSO' => new XrefIndividual(I18N::translate('Associate')), // *** 406 'INDI:*:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 407 'INDI:*:CAUS' => new CauseOfEvent(I18N::translate('Cause')), 408 'INDI:*:DATE' => new DateValue(I18N::translate('Date')), 409 'INDI:*:EMAIL' => new AddressEmail(I18N::translate('Email address')), 410 'INDI:*:FAX' => new AddressFax(I18N::translate('Fax')), 411 'INDI:*:NOTE' => new NoteStructure(I18N::translate('Note')), 412 'INDI:*:OBJE' => new XrefMedia(I18N::translate('Media object')), 413 'INDI:*:PHON' => new PhoneNumber(I18N::translate('Phone')), 414 'INDI:*:PLAC' => new PlaceName(I18N::translate('Place')), 415 'INDI:*:PLAC:FONE' => new PlacePhoneticVariation(I18N::translate('Phonetic place')), 416 'INDI:*:PLAC:FONE:TYPE' => new PhoneticType(I18N::translate('Type')), 417 'INDI:*:PLAC:FORM' => new PlaceHierarchy(I18N::translate('Format')), 418 'INDI:*:PLAC:MAP' => new EmptyElement(I18N::translate('Coordinates')), 419 'INDI:*:PLAC:MAP:LATI' => new PlaceLatitude(I18N::translate('Latitude')), 420 'INDI:*:PLAC:MAP:LONG' => new PlaceLongtitude(I18N::translate('Longitude')), 421 'INDI:*:PLAC:NOTE' => new NoteStructure(I18N::translate('Note')), 422 'INDI:*:PLAC:ROMN' => new PlaceRomanizedVariation(I18N::translate('Romanized place')), 423 'INDI:*:PLAC:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 424 'INDI:*:PLAC:_HEB' => new NoteStructure(I18N::translate('Place in Hebrew')), // *** 425 'INDI:*:RELI' => new ReligiousAffiliation(I18N::translate('Religion')), 426 'INDI:*:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 427 'INDI:*:SOUR' => new XrefSource(I18N::translate('Source')), 428 'INDI:*:SOUR:DATA' => new SourceData(I18N::translate('Data')), 429 'INDI:*:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 430 'INDI:*:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 431 'INDI:*:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 432 'INDI:*:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 433 'INDI:*:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 434 'INDI:*:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 435 'INDI:*:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 436 'INDI:*:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 437 'INDI:*:TYPE' => new EventOrFactClassification(I18N::translate('Type')), 438 'INDI:*:WWW' => new AddressWebPage(I18N::translate('URL')), 439 'INDI:*:_ASSO' => new XrefIndividual(I18N::translate('Associate')), // *** 440 'INDI:*:_ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), // *** 441 'INDI:ADOP' => new Adoption(I18N::translate('Adoption')), 442 'INDI:ADOP:DATE' => new DateValue(I18N::translate('Date of adoption')), 443 'INDI:ADOP:FAMC' => new XrefFamily(I18N::translate('Adoptive parents')), 444 'INDI:ADOP:FAMC:ADOP' => new AdoptedByWhichParent(I18N::translate('Adoption')), 445 'INDI:ADOP:PLAC' => new PlaceName(I18N::translate('Place of adoption')), 446 'INDI:AFN' => new AncestralFileNumber(I18N::translate('Ancestral file number')), 447 'INDI:ALIA' => new XrefIndividual(I18N::translate('Alias')), 448 'INDI:ANCI' => new XrefSubmitter(I18N::translate('Ancestors interest')), 449 'INDI:ASSO' => new XrefIndividual(I18N::translate('Associate')), 450 'INDI:ASSO:NOTE' => new NoteStructure(I18N::translate('Note')), 451 'INDI:ASSO:RELA' => new RelationIsDescriptor(I18N::translate('Relationship')), 452 'INDI:BAPL' => new LdsBaptism(I18N::translate('LDS baptism')), 453 'INDI:BAPL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS baptism')), 454 'INDI:BAPL:NOTE' => new NoteStructure(I18N::translate('Note')), 455 'INDI:BAPL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS baptism')), 456 'INDI:BAPL:STAT' => new LdsBaptismDateStatus(I18N::translate('Status')), 457 'INDI:BAPL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 458 'INDI:BAPL:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 459 'INDI:BAPM' => new Baptism(I18N::translate('Baptism')), 460 'INDI:BAPM:DATE' => new DateValue(I18N::translate('Date of baptism')), 461 'INDI:BAPM:PLAC' => new PlaceName(I18N::translate('Place of baptism')), 462 'INDI:BARM' => new PlaceName(I18N::translate('Bar mitzvah')), 463 'INDI:BARM:DATE' => new DateValue(I18N::translate('Date of bar mitzvah')), 464 'INDI:BARM:PLAC' => new PlaceName(I18N::translate('Place of bar mitzvah')), 465 'INDI:BASM' => new BasMitzvah(I18N::translate('Bat mitzvah')), 466 'INDI:BASM:DATE' => new BasMitzvah(I18N::translate('Date of bat mitzvah')), 467 'INDI:BASM:PLAC' => new DateValue(I18N::translate('Place of bat mitzvah')), 468 'INDI:BIRT' => new Birth(I18N::translate('Birth')), 469 'INDI:BIRT:DATE' => new DateValue(I18N::translate('Date of birth')), 470 'INDI:BIRT:FAMC' => new XrefFamily(I18N::translate('Birth parents')), 471 'INDI:BIRT:PLAC' => new PlaceName(I18N::translate('Place of birth')), 472 'INDI:BLES' => new Blessing(I18N::translate('Blessing')), 473 'INDI:BLES:DATE' => new DateValue(I18N::translate('Date of blessing')), 474 'INDI:BLES:PLAC' => new PlaceName(I18N::translate('Place of blessing')), 475 'INDI:BURI' => new Burial(I18N::translate('Burial')), 476 'INDI:BURI:DATE' => new DateValue(I18N::translate('Date of burial')), 477 'INDI:BURI:PLAC' => new PlaceName(I18N::translate('Place of burial')), 478 'INDI:CAST' => new CasteName(I18N::translate('Caste')), 479 'INDI:CENS' => new Census(I18N::translate('Census')), 480 'INDI:CENS:DATE' => new DateValue(I18N::translate('Census date')), 481 'INDI:CENS:PLAC' => new PlaceName(I18N::translate('Census place')), 482 'INDI:CHAN' => new Change(I18N::translate('Last change')), 483 'INDI:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 484 'INDI:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 485 'INDI:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 486 'INDI:CHR' => new Christening(I18N::translate('Christening')), 487 'INDI:CHR:DATE' => new DateValue(I18N::translate('Date of christening')), 488 'INDI:CHR:FAMC' => new XrefFamily(I18N::translate('Godparents')), 489 'INDI:CHR:PLAC' => new PlaceName(I18N::translate('Place of christening')), 490 'INDI:CHRA' => new AdultChristening(I18N::translate('Adult christening')), 491 'INDI:CONF' => new Confirmation(I18N::translate('Confirmation')), 492 'INDI:CONF:DATE' => new DateValue(I18N::translate('Date of confirmation')), 493 'INDI:CONF:PLAC' => new PlaceName(I18N::translate('Place of confirmation')), 494 'INDI:CONL' => new LdsConfirmation(I18N::translate('LDS confirmation')), 495 'INDI:CONL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS confirmation')), 496 'INDI:CONL:NOTE' => new NoteStructure(I18N::translate('Note')), 497 'INDI:CONL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS confirmation')), 498 'INDI:CONL:STAT' => new LdsSpouseSealingDateStatus(I18N::translate('Status')), 499 'INDI:CONL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 500 'INDI:CONL:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 501 'INDI:CREM' => new Cremation(I18N::translate('Cremation')), 502 'INDI:CREM:DATE' => new Cremation(I18N::translate('Date of cremation')), 503 'INDI:CREM:PLAC' => new Cremation(I18N::translate('Place of cremation')), 504 'INDI:DEAT' => new Death(I18N::translate('Death')), 505 'INDI:DEAT:CAUS' => new CauseOfEvent(I18N::translate('Cause of death')), 506 'INDI:DEAT:DATE' => new DateValue(I18N::translate('Date of death')), 507 'INDI:DEAT:PLAC' => new PlaceName(I18N::translate('Place of death')), 508 'INDI:DESI' => new XrefSubmitter(I18N::translate('Descendants interest')), 509 'INDI:DSCR' => new PhysicalDescription(I18N::translate('Description')), 510 'INDI:EDUC' => new ScholasticAchievement(I18N::translate('Education')), 511 'INDI:EDUC:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), 512 'INDI:EMIG' => new Emigration(I18N::translate('Emigration')), 513 'INDI:EMIG:DATE' => new DateValue(I18N::translate('Date of emigration')), 514 'INDI:EMIG:PLAC' => new PlaceName(I18N::translate('Place of emigration')), 515 'INDI:ENDL' => new LdsEndowment(I18N::translate('LDS endowment')), 516 'INDI:ENDL:DATE' => new DateLdsOrd(I18N::translate('Date of LDS endowment')), 517 'INDI:ENDL:NOTE' => new NoteStructure(I18N::translate('Note')), 518 'INDI:ENDL:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS endowment')), 519 'INDI:ENDL:STAT' => new LdsEndowmentDateStatus(I18N::translate('Status')), 520 'INDI:ENDL:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 521 'INDI:ENDL:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 522 'INDI:EVEN' => new EventDescriptor(I18N::translate('Event')), 523 'INDI:EVEN:DATE' => new DateValue(I18N::translate('Date of event')), 524 'INDI:EVEN:PLAC' => new PlaceName(I18N::translate('Place of event')), 525 'INDI:EVEN:TYPE' => new EventAttributeType(I18N::translate('Type of event')), 526 'INDI:FACT' => new AttributeDescriptor(I18N::translate('Fact')), 527 'INDI:FACT:TYPE' => new EventAttributeType(I18N::translate('Type of fact')), 528 'INDI:FAMC' => new XrefFamily(I18N::translate('Family as a child')), 529 'INDI:FAMC:NOTE' => new NoteStructure(I18N::translate('Note')), 530 'INDI:FAMC:PEDI' => new PedigreeLinkageType(I18N::translate('Relationship to parents')), 531 'INDI:FAMC:STAT' => new ChildLinkageStatus(I18N::translate('Status')), 532 'INDI:FAMS' => new XrefFamily(I18N::translate('Family as a spouse')), 533 'INDI:FCOM' => new FirstCommunion(I18N::translate('First communion')), 534 'INDI:FCOM:DATE' => new DateValue(I18N::translate('Date of first communion')), 535 'INDI:FCOM:PLAC' => new PlaceName(I18N::translate('Place of first communion')), 536 'INDI:GRAD' => new Graduation(I18N::translate('Graduation')), 537 'INDI:GRAD:AGNC' => new ResponsibleAgency(I18N::translate('School or college')), 538 'INDI:IDNO' => new NationalIdNumber(I18N::translate('Identification number')), 539 'INDI:IMMI' => new Immigration(I18N::translate('Immigration')), 540 'INDI:IMMI:DATE' => new DateValue(I18N::translate('Date of immigration')), 541 'INDI:IMMI:PLAC' => new PlaceName(I18N::translate('Place of immigration')), 542 'INDI:NAME' => new NamePersonal(I18N::translate('Name')), 543 'INDI:NAME:FONE' => new NamePhoneticVariation(I18N::translate('Phonetic name')), 544 'INDI:NAME:FONE:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 545 'INDI:NAME:FONE:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 546 'INDI:NAME:FONE:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 547 'INDI:NAME:FONE:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 548 'INDI:NAME:FONE:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 549 'INDI:NAME:FONE:SURN' => new NamePieceSurname(I18N::translate('Surname')), 550 'INDI:NAME:FONE:TYPE' => new PhoneticType(I18N::translate('Type of name')), 551 'INDI:NAME:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 552 'INDI:NAME:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 553 'INDI:NAME:NOTE' => new NoteStructure(I18N::translate('Note')), 554 'INDI:NAME:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 555 'INDI:NAME:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 556 'INDI:NAME:ROMN' => new NameRomanizedVariation(I18N::translate('Romanized name')), 557 'INDI:NAME:ROMN:GIVN' => new NamePieceGiven(I18N::translate('Given names')), 558 'INDI:NAME:ROMN:NICK' => new NamePieceNickname(I18N::translate('Nickname')), 559 'INDI:NAME:ROMN:NPFX' => new NamePiecePrefix(I18N::translate('Name prefix')), 560 'INDI:NAME:ROMN:NSFX' => new NamePieceSuffix(I18N::translate('Name suffix')), 561 'INDI:NAME:ROMN:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 562 'INDI:NAME:ROMN:SURN' => new NamePieceSurname(I18N::translate('Surname')), 563 'INDI:NAME:ROMN:TYPE' => new RomanizedType(I18N::translate('Type')), 564 'INDI:NAME:SPFX' => new NamePieceSurnamePrefix(I18N::translate('Surname prefix')), 565 'INDI:NAME:SURN' => new NamePieceSurname(I18N::translate('Surname')), 566 'INDI:NAME:TYPE' => new NameType(I18N::translate('Type of name')), 567 'INDI:NATI' => new NationOrTribalOrigin(I18N::translate('Nationality')), 568 'INDI:NATU' => new Naturalization(I18N::translate('Naturalization')), 569 'INDI:NATU:DATE' => new DateValue(I18N::translate('Date of naturalization')), 570 'INDI:NATU:PLAC' => new PlaceName(I18N::translate('Place of naturalization')), 571 'INDI:NCHI' => new CountOfChildren(I18N::translate('Number of children')), 572 'INDI:NMR' => new CountOfMarriages(I18N::translate('Number of marriages')), 573 'INDI:NOTE' => new NoteStructure(I18N::translate('Note')), 574 'INDI:OBJE' => new XrefMedia(I18N::translate('Media object')), 575 'INDI:OCCU' => new Occupation(I18N::translate('Occupation')), 576 'INDI:OCCU:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), 577 'INDI:ORDN' => new Ordination(I18N::translate('Ordination')), 578 'INDI:ORDN:AGNC' => new Ordination(I18N::translate('Religious institution')), 579 'INDI:ORDN:DATE' => new Ordination(I18N::translate('Date of ordination')), 580 'INDI:ORDN:PLAC' => new Ordination(I18N::translate('Place of ordination')), 581 'INDI:PROB' => new Probate(I18N::translate('Probate')), 582 'INDI:PROP' => new Possessions(I18N::translate('Property')), 583 'INDI:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 584 'INDI:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 585 'INDI:RELI' => new ReligiousAffiliation(I18N::translate('Religion')), 586 'INDI:RESI' => new Residence(I18N::translate('Residence')), 587 'INDI:RESI:DATE' => new DateValue(I18N::translate('Date of residence')), 588 'INDI:RESI:PLAC' => new PlaceName(I18N::translate('Place of residence')), 589 'INDI:RESN' => new RestrictionNotice(I18N::translate('Restriction')), 590 'INDI:RETI' => new Retirement(I18N::translate('Retirement')), 591 'INDI:RETI:AGNC' => new ResponsibleAgency(I18N::translate('Employer')), 592 'INDI:RFN' => new PermanentRecordFileNumber(I18N::translate('Record file number')), 593 'INDI:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 594 'INDI:SEX' => new SexValue(I18N::translate('Gender')), 595 'INDI:SLGC' => new LdsChildSealing(I18N::translate('LDS child sealing')), 596 'INDI:SLGC:DATE' => new DateLdsOrd(I18N::translate('Date of LDS child sealing')), 597 'INDI:SLGC:FAMC' => new XrefFamily(I18N::translate('Parents')), 598 'INDI:SLGC:NOTE' => new NoteStructure(I18N::translate('Note')), 599 'INDI:SLGC:PLAC' => new PlaceLivingOrdinance(I18N::translate('Place of LDS child sealing')), 600 'INDI:SLGC:STAT' => new LdsChildSealingDateStatus(I18N::translate('Status')), 601 'INDI:SLGC:STAT:DATE' => new ChangeDate(I18N::translate('Status change date')), 602 'INDI:SLGC:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 603 'INDI:SOUR' => new XrefSource(I18N::translate('Source')), 604 'INDI:SOUR:DATA' => new SourceData(I18N::translate('Data')), 605 'INDI:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 606 'INDI:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 607 'INDI:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 608 'INDI:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 609 'INDI:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 610 'INDI:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 611 'INDI:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 612 'INDI:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 613 'INDI:SSN' => new SocialSecurityNumber(I18N::translate('Social security number')), 614 'INDI:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 615 'INDI:TITL' => new NobilityTypeTitle(I18N::translate('Title')), 616 'INDI:WILL' => new Will(I18N::translate('Will')), 617 'INDI:_TODO' => new UnknownElement(I18N::translate('Research task')), // *** webtrees 618 'INDI:_TODO:DATE' => new DateValue(I18N::translate('Date')), // *** webtrees 619 'INDI:_TODO:_WT_USER' => new WebtreesUser(I18N::translate('User')), // *** webtrees 620 'INDI:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 621 'INDI:_WT_OBJE_SORT' => new XrefMedia(I18N::translate('Re-order media')), // *** webtrees 1.7 622 'NOTE' => new NoteRecord(I18N::translate('Note')), 623 'NOTE:CHAN' => new Change(I18N::translate('Last change')), 624 'NOTE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 625 'NOTE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 626 'NOTE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 627 'NOTE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 628 'NOTE:CONC' => new SubmitterText(I18N::translate('Note')), 629 'NOTE:CONT' => new SubmitterText(I18N::translate('Continued')), 630 'NOTE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 631 'NOTE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 632 'NOTE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 633 'NOTE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 634 'NOTE:SOUR' => new XrefSource(I18N::translate('Source')), 635 'NOTE:SOUR:DATA' => new SourceData(I18N::translate('Data')), 636 'NOTE:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 637 'NOTE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 638 'NOTE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 639 'NOTE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 640 'NOTE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 641 'NOTE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 642 'NOTE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 643 'NOTE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 644 'NOTE:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 645 'OBJE' => new MediaRecord(I18N::translate('Media object')), 646 'OBJE:CHAN' => new Change(I18N::translate('Last change')), 647 'OBJE:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 648 'OBJE:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 649 'OBJE:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 650 'OBJE:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 651 'OBJE:FILE' => new MultimediaFileReference(I18N::translate('Filename')), 652 'OBJE:FILE:FORM' => new MultimediaFormat(I18N::translate('Format')), 653 'OBJE:FILE:FORM:TYPE' => new SourceMediaType(I18N::translate('Media type')), 654 'OBJE:FILE:TITL' => new DescriptiveTitle(I18N::translate('Title')), 655 'OBJE:NOTE' => new NoteStructure(I18N::translate('Note')), 656 'OBJE:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 657 'OBJE:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 658 'OBJE:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 659 'OBJE:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 660 'OBJE:SOUR' => new XrefSource(I18N::translate('Source')), 661 'OBJE:SOUR:DATA' => new SourceData(I18N::translate('Data')), 662 'OBJE:SOUR:DATA:DATE' => new EntryRecordingDate(I18N::translate('Date of entry in original source')), 663 'OBJE:SOUR:DATA:TEXT' => new TextFromSource(I18N::translate('Text')), 664 'OBJE:SOUR:EVEN' => new EventTypeCitedFrom(I18N::translate('Event')), 665 'OBJE:SOUR:EVEN:ROLE' => new RoleInEvent(I18N::translate('Role')), 666 'OBJE:SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 667 'OBJE:SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 668 'OBJE:SOUR:PAGE' => new WhereWithinSource(I18N::translate('Citation details')), 669 'OBJE:SOUR:QUAY' => new CertaintyAssessment(I18N::translate('Quality of data')), 670 'OBJE:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 671 'REPO' => new RepositoryRecord(I18N::translate('Repository')), 672 'REPO:ADDR' => new AddressLine(I18N::translate('Address')), 673 'REPO:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 674 'REPO:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 675 'REPO:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 676 'REPO:ADDR:CITY' => new AddressCity(I18N::translate('City')), 677 'REPO:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 678 'REPO:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 679 'REPO:ADDR:STAE' => new AddressState(I18N::translate('State')), 680 'REPO:CHAN' => new Change(I18N::translate('Last change')), 681 'REPO:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 682 'REPO:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 683 'REPO:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 684 'REPO:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 685 'REPO:EMAIL' => new AddressEmail(I18N::translate('Email address')), 686 'REPO:FAX' => new AddressFax(I18N::translate('Fax')), 687 'REPO:NAME' => new NameOfRepository(I18N::translateContext('Repository', 'Name')), 688 'REPO:NOTE' => new NoteStructure(I18N::translate('Note')), 689 'REPO:PHON' => new PhoneNumber(I18N::translate('Phone')), 690 'REPO:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 691 'REPO:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 692 'REPO:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 693 'REPO:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 694 'REPO:WWW' => new AddressWebPage(I18N::translate('URL')), 695 'REPO:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 696 'SOUR' => new SourceRecord(I18N::translate('Source')), 697 'SOUR:ABBR' => new SourceFiledByEntry(I18N::translate('Abbreviation')), 698 'SOUR:AUTH' => new SourceOriginator(I18N::translate('Author')), 699 'SOUR:CHAN' => new Change(I18N::translate('Last change')), 700 'SOUR:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 701 'SOUR:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 702 'SOUR:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 703 'SOUR:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 704 'SOUR:DATA' => new EmptyElement(I18N::translate('Data'), ['EVEN' => '0:M', 'AGNC' => '0:1', 'NOTE' => '0:M']), 705 'SOUR:DATA:AGNC' => new ResponsibleAgency(I18N::translate('Agency')), 706 'SOUR:DATA:EVEN' => new EventsRecorded(I18N::translate('Events')), 707 'SOUR:DATA:EVEN:DATE' => new DateValue(I18N::translate('Date range')), 708 'SOUR:DATA:EVEN:PLAC' => new SourceJurisdictionPlace(I18N::translate('Place')), 709 'SOUR:DATA:NOTE' => new NoteStructure(I18N::translate('Note')), 710 'SOUR:NOTE' => new NoteStructure(I18N::translate('Note')), 711 'SOUR:OBJE' => new XrefMedia(I18N::translate('Media object')), 712 'SOUR:PUBL' => new SourcePublicationFacts(I18N::translate('Publication')), 713 'SOUR:REFN' => new UserReferenceNumber(I18N::translate('Reference number')), 714 'SOUR:REFN:TYPE' => new UserReferenceType(I18N::translate('Type')), 715 'SOUR:REPO' => new XrefRepository(I18N::translate('Repository')), 716 'SOUR:REPO:CALN' => new SourceCallNumber(I18N::translate('Call number')), 717 'SOUR:REPO:CALN:MEDI' => new SourceMediaType(I18N::translate('Media type')), 718 'SOUR:REPO:NOTE' => new NoteStructure(I18N::translate('Note')), 719 'SOUR:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 720 'SOUR:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 721 'SOUR:TEXT' => new TextFromSource(I18N::translate('Text')), 722 'SOUR:TITL' => new DescriptiveTitle(I18N::translate('Title')), 723 'SOUR:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 724 'SUBM' => new SubmitterRecord(I18N::translate('Submitter')), 725 'SUBM:ADDR' => new AddressLine(I18N::translate('Address')), 726 'SUBM:ADDR:ADR1' => new AddressLine1(I18N::translate('Address line 1')), 727 'SUBM:ADDR:ADR2' => new AddressLine2(I18N::translate('Address line 2')), 728 'SUBM:ADDR:ADR3' => new AddressLine3(I18N::translate('Address line 3')), 729 'SUBM:ADDR:CITY' => new AddressCity(I18N::translate('City')), 730 'SUBM:ADDR:CTRY' => new AddressCountry(I18N::translate('Country')), 731 'SUBM:ADDR:POST' => new AddressPostalCode(I18N::translate('Postal code')), 732 'SUBM:ADDR:STAE' => new AddressState(I18N::translate('State')), 733 'SUBM:CHAN' => new Change(I18N::translate('Last change')), 734 'SUBM:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 735 'SUBM:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 736 'SUBM:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 737 'SUBM:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 738 'SUBM:EMAIL' => new AddressEmail(I18N::translate('Email address')), 739 'SUBM:FAX' => new AddressFax(I18N::translate('Fax')), 740 'SUBM:LANG' => new LanguageId(I18N::translate('Language')), 741 'SUBM:NAME' => new SubmitterName(I18N::translate('Name')), 742 'SUBM:NOTE' => new NoteStructure(I18N::translate('Note')), 743 'SUBM:OBJE' => new XrefMedia(I18N::translate('Media object')), 744 'SUBM:PHON' => new PhoneNumber(I18N::translate('Phone')), 745 'SUBM:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 746 'SUBM:RFN' => new SubmitterRegisteredRfn(I18N::translate('Record file number')), 747 'SUBM:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 748 'SUBM:WWW' => new AddressWebPage(I18N::translate('URL')), 749 'SUBM:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 750 'SUBN' => new SubmissionRecord(I18N::translate('Submission')), 751 'SUBN:ANCE' => new GenerationsOfAncestors(I18N::translate('Generations of ancestors')), 752 'SUBN:CHAN' => new Change(I18N::translate('Last change')), 753 'SUBN:CHAN:DATE' => new ChangeDate(I18N::translate('Date of last change')), 754 'SUBN:CHAN:DATE:TIME' => new TimeValue(I18N::translate('Time')), 755 'SUBN:CHAN:NOTE' => new NoteStructure(I18N::translate('Note')), 756 'SUBN:CHAN:_WT_USER' => new WebtreesUser(I18N::translate('Author of last change')), // *** webtrees 757 'SUBN:DESC' => new GenerationsOfDescendants(I18N::translate('Generations of descendants')), 758 'SUBN:FAMF' => new NameOfFamilyFile(I18N::translate('Family file')), 759 'SUBN:NOTE' => new NoteStructure(I18N::translate('Note')), 760 'SUBN:ORDI' => new OrdinanceProcessFlag(I18N::translate('Ordinance')), 761 'SUBN:RESN' => new RestrictionNotice(I18N::translate('Restriction')), // *** webtrees 762 'SUBN:RIN' => new AutomatedRecordId(I18N::translate('Record ID number')), 763 'SUBN:SUBM' => new XrefSubmitter(I18N::translate('Submitter')), 764 'SUBN:TEMP' => new TempleCode(/* I18N: https://en.wikipedia.org/wiki/Temple_(LDS_Church)*/ I18N::translate('Temple')), 765 'SUBN:_UID' => new PafUid(I18N::translate('Unique identifier')), // *** 766 'TRLR' => new EmptyElement(I18N::translate('Trailer')), // Not used in webtrees 767 ]; 768 } 769 770 return $this->elements; 771 } 772} 773