* Combining PLACE and ADDRESS fields on Diagrams

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
Bundle
Platinum
Posts: 36
Joined: 24 Aug 2014 17:54
Family Historian: V7
Location: Wiltshire, England

Combining PLACE and ADDRESS fields on Diagrams

Post by Bundle » 14 Feb 2019 13:03

I am in the middle of trying to clean up my messy data, aso that it is consistent. At the moment my places are a mix: some have Place and Address fields entered separately, some have all address info mixed into the Place field. I'm having a good read of previous posts on this before making up my mind to separate or combine all within the place field.
One question: How would I combine Place and Address fields on Diagrams, so that a burial reads something like:
Buried: 15 May 1678 in St Mary's Church, Winchester, Hampshire ?
:(
Nickie

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Combining PLACE and ADDRESS fields on Diagrams

Post by Jane » 14 Feb 2019 13:41

Try

Code: Select all

=ExistsText(%INDI.BURI[1+]%,"Buried:") %INDI.BURI[1+].DATE:COMPACT% in %INDI.BURI[1+].ADDR%, %INDI.BURI[1+].PLAC:TIDY%
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27081
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Combining PLACE and ADDRESS fields on Diagrams

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%,,)
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Bundle
Platinum
Posts: 36
Joined: 24 Aug 2014 17:54
Family Historian: V7
Location: Wiltshire, England

Re: Combining PLACE and ADDRESS fields on Diagrams

Post by Bundle » 14 Feb 2019 15:04

Many thanks Jane and Mike; that will be my homework!

Nickie

Post Reply