Before submitting a feature request, or attempting to hack the code myself, I thought it best to ask why something is the way it currently is.
When I import a GEDCOM file from WikiTree (for example), it has this kind of data for each person:
1 REFN 12345678
2 TYPE wikitree.user_id
1 REFN 87654321
2 TYPE wikitree.page_id
1 REFN 40
2 TYPE wikitree.privacy
Gramps stores this as three attributes of the same type, “REFN”, with the values 12345678, 87654321, and 40, respectively. To each attribute, it attaches a note of type “REFN_TYPE”, with text “wikitree.user_id”, “wikitree.page_id”, and “wikitree.privacy” respectively.
Wouldn’t it be more useful to create three attributes having distinct types “wikitree.user_id”, “wikitree.page_id”, and “wikitree.privacy”, and do away with the notes? What are the reasons for the current design?
I’m not very familiar with GEDCOM, so maybe there are other uses of REFN and TYPE where the current design makes more sense. But in that case, should there be an option to do it one way or the other?