Marriage cert icon but not index icon in charts
Posted: 16 Jan 2022 16:42
I want to display two chart icons for the presence of (1) a marriage certificate and (2) other non-certificate marriage sources but, where a certificate is present, to suppress the icon for other sources. I'd like have a separate icon for each marriage of an individual too.
I have successfully done this for other events, e.g. birth by using the following expressions to apply a Birth cert icon or a Birth record icon:
=ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth cert",STD)
and
=IsTrue(ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth",STD) and Not(ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth cert",STD)))
I can successfully display a Marriage cert icon for first and second marriages using:
=ContainsText(%INDI.FAMS>MARR.SOUR>TITL%,"Marriage cert",STD)
=ContainsText(%INDI.FAMS[2]>MARR.SOUR>TITL%,"Marriage cert",STD)
and also an icon for any marriage source using:
=ContainsText(%INDI.FAMS>MARR.SOUR>TITL%,"Marriage",STD)
but have so far failed in suppressing the non-cert source icon when a certificate is present using:
=IsTrue(ContainsText(%INDI.FAMS>MARR.SOUR>TITL%”Marriage”,STD) and Not(ContainsText(%INDI.FAMS>MARR.SOUR>TITL%”Marriage cert”,STD))))
or
=IsTrue(ContainsText(%CUR~FAMS>MARR.SOUR>TITL%”Marriage”,STD) and Not(ContainsText(%CUR~FAMS>MARR.SOUR>TITL%”Marriage cert”,STD))))
I'm not sure where I am going wrong and am aware that marriages are a bit more complicated. I know I could use source type but at the moment my source types do not differentiate between types of marriage.
Thanks, Charlie
I have successfully done this for other events, e.g. birth by using the following expressions to apply a Birth cert icon or a Birth record icon:
=ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth cert",STD)
and
=IsTrue(ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth",STD) and Not(ContainsText(%INDI.BIRT.SOUR>TITL%,"Birth cert",STD)))
I can successfully display a Marriage cert icon for first and second marriages using:
=ContainsText(%INDI.FAMS>MARR.SOUR>TITL%,"Marriage cert",STD)
=ContainsText(%INDI.FAMS[2]>MARR.SOUR>TITL%,"Marriage cert",STD)
and also an icon for any marriage source using:
=ContainsText(%INDI.FAMS>MARR.SOUR>TITL%,"Marriage",STD)
but have so far failed in suppressing the non-cert source icon when a certificate is present using:
=IsTrue(ContainsText(%INDI.FAMS>MARR.SOUR>TITL%”Marriage”,STD) and Not(ContainsText(%INDI.FAMS>MARR.SOUR>TITL%”Marriage cert”,STD))))
or
=IsTrue(ContainsText(%CUR~FAMS>MARR.SOUR>TITL%”Marriage”,STD) and Not(ContainsText(%CUR~FAMS>MARR.SOUR>TITL%”Marriage cert”,STD))))
I'm not sure where I am going wrong and am aware that marriages are a bit more complicated. I know I could use source type but at the moment my source types do not differentiate between types of marriage.
Thanks, Charlie