xref: /webtrees/resources/xml/reports/individual_ext_report.xml (revision c9c6f2ec6e88594e58f14a6418e0de5aaa1484bd)
1<?xml version="1.0" encoding="UTF-8" ?>
2<Report>
3	<Title><var var="I18N::translate('Related families')" /></Title>
4	<Description><var var="I18N::translate('A report of the families that are closely related to an individual.')" /></Description>
5	<Input name="pid" type="text" default="" lookup="INDI"><var var="I18N::translate('Individual')"/></Input>
6	<Input name="relatives" type="select" options="child-family=>I18N::translate('Parents and siblings')|spouse-family=>I18N::translate('Spouses and children')|direct-ancestors=>I18N::translate('Direct line ancestors')|ancestors=>I18N::translate('Direct line ancestors and their families')|descendants=>I18N::translate('Descendants')|all=>I18N::translate('All')"><var var="I18N::translate('Choose relatives')"/></Input>
7	<Input name="maxgen" type="select" default="4" options="1=>I18N::number(1)|2=>I18N::number(2)|3=>I18N::number(3)|4=>I18N::number(4)|5=>I18N::number(5)|6=>I18N::number(6)|7=>I18N::number(7)|8=>I18N::number(8)|9=>I18N::number(9)|10=>I18N::number(10)|-1=>I18N::translate('All')"><var var="I18N::translate('Generations')"/></Input>
8	<Input name="sortby" type="select" default="BIRT:DATE" options="BIRT:DATE=>I18N::translate('sort by date of birth')|NAME=>I18N::translate('sort by name')"><var var="I18N::translate('Sort order')"/></Input>
9	<Input name="sources" type="checkbox" default="1"><var var="I18N::translate('Show sources')"/></Input>
10	<Input name="notes" type="checkbox" default="1"><var var="I18N::translate('Show notes')"/></Input>
11	<Input name="photos" type="select" default="highlighted" options="none=>I18N::translate('None')|all=>I18N::translate('All')|highlighted=>I18N::translate('Highlighted image')"><var var="I18N::translate('Show photos')"/></Input>
12	<Input name="pageSize" type="select" options="A4=>I18N::translateContext('paper size','A4')|A3=>I18N::translateContext('paper size', 'A3')|US-Letter=>I18N::translateContext('paper size','Letter')|US-Tabloid=>I18N::translateContext('paper size','Tabloid')"><var var="I18N::translate('Page size')" /></Input>
13	<Input name="colors" type="checkbox" default="1"><var var="I18N::translate('Use colors')"/></Input>
14	<!--
15	<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>I18N::translateContext('font name', 'Arial')|dejavusans=>I18N::translateContext('font name', 'DejaVu')|helvetica=>I18N::translateContext('font name', 'Helvetica')"><var var="I18N::translate('Font')"/></Input>
16	-->
17	<SetVar name="fonts" value="dejavusans" />
18
19	<!-- Header -->
20	<Style name="header" font="$fonts" size="18"/>
21	<!-- Generated by style - required style name by the generator -->
22	<Style name="genby" font="$fonts" size="8"/>
23	<!-- Links to sources - required style name by the generator -->
24	<Style name="footnotenum" font="$fonts" size="6"/>
25	<!-- Source text - FootnoteTexts - required style name by the generator -->
26	<Style name="footnote" font="$fonts" size="8"/>
27	<!-- Section title -->
28	<Style name="title" font="$fonts" size="9" style="B"/>
29	<!-- Page numbers text -->
30	<Style name="pagenum" font="$fonts" size="8"/>
31	<!-- Page Header text -->
32	<Style name="pageheader" font="$fonts" size="14"/>
33	<!-- Standard text -->
34	<Style name="text" font="$fonts" size="9"/>
35	<!-- Facts text -->
36	<Style name="fact" font="$fonts" size="8"/>
37	<!-- Individual names in text boxes -->
38	<Style name="name" font="$fonts" size="10"/>
39	<!-- Date text -->
40	<Style name="date" font="$fonts" size="8"/>
41
42	<SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
43	<!-- Setup colors -->
44	<!-- Section title background color -->
45	<SetVar name="stbgcolor" value="#AAAAAA"/>
46	<SetVar name="mbgcolor" value=""/>
47	<SetVar name="fbgcolor" value=""/>
48	<SetVar name="ugbgcolor" value=""/>
49	<SetVar name="fbbgcolor" value=""/>
50	<SetVar name="tcolor" value=""/>
51	<!-- Use colors -->
52	<if condition="$colors=='on'">
53		<!-- Section title background color -->
54		<SetVar name="stbgcolor" value="#9CA3D4"/>
55		<!-- Male background color -->
56		<SetVar name="mbgcolor" value="#D6E0EA"/>
57		<!-- Female background color -->
58		<SetVar name="fbgcolor" value="#E9DAF1"/>
59		<!-- Unknown gender -->
60		<SetVar name="ugbgcolor" value="#FFFFFF"/>
61		<!-- Fact boxes -->
62		<SetVar name="fbbgcolor" value="#D1D9FF"/>
63		<!-- Text color - black -->
64		<SetVar name="tcolor" value="#000000"/>
65	</if>
66
67	<!-- New Page controller -->
68	<SetVar name="newpage" value="0"/>
69	<!-- New Page for Sources controller if SOUR exist -->
70	<SetVar name="source_exist" value="0"/>
71
72	<!-- set the default widths -->
73	<SetVar name="dwidth" value="200"/>
74	<SetVar name="pwidth" value="436"/>
75	<!-- space height -->
76	<SetVar name="sheight" value="15"/>
77
78	<SetVar name="width" value="433"/>
79	<SetVar name="width1" value="418"/>
80	<SetVar name="width2" value="233"/>
81
82	<!-- change the widths for no pictures -->
83	<if condition="$photos=='none'">
84		<SetVar name="width" value="0"/>
85		<SetVar name="width1" value="0"/>
86		<SetVar name="width2" value="0"/>
87	</if>
88
89	<if condition="$relatives=='child-family'"><SetVar name="explain" value="I18N::translate('Parents and siblings')"/></if>
90	<if condition="$relatives=='spouse-family'"><SetVar name="explain" value="I18N::translate('Spouses and children')"/></if>
91	<if condition="$relatives=='direct-ancestors'"><SetVar name="explain" value="I18N::translate('Direct line ancestors')"/></if>
92	<if condition="$relatives=='ancestors'"><SetVar name="explain" value="I18N::translate('Direct line ancestors and their families')"/></if>
93	<if condition="$relatives=='descendants'"><SetVar name="explain" value="I18N::translate('Descendants')"/></if>
94	<if condition="$relatives=='all'"><SetVar name="explain" value="I18N::translate('All')"/></if>
95
96
97	<Doc pageSize="$pageSize">
98		<Header>
99			<Cell align="center" newline="1" style="header"><GetPersonName id="$pid" /> — <var var="$explain"/></Cell>
100			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')"/> <PageNum/> / <TotalPages/></Cell>
101		</Header>
102
103		<Body>
104			<!-- set the gedcom context for this individual -->
105			<Relatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="$sortby">
106				<if condition="$newpage==1">
107					<NewPage/>
108				</if>
109				<SetVar name="newpage" value="1"/>
110				<SetVar name="sex" value="@SEX"/>
111				<SetVar name="mid" value="@ID"/>
112				<!-- Individual name -->
113				<TextBox newline="1">
114					<Text style="pageheader"><GetPersonName id=""/></Text>
115					<if condition="$sources=='on'">
116						<!-- print level 1 sources -->
117						<RepeatTag tag="SOUR">
118							<Footnote>
119								<Gedcom id="@SOUR">
120									<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
121									«<GedcomValue tag="TITL" />»
122									<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
123								</Gedcom>
124								<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
125								 <GedcomValue tag="SOUR:DATA:TEXT" />
126							</Footnote>
127							<SetVar name="source_exist" value="1"/>
128						</RepeatTag>
129						<!-- print level 2 sources attached to NAME -->
130						<RepeatTag tag="NAME:SOUR">
131							<Footnote>
132								<Gedcom id="@SOUR">
133									<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
134									«<GedcomValue tag="TITL" />»
135									<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
136								</Gedcom>
137								<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
138								 <GedcomValue tag="SOUR:DATA:TEXT" />
139							</Footnote>
140							<SetVar name="source_exist" value="1" />
141						</RepeatTag>
142					</if>
143				</TextBox>
144				<!-- show the persons images -->
145				<if condition="$photos=='all'">
146					<!-- This is an image not a text, so don't use text padding
147					Reset also the last height after all the images has been printed
148					set pagecheck to 0, the image function check is too
149					and "trick" the X-position back to the margin with a newline -->
150					<TextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
151						<RepeatTag tag="OBJE">
152							<Image file="@FILE" width="80" ln="N"/>
153						</RepeatTag>
154					</TextBox>
155				</if>
156				<!-- show the person's Highlighted Image -->
157				<if condition="$photos=='highlighted'">
158					<HighlightedImage left="$pwidth" width="80"/>
159				</if>
160				<!-- Print the individuals facts -->
161				<Cell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><var var="I18N::translate('Facts and events')"/></Cell>
162				<Facts ignore="$ignore" families="1">
163					<TextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
164						<Text color="$tcolor" style="fact"><var var="@fact"/>  </Text>
165						<Text color="$tcolor" style="text"><GedcomValue tag="@fact:DATE"/>  </Text>
166						<!-- look for fact level 2 sources -->
167						<if condition="$sources=='on'">
168							<RepeatTag tag="@fact:SOUR">
169								<Footnote>
170									<Gedcom id="@SOUR">
171										<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
172										«<GedcomValue tag="TITL" />»
173										<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
174									</Gedcom>
175									<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
176									 <GedcomValue tag="SOUR:DATA:TEXT" />
177								</Footnote>
178								<SetVar name="source_exist" value="1" />
179							</RepeatTag>
180						</if>
181					</TextBox>
182					<!-- print a different layout for facts with descriptions -->
183					<if condition="@desc!=''">
184						<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
185							<Text color="$tcolor" style="text">
186								<if condition="@desc=='Y'">
187									<var var="I18N::translate('yes')" />  <GedcomValue tag="@fact:PLAC"/>
188								</if>
189								<if condition="@desc=='N'">
190									<var var="I18N::translate('no')" />  <GedcomValue tag="@fact:PLAC"/>
191								</if>
192								<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC!=''">
193									<GedcomValue tag="@desc"/>  <GedcomValue tag="@fact:PLAC"/>
194								</if>
195								<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC==''">
196									<GedcomValue tag="@desc"/>
197								</if>
198							</Text>
199							<Gedcom id="@ASSO">
200								 <GetPersonName id=""/>
201							</Gedcom>
202							<Gedcom id="@_WTS">
203								<if condition="@SEX=='M'">
204									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Husband')"/></Text>
205								</if>
206								<if condition="@SEX=='F'">
207									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Wife')"/></Text>
208								</if>
209								<if condition="@SEX=='U'">
210									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Spouse')"/></Text>
211								</if>
212								<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
213							</Gedcom>
214						</TextBox>
215					</if>
216					<!-- facts without descriptions -->
217					<if condition="@desc==''">
218						<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
219							<Gedcom id="@_WTS">
220								<if condition="@SEX=='M'">
221									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Husband')"/></Text>
222								</if>
223								<if condition="@SEX=='F'">
224									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Wife')"/></Text>
225								</if>
226								<if condition="@SEX=='U'">
227									<Text color="$tcolor" style="fact">  <var var="I18N::translate('Spouse')"/></Text>
228								</if>
229								<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
230							</Gedcom>
231						</TextBox>
232					</if>
233				</Facts>
234				<!-- print any level 1 notes, but only if exist -->
235				<if condition="($notes=='on') and (@NOTE!='')">
236					<TextBox height="$sheight" newline="1" padding="0" width="15"/>
237					<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Notes')"/></Cell>
238					<RepeatTag tag="NOTE">
239						<Cell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><GedcomValue tag="NOTE"/></Cell>
240					</RepeatTag>
241				</if>
242
243				<!-- print family with parents and siblings -->
244				<TextBox height="$sheight" newline="1" padding="0" width="15"/>
245				<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Family with parents')"/></Cell>
246				<RepeatTag tag="FAMC">
247					<Gedcom id="@FAMC">
248						<!-- father -->
249						<Gedcom id="@HUSB">
250							<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
251								<Text color="$tcolor" style="text"><var var="I18N::translate('Father')"/>  </Text>
252								<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
253								<if condition="$sources=='on'">
254									<!-- print level 1 sources -->
255									<RepeatTag tag="SOUR">
256										<Footnote>
257											<Gedcom id="@SOUR">
258												<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
259												«<GedcomValue tag="TITL" />»
260												<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
261											</Gedcom>
262											<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
263											 <GedcomValue tag="SOUR:DATA:TEXT" />
264										</Footnote>
265										<SetVar name="source_exist" value="1"/>
266									</RepeatTag>
267									<!-- print level 2 sources attached to NAME -->
268									<RepeatTag tag="NAME:SOUR">
269										<Footnote>
270											<Gedcom id="@SOUR">
271												<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
272												«<GedcomValue tag="TITL" />»
273												<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
274											</Gedcom>
275											<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
276											 <GedcomValue tag="SOUR:DATA:TEXT" />
277										</Footnote>
278										<SetVar name="source_exist" value="1" />
279									</RepeatTag>
280								</if>
281								<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
282							</TextBox>
283						</Gedcom>
284						<!-- mother -->
285						<Gedcom id="@WIFE">
286							<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
287								<Text color="$tcolor" style="text"><var var="I18N::translate('Mother')"/>  </Text>
288								<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
289								<if condition="$sources=='on'">
290									<!-- print level 1 sources -->
291									<RepeatTag tag="SOUR">
292										<Footnote>
293											<Gedcom id="@SOUR">
294												<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
295												«<GedcomValue tag="TITL" />»
296												<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
297											</Gedcom>
298											<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
299											 <GedcomValue tag="SOUR:DATA:TEXT" />
300										</Footnote>
301										<SetVar name="source_exist" value="1"/>
302									</RepeatTag>
303									<!-- print level 2 sources attached to NAME -->
304									<RepeatTag tag="NAME:SOUR">
305										<Footnote>
306											<Gedcom id="@SOUR">
307												<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
308												«<GedcomValue tag="TITL" />»
309												<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
310											</Gedcom>
311											<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
312											 <GedcomValue tag="SOUR:DATA:TEXT" />
313										</Footnote>
314										<SetVar name="source_exist" value="1" />
315									</RepeatTag>
316								</if>
317								<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
318							</TextBox>
319						</Gedcom>
320						<!-- siblings -->
321						<RepeatTag tag="CHIL">
322						<if condition="@CHIL!=$mid">
323							<Gedcom id="@CHIL">
324								<!-- Brother -->
325								<if condition="@SEX=='M'">
326									<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
327										<Text color="$tcolor" style="text"><var var="I18N::translate('Brother')"/>  </Text>
328										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
329										<if condition="$sources=='on'">
330											<!-- print level 1 sources -->
331											<RepeatTag tag="SOUR">
332												<Footnote>
333													<Gedcom id="@SOUR">
334														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
335														«<GedcomValue tag="TITL" />»
336														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
337													</Gedcom>
338													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
339													 <GedcomValue tag="SOUR:DATA:TEXT" />
340												</Footnote>
341												<SetVar name="source_exist" value="1"/>
342											</RepeatTag>
343											<!-- print level 2 sources attached to NAME -->
344											<RepeatTag tag="NAME:SOUR">
345												<Footnote>
346													<Gedcom id="@SOUR">
347														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
348														«<GedcomValue tag="TITL" />»
349														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
350													</Gedcom>
351													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
352													 <GedcomValue tag="SOUR:DATA:TEXT" />
353												</Footnote>
354												<SetVar name="source_exist" value="1" />
355											</RepeatTag>
356										</if>
357										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
358									</TextBox>
359								</if>
360								<!-- Sister -->
361								<if condition="@SEX=='F'">
362									<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
363										<Text color="$tcolor" style="text"><var var="I18N::translate('Sister')"/>  </Text>
364										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
365										<if condition="$sources=='on'">
366											<!-- print level 1 sources -->
367											<RepeatTag tag="SOUR">
368												<Footnote>
369													<Gedcom id="@SOUR">
370														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
371														«<GedcomValue tag="TITL" />»
372														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
373													</Gedcom>
374													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
375													 <GedcomValue tag="SOUR:DATA:TEXT" />
376												</Footnote>
377												<SetVar name="source_exist" value="1"/>
378											</RepeatTag>
379											<!-- print level 2 sources attached to NAME -->
380											<RepeatTag tag="NAME:SOUR">
381												<Footnote>
382													<Gedcom id="@SOUR">
383														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
384														«<GedcomValue tag="TITL" />»
385														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
386													</Gedcom>
387													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
388													 <GedcomValue tag="SOUR:DATA:TEXT" />
389												</Footnote>
390												<SetVar name="source_exist" value="1" />
391											</RepeatTag>
392										</if>
393										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
394									</TextBox>
395								</if>
396								<!-- Unknown gender for Sibling -->
397								<if condition="@SEX=='U'">
398									<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
399										<Text color="$tcolor" style="text"><var var="I18N::translate('Gender')"/> <var var="I18N::translateContext('unknown gender', 'Unknown')"/>  </Text>
400										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
401										<if condition="$sources=='on'">
402											<!-- print level 1 sources -->
403											<RepeatTag tag="SOUR">
404												<Footnote>
405													<Gedcom id="@SOUR">
406														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
407														«<GedcomValue tag="TITL" />»
408														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
409													</Gedcom>
410													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
411													 <GedcomValue tag="SOUR:DATA:TEXT" />
412												</Footnote>
413												<SetVar name="source_exist" value="1"/>
414											</RepeatTag>
415											<!-- print level 2 sources attached to NAME -->
416											<RepeatTag tag="NAME:SOUR">
417												<Footnote>
418													<Gedcom id="@SOUR">
419														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
420														«<GedcomValue tag="TITL" />»
421														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
422													</Gedcom>
423													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
424													 <GedcomValue tag="SOUR:DATA:TEXT" />
425												</Footnote>
426												<SetVar name="source_exist" value="1" />
427											</RepeatTag>
428										</if>
429										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
430									</TextBox>
431								</if>
432							</Gedcom>
433						  </if>
434						</RepeatTag>
435					</Gedcom>
436				</RepeatTag>
437				<!-- print family with spouse and children -->
438				<RepeatTag tag="FAMS">
439					<Gedcom id="@FAMS">
440						<!-- print wife if person is husband -->
441						<if condition="$sex=='M'">
442							<TextBox height="$sheight" newline="1" padding="0" width="15"/>
443							<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Family with wife')"/></Cell>
444							<SetVar name="spid" value="@WIFE"/>
445						</if>
446						<!-- print husband if person is wife -->
447						<if condition="$sex=='F'">
448							<TextBox height="$sheight" newline="1" padding="0" width="15"/>
449							<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Family with husband')"/></Cell>
450							<SetVar name="spid" value="@HUSB"/>
451						</if>
452						<!-- print information for spouse -->
453						<Gedcom id="$spid">
454							<!-- husband -->
455							<if condition="@SEX!='F'">
456								<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
457									<Text color="$tcolor" style="text"><var var="I18N::translate('Husband')"/>  </Text>
458									<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
459									<if condition="$sources=='on'">
460										<!-- print level 1 sources -->
461										<RepeatTag tag="SOUR">
462											<Footnote>
463												<Gedcom id="@SOUR">
464													<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
465													«<GedcomValue tag="TITL" />»
466													<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
467												</Gedcom>
468												<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
469												 <GedcomValue tag="SOUR:DATA:TEXT" />
470											</Footnote>
471											<SetVar name="source_exist" value="1"/>
472										</RepeatTag>
473										<!-- print level 2 sources attached to NAME -->
474										<RepeatTag tag="NAME:SOUR">
475											<Footnote>
476												<Gedcom id="@SOUR">
477													<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
478													«<GedcomValue tag="TITL" />»
479													<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
480												</Gedcom>
481												<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
482												 <GedcomValue tag="SOUR:DATA:TEXT" />
483											</Footnote>
484											<SetVar name="source_exist" value="1" />
485										</RepeatTag>
486									</if>
487									<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
488								</TextBox>
489							</if>
490							<!-- wife -->
491							<if condition="@SEX=='F'">
492								<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
493									<Text color="$tcolor" style="text"><var var="I18N::translate('Wife')"/>  </Text>
494									<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
495									<if condition="$sources=='on'">
496										<!-- print level 1 sources -->
497										<RepeatTag tag="SOUR">
498											<Footnote>
499												<Gedcom id="@SOUR">
500													<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
501													«<GedcomValue tag="TITL" />»
502													<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
503												</Gedcom>
504												<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
505												 <GedcomValue tag="SOUR:DATA:TEXT" />
506											</Footnote>
507											<SetVar name="source_exist" value="1"/>
508										</RepeatTag>
509										<!-- print level 2 sources attached to NAME -->
510										<RepeatTag tag="NAME:SOUR">
511											<Footnote>
512												<Gedcom id="@SOUR">
513													<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
514													«<GedcomValue tag="TITL" />»
515													<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
516												</Gedcom>
517												<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
518												 <GedcomValue tag="SOUR:DATA:TEXT" />
519											</Footnote>
520											<SetVar name="source_exist" value="1" />
521										</RepeatTag>
522									</if>
523									<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
524								</TextBox>
525							</if>
526						</Gedcom>
527						<!-- print children with spouse -->
528						<RepeatTag tag="CHIL">
529							<if condition="@CHIL!=$mid">
530								<Gedcom id="@CHIL">
531								<!-- Son -->
532								<if condition="@SEX=='M'">
533									<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
534										<Text color="$tcolor" style="text"><var var="I18N::translate('Son')"/>  </Text>
535										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
536										<if condition="$sources=='on'">
537											<!-- print level 1 sources -->
538											<RepeatTag tag="SOUR">
539												<Footnote>
540													<Gedcom id="@SOUR">
541														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
542														«<GedcomValue tag="TITL" />»
543														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
544													</Gedcom>
545													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
546													 <GedcomValue tag="SOUR:DATA:TEXT" />
547												</Footnote>
548												<SetVar name="source_exist" value="1"/>
549											</RepeatTag>
550											<!-- print level 2 sources attached to NAME -->
551											<RepeatTag tag="NAME:SOUR">
552												<Footnote>
553													<Gedcom id="@SOUR">
554														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
555														«<GedcomValue tag="TITL" />»
556														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
557													</Gedcom>
558													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
559													 <GedcomValue tag="SOUR:DATA:TEXT" />
560												</Footnote>
561												<SetVar name="source_exist" value="1" />
562											</RepeatTag>
563										</if>
564										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
565									</TextBox>
566								</if>
567								<!-- Daughter -->
568								<if condition="@SEX=='F'">
569									<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
570										<Text color="$tcolor" style="text"><var var="I18N::translate('Daughter')"/>  </Text>
571										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
572										<if condition="$sources=='on'">
573											<!-- print level 1 sources -->
574											<RepeatTag tag="SOUR">
575												<Footnote>
576													<Gedcom id="@SOUR">
577														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
578														«<GedcomValue tag="TITL" />»
579														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
580													</Gedcom>
581													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
582													 <GedcomValue tag="SOUR:DATA:TEXT" />
583												</Footnote>
584												<SetVar name="source_exist" value="1"/>
585											</RepeatTag>
586											<!-- print level 2 sources attached to NAME -->
587											<RepeatTag tag="NAME:SOUR">
588												<Footnote>
589													<Gedcom id="@SOUR">
590														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
591														«<GedcomValue tag="TITL" />»
592														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
593													</Gedcom>
594													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
595													 <GedcomValue tag="SOUR:DATA:TEXT" />
596												</Footnote>
597												<SetVar name="source_exist" value="1" />
598											</RepeatTag>
599										</if>
600										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
601									</TextBox>
602								</if>
603								<!-- Unknown gender for Child -->
604								<if condition="@SEX=='U'">
605									<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
606										<Text color="$tcolor" style="text"><var var="I18N::translate('Gender')"/> <var var="I18N::translateContext('unknown gender', 'Unknown')"/>  </Text>
607										<Text color="$tcolor" style="name"><GetPersonName id=""/></Text>
608										<if condition="$sources=='on'">
609											<!-- print level 1 sources -->
610											<RepeatTag tag="SOUR">
611												<Footnote>
612													<Gedcom id="@SOUR">
613														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
614														«<GedcomValue tag="TITL" />»
615														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
616													</Gedcom>
617													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
618													 <GedcomValue tag="SOUR:DATA:TEXT" />
619												</Footnote>
620												<SetVar name="source_exist" value="1"/>
621											</RepeatTag>
622											<!-- print level 2 sources attached to NAME -->
623											<RepeatTag tag="NAME:SOUR">
624												<Footnote>
625													<Gedcom id="@SOUR">
626														<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
627														«<GedcomValue tag="TITL" />»
628														<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
629													</Gedcom>
630													<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
631													 <GedcomValue tag="SOUR:DATA:TEXT" />
632												</Footnote>
633												<SetVar name="source_exist" value="1" />
634											</RepeatTag>
635										</if>
636										<Text color="$tcolor" style="text">  (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
637									</TextBox>
638								</if>
639							</Gedcom>
640						  </if>
641						</RepeatTag>
642					</Gedcom>
643				</RepeatTag>
644			</Relatives>
645		</Body>
646		<!-- if the sources were on, print the source citations as footnotes -->
647		<if condition="$source_exist==1">
648			<!-- add a new page -->
649			<NewPage/>
650				<TextBox newline="1">
651					<Text style="pageheader"><var var="I18N::translate('Sources')"/><br /><br /></Text>
652					<FootnoteTexts/>
653				</TextBox>
654		</if>
655		<Footer>
656			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
657		</Footer>
658	</Doc>
659</Report>
660