Post
by tatewise » 14 Feb 2019 14:13
Essentially, it is just a matter of editing the Diagram Text Scheme for each fact to include the ADDR field between
the DATE field and the PLAC field, similar to Jane's suggestion, but that does not cater for any of the points below.
There are several details to consider...
The PLAC field supports the :TIDY qualifier to remove adjacent empty comma separated columns.
The ADDR field does not, so you would need to involve the =TextPart( ... , TIDY ) function.
Although the prefix in works well for your example, most addresses need the prefix at instead.
e.g. Born: 15 May 1678 at 25, Park Road, Winchester, Hampshire
In virtually all cases the prefix at will be satisfactory.
e.g. Buried: 15 May 1678 at St Mary's Church, Winchester, Hampshire
Also the possibilities of either or both of ADDR and PLAC being missing must be considered.
So usually the best way is to put the prefix at before ADDR and the prefix in before PLAC.
Both prefixes would be conditional on the associated field existing.
e.g. Buried: 15 May 1678 at St Mary's Church in Winchester, Hampshire
(BTW: A similar problem exists if you just concatenate ADDR and PLAC as the comma between is conditional.)
So you could use the =CombineText(...) function.
e.g.
%INDI.BIRT.DATE:COMPACT%=CombineText(" at ",TextPart(%INDI.BIRT.ADDR%,1,0,TIDY),,)=CombineText(" in ",%INDI.BIRT.PLAC:TIDY%,,)