getTag(); switch ($record->tag()) { case 'SOUR': if ($level1type === 'DATA') { // SOUR:DATA facts may take a NOTE (but the SOUR record may not). echo view('cards/add-note', [ 'level' => 2, 'tree' => $tree, ]); echo view('cards/add-shared-note', [ 'level' => 2, 'tree' => $tree, ]); // SOUR:DATA facts may also take multiple EVEN. echo view('cards/add-sour-data-even', [ 'tree' => $tree, ]); } break; case 'FAM': case 'INDI': // FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc. if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') { if ($level1type !== 'SOUR') { echo view('cards/add-source-citation', [ 'level' => 2, 'full_citations' => $tree->getPreference('FULL_SOURCES'), 'tree' => $tree, ]); } if ($level1type !== 'OBJE') { if ($tree->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($tree)) { echo view('cards/add-media-object', [ 'level' => 2, 'tree' => $tree, ]); } } echo view('cards/add-note', [ 'level' => 2, 'tree' => $tree, ]); echo view('cards/add-shared-note', [ 'level' => 2, 'tree' => $tree, ]); if ($level1type !== 'ASSO' && $level1type !== 'NOTE' && $level1type !== 'SOUR') { echo view('cards/add-associate', [ 'id' => Uuid::uuid4()->toString(), 'level' => 2, 'tree' => $tree, ]); } // allow to add godfather and godmother for CHR fact or best man and bridesmaid for MARR fact in one window if (in_array($level1type, Config::twoAssociates(), true)) { echo view('cards/add-associate', [ 'id' => Uuid::uuid4()->toString(), 'level' => 2, 'tree' => $tree, ]); } if ($level1type !== 'SOUR') { echo view('cards/add-restriction', [ 'level' => 2, 'tree' => $tree, ]); } } break; default: // Other types of record do not have these lower-level records break; } ?>
I18N::translate('Keep the existing “last change” information'), 'name' => 'keep_chan', 'checked' => (bool) $tree->getPreference('NO_UPDATE_CHAN')]) ?> $record->lastChangeTimestamp()])) ?> lastChangeUser())) ?>