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