mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-13 02:53:44 +00:00
Added support for EVEN tag.https://github.com/PeWu/topola/issues/13
This commit is contained in:
@@ -12,8 +12,8 @@ interface Props {
|
||||
indi: string;
|
||||
}
|
||||
|
||||
const EVENT_TAGS = ['BIRT', 'BAPM', 'CHR', 'DEAT', 'BURI'];
|
||||
const EXCLUDED_TAGS = ['NAME', 'SEX', 'FAMC', 'FAMS', 'NOTE'];
|
||||
const EVENT_TAGS = ['BIRT', 'BAPM', 'CHR', 'DEAT', 'BURI', 'EVEN'];
|
||||
const EXCLUDED_TAGS = ['NAME', 'SEX', 'FAMC', 'FAMS', 'NOTE', 'SOUR'];
|
||||
const TAG_DESCRIPTIONS = new Map([
|
||||
['BAPM', 'Baptism'],
|
||||
['BIRT', 'Birth'],
|
||||
@@ -21,6 +21,7 @@ const TAG_DESCRIPTIONS = new Map([
|
||||
['CHR', 'Christening'],
|
||||
['DEAT', 'Death'],
|
||||
['EMAIL', 'E-mail'],
|
||||
['EVEN', 'Event'],
|
||||
['OCCU', 'Occupation'],
|
||||
['TITL', 'Title'],
|
||||
['WWW', 'WWW'],
|
||||
@@ -67,6 +68,9 @@ function getData(entry: GedcomEntry) {
|
||||
|
||||
function eventDetails(entry: GedcomEntry, intl: InjectedIntl) {
|
||||
const lines = [];
|
||||
if (entry.data && entry.data.length > 1) {
|
||||
lines.push(<i>{entry.data}</i>);
|
||||
}
|
||||
const date = entry.tree.find((subentry) => subentry.tag === 'DATE');
|
||||
if (date && date.data) {
|
||||
lines.push(translateDate(date.data, intl));
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
"gedcom.CHR": "Chrzest",
|
||||
"gedcom.DEAT": "Śmierć",
|
||||
"gedcom.EMAIL": "E-mail",
|
||||
"gedcom.EVEN": "Wydarzenie",
|
||||
"gedcom.OCCU": "Zawód",
|
||||
"gedcom.TITL": "Tytuł",
|
||||
"gedcom.WWW": "Strona WWW",
|
||||
|
||||
Reference in New Issue
Block a user