Person: add aliases for field names

This commit is contained in:
Doug Blank 2016-05-10 12:26:46 -04:00
parent e76a27ddd3
commit 9424539930

View File

@ -217,6 +217,8 @@ class Person(CitationBase, NoteBase, AttributeBase, MediaBase,
"given": "primary_name.first_name",
"surname": "primary_name.surname_list.0.surname",
"surnames": "primary_name.surname_list.surname",
"event.place": "event_ref_list.ref.place.name.value",
"event.year": "event_ref_list.ref.date.year",
}
@classmethod