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