Page 1 of 1

Source Records - Citations

Posted: 20 Dec 2020 17:22
by Kingy
Hi

I am playing with Expressions and really enjoying seeing what they can do, but have hit a small issue.

Say I am setting an Box icon for Birth

=ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth",STD) and %INDI.BIRT.SOUR>_TYPE% both work fine, but only if the citation is at the top of the list, so if multiple citations under Birth Sources then it misses some.

Is there a way to get it to check all citations under Birth ?

Hope that is clear.

Thanks

Re: Source Records - Citations

Posted: 20 Dec 2020 17:35
by tatewise
Yes, that is a common problem.

One answer is to always move your most appropriate Citation to the top of the list.
i.e. the one you know the Box Conditions are looking for.
So if you have a Birth Certificate move that to the top above perhaps GRO Index or Census citations.
Use the small back arrows in the top right corner of the yellow Sources For pane.
That also means that in Reports the most appropriate Source Citation is listed first.

Otherwise, you have to extend your Expression to include multiple instances such as:
INDI.BIRT.SOUR[2]> and %INDI.BIRT.SOUR[3]> and %INDI.BIRT.SOUR[4]> and so on...
OR add multiple Condition Expressions with one instance in each.

You will discover that multiple instances of items becomes a recurrent issue.
e.g. Multiple Occupations INDI.OCCU[2] , INDI.OCCU[3] or multiple Marriages FAM.MARR[2] , FAM.MARR[3]

In Diagrams there is looping index [1+] that loops through multiple instances.
It has been suggested to Calico Pie to offer the same elsewhere.

Re: Source Records - Citations

Posted: 20 Dec 2020 17:47
by Kingy
Thanks and understand.

I did try the number way but it still didn't work, but I will try it again.

Regards

Re: Source Records - Citations

Posted: 20 Dec 2020 18:05
by tatewise
If it still won't work for you then post your Expressions here as you did earlier.

However, if you have as many Citations for Birth as I do then the index number may need to get quite large.
Sometimes I have a Certificate, GRO Index, every Census from 1841 to 1911 & 1939 Register, which is 11 Citations!

That is why pushing the Certificate to the top is the easiest solution.

Re: Source Records - Citations

Posted: 20 Dec 2020 18:23
by wulliam
I'll just add a link to a post in which Mike helped me with the same thing: https://www.fhug.org.uk/forum/viewtopic ... 44#p101044

Re: Source Records - Citations

Posted: 20 Dec 2020 18:31
by Mark1834
It’s a weakness of the way FH organises its data that often confuses users who are used to a more conventional database structure designed to deal with multiple instances without this complexity.

If I have a primary source for a fact that is beyond reasonable doubt (say for example a birth certificate that clearly relates to that individual), my approach is not to cite less reliable sources such as a census. As well as the complexity of reporting them all, having up to a dozen superscripts against that data point in a report is hardly elegant!

No “right” or “wrong” way to do it - it depends what your personal priorities are.

Re: Source Records - Citations

Posted: 21 Dec 2020 07:17
by Kingy
Thanks for all the help, the expression below works well for me and checking 9 citations should be plenty in most cases but if not I will move to top as suggested. Expression posted below in case it helps others.

Paul

=IsTrue(ContainsText(%INDI.BIRT.SOUR[1]>TITL%,"Birth",STD )or ContainsText(%INDI.BIRT.SOUR[2]>TITL%,"Birth",STD) or ContainsText(%INDI.BIRT.SOUR[3]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[4]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[5]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[6]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[7]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[8]>TITL%,"Birth",STD)or ContainsText(%INDI.BIRT.SOUR[9]>TITL%,"Birth",STD))