summaryrefslogtreecommitdiff
path: root/modules/individual_ext_report/report.xml
blob: 5c9b68a1167e1f6c9a8ca8ec2fe7f5df2d564801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<?xml version="1.0" encoding="UTF-8"?>
<PGVReport>
<!-- $Id$ -->
	<PGVRTitle><PGVRvar var="i18n::translate('Close Relatives Report')" /></PGVRTitle>
	<PGVRDescription>Prints an individual record report showing close relatives</PGVRDescription>
	<PGVRInput name="pid" type="text" default="" lookup="INDI"><PGVRvar var="i18n::translate('Enter Individual ID')"/></PGVRInput>
	<PGVRInput 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')"><PGVRvar var="i18n::translate('Choose relatives')"/></PGVRInput>
	<PGVRInput name="maxgen" type="select" default="4" options="*=>*|1=>1|2=>2|3=>3|4=>4|5=>5|6=>6|7=>7|8=>8|9=>9|10=>10"><PGVRvar var="i18n::translate('Generations')"/></PGVRInput>
	<PGVRInput name="sortby" type="select" default="BIRT:DATE" options="none=>i18n::translate('None')|BIRT:DATE=>i18n::translate('Date of birth')|NAME=>i18n::translate('Name')"><PGVRvar var="i18n::translate('Sort by')"/></PGVRInput>
	<PGVRInput name="sources" type="checkbox" default="0"><PGVRvar var="i18n::translate('Show sources?')"/></PGVRInput>
	<PGVRInput name="notes" type="checkbox" default="1"><PGVRvar var="i18n::translate('Show notes?')"/></PGVRInput>
	<PGVRInput name="photos" type="select" default="highlighted" options="none=>i18n::translate('None')|all=>i18n::translate('All')|highlighted=>i18n::translate('Highlighted image')"><PGVRvar var="i18n::translate('Show photos?')"/></PGVRInput>
	<PGVRInput name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><PGVRvar var="i18n::translate('Page size')" /></PGVRInput>
	<PGVRInput name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><PGVRvar var="i18n::translate('Font')"/></PGVRInput>
	<PGVRInput name="colors" type="checkbox" default="1"><PGVRvar var="i18n::translate('Use colors')"/></PGVRInput>

	<!-- Header -->
	<PGVRStyle name="header" font="$fonts" size="18"/>
	<!-- Generated by style - required style name by the generator -->
	<PGVRStyle name="genby" font="$fonts" size="8"/>
	<!-- Links to sources - required style name by the generator -->
	<PGVRStyle name="footnotenum" font="$fonts" size="6"/>
	<!-- Source text - PGVRFootnoteTexts - required style name by the generator -->
	<PGVRStyle name="footnote" font="$fonts" size="8"/>
	<!-- Section title -->
	<PGVRStyle name="title" font="$fonts" size="9" style="B"/>
	<!-- Page numbers text -->
	<PGVRStyle name="pagenum" font="$fonts" size="8"/>
	<!-- Page Header text -->
	<PGVRStyle name="pageheader" font="$fonts" size="14"/>
	<!-- Standard text -->
	<PGVRStyle name="text" font="$fonts" size="9"/>
	<!-- Facts text -->
	<PGVRStyle name="fact" font="$fonts" size="8"/>
	<!-- Individual names in text boxes -->
	<PGVRStyle name="name" font="$fonts" size="10"/>
	<!-- Date text -->
	<PGVRStyle name="date" font="$fonts" size="8"/>

	<PGVRSetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
	<!-- Setup colors -->
	<!-- Section title background color -->
	<PGVRSetVar name="stbgcolor" value="#AAAAAA"/>
	<PGVRSetVar name="mbgcolor" value=""/>
	<PGVRSetVar name="fbgcolor" value=""/>
	<PGVRSetVar name="ugbgcolor" value=""/>
	<PGVRSetVar name="fbbgcolor" value=""/>
	<PGVRSetVar name="tcolor" value=""/>
	<!-- Use colors -->
	<PGVRif condition="$colors==1">
		<!-- Section title background color -->
		<PGVRSetVar name="stbgcolor" value="#9CA3D4"/>
		<!-- Male background color -->
		<PGVRSetVar name="mbgcolor" value="#D6E0EA"/>
		<!-- Female background color -->
		<PGVRSetVar name="fbgcolor" value="#E9DAF1"/>
		<!-- Unknown gender -->
		<PGVRSetVar name="ugbgcolor" value="#FFFFFF"/>
		<!-- Fact boxes -->
		<PGVRSetVar name="fbbgcolor" value="#D1D9FF"/>
		<!-- Text color - black -->
		<PGVRSetVar name="tcolor" value="#000000"/>
	</PGVRif>
	
	<!-- New Page controller -->
	<PGVRSetVar name="newpage" value="0"/>
	<!-- New Page for Sources controller if SOUR exist -->
	<PGVRSetVar name="source_exist" value="0"/>

	<!-- set the default widths -->
	<PGVRSetVar name="dwidth" value="200"/>
	<PGVRSetVar name="pwidth" value="436"/>
	<!-- space height -->
	<PGVRSetVar name="sheight" value="15"/>

	<PGVRSetVar name="width" value="433"/>
	<PGVRSetVar name="width1" value="418"/>
	<PGVRSetVar name="width2" value="233"/>

	<!-- change the widths for no pictures -->
	<PGVRif condition="$photos=='none'">
		<PGVRSetVar name="width" value="0"/>
		<PGVRSetVar name="width1" value="0"/>
		<PGVRSetVar name="width2" value="0"/>
	</PGVRif>

	<PGVRDoc pageSize="$pageSize">
		<PGVRHeader>
			<PGVRCell align="center" newline="1" style="header"><PGVRvar var="i18n::translate('Close Relatives Report')"/></PGVRCell>
			<PGVRCell align="rightrtl" newline="1" style="pagenum"><PGVRvar var="i18n::translate('Page')"/> <PGVRPageNum/> / <PGVRTotalPages/></PGVRCell>
		</PGVRHeader>

		<PGVRBody>
			<!-- set the gedcom context for this individual -->
			<PGVRRelatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="$sortby">
				<PGVRif condition="$newpage==1">
					<PGVRNewPage/>
				</PGVRif>
				<PGVRSetVar name="newpage" value="1"/>
				<PGVRSetVar name="sex" value="@SEX"/>
				<PGVRSetVar name="mid" value="@ID"/>
				<!-- Individual name with LEVEL 1 source-->
				<PGVRTextBox newline="1">
					<PGVRText style="pageheader"><PGVRGetPersonName id=""/> </PGVRText>
					<PGVRif condition="($sources==1) and (@SOUR!='')">
						<PGVRRepeatTag tag="SOUR">
							<PGVRSetVar name="source_exist" value="1"/>
							<PGVRFootnote>
								<PGVRGedcom id="@SOUR">
									<PGVRGedcomValue tag="TITL" />
								</PGVRGedcom>
								<PGVRif condition="@PAGE!=''">: </PGVRif>
								<PGVRGedcomValue tag="SOUR:PAGE"/> <PGVRGedcomValue tag="SOUR:DATA:TEXT"/>
							</PGVRFootnote>
						</PGVRRepeatTag>
					</PGVRif>
				</PGVRTextBox>
				<!-- show the persons images -->
				<PGVRif condition="$photos=='all'">
					<!-- This is an image not a text, so don't use text padding
					Reset also the last height after all the images has been printed
					set pagecheck to 0, the image function check is too
					and "trick" the X-position back to the margin with a newline -->
					<PGVRTextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
						<PGVRRepeatTag tag="OBJE">
							<PGVRImage file="@FILE" width="80" ln="N"/>
						</PGVRRepeatTag>
					</PGVRTextBox>
				</PGVRif>
				<!-- show the person's Highlighted Image -->
				<PGVRif condition="$photos=='highlighted'">
					<PGVRHighlightedImage left="$pwidth" width="80"/>
				</PGVRif>
				<!-- Print the individuals facts -->
				<PGVRCell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><PGVRvar var="i18n::translate('Personal Facts and Details')"/></PGVRCell>
				<PGVRFacts ignore="$ignore" families="1">
					<PGVRTextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
						<PGVRText color="$tcolor" style="fact"><PGVRvar var="i18n::translate('@fact')"/>  </PGVRText>
						<PGVRText color="$tcolor" style="text"><PGVRGedcomValue tag="@fact:DATE"/>  </PGVRText>
						<!-- look for fact level 2 sources -->
						<PGVRif condition="($sources==1) and (@SOUR!='')">
							<PGVRRepeatTag tag="@fact:SOUR">
								<PGVRSetVar name="source_exist" value="1"/>
								<PGVRFootnote>
									<PGVRGedcom id="@SOUR">
										<PGVRGedcomValue tag="TITL"/>
									</PGVRGedcom>
									<!-- Source text to footnotes -->
									<PGVRif condition="@PAGE!=''">: </PGVRif>
									<!-- Additional Details of the source -->
									<PGVRGedcomValue tag="SOUR:PAGE"/> <PGVRGedcomValue tag="SOUR:DATA:TEXT"/>
								</PGVRFootnote>
							</PGVRRepeatTag>
						</PGVRif>
					</PGVRTextBox>
					<!-- print a different layout for facts with descriptions -->
					<PGVRif condition="@desc!=''">
						<PGVRTextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<PGVRText color="$tcolor" style="text">
								<PGVRGedcomValue tag="@desc"/>  <PGVRGedcomValue tag="@fact:PLAC"/>
							</PGVRText>
							<PGVRGedcom id="@_PGVS">
								<PGVRif condition="@SEX=='M'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="i18n::translate('Husband')"/></PGVRText>
								</PGVRif>
								<PGVRif condition="@SEX=='F'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="i18n::translate('Wife')"/></PGVRText>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> <PGVRGetPersonName id=""/></PGVRText>
							</PGVRGedcom>
						</PGVRTextBox>
					</PGVRif>
					<!-- facts without descriptions -->
					<PGVRif condition="@desc==''">
						<PGVRTextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<PGVRText color="$tcolor" style="fact"><PGVRvar var="i18n::translate('Place')"/>  </PGVRText>
							<PGVRText color="$tcolor" style="text">
								<PGVRGedcomValue tag="@fact:PLAC"/>
								<!-- Print only when exist to reduce some spaces in the text, might avoid a line break -->
								<PGVRif condition="@fact:TEMP!=''">  <PGVRGedcomValue tag="@fact:TEMP"/></PGVRif>
							</PGVRText>
							<PGVRGedcom id="@_PGVS">
								<PGVRif condition="@SEX=='M'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="i18n::translate('Husband')"/></PGVRText>
								</PGVRif>
								<PGVRif condition="@SEX=='F'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="i18n::translate('Wife')"/></PGVRText>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> <PGVRGetPersonName id=""/></PGVRText>
							</PGVRGedcom>
						</PGVRTextBox>
					</PGVRif>
				</PGVRFacts>
				<!-- print any level 1 notes, but only if exist -->
				<PGVRif condition="($notes==1) and (@NOTE!='')">
					<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
					<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="i18n::translate('Notes')"/></PGVRCell>
					<PGVRRepeatTag tag="NOTE">
						<PGVRCell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><PGVRGedcomValue tag="NOTE"/></PGVRCell>
					</PGVRRepeatTag>
				</PGVRif>

				<!-- print family with parents and siblings -->
				<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
				<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="i18n::translate('Family with Parents')"/></PGVRCell>
				<PGVRRepeatTag tag="FAMC">
					<PGVRGedcom id="@FAMC">
						<!-- father -->
						<PGVRGedcom id="@HUSB">
							<PGVRTextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
								<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Father')"/>  </PGVRText>
								<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
								<PGVRif condition="($sources==1) and (@SOUR!='')">
									<PGVRRepeatTag tag="SOUR">
										<PGVRSetVar name="source_exist" value="1"/>
										<PGVRFootnote>
											<PGVRGedcom id="@SOUR">
												<PGVRGedcomValue tag="TITL"/>
											</PGVRGedcom>
											<PGVRif condition="@PAGE!=''">: </PGVRif>
											<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
										</PGVRFootnote>
									</PGVRRepeatTag>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
							</PGVRTextBox>
						</PGVRGedcom>
						<!-- mother -->
						<PGVRGedcom id="@WIFE">
							<PGVRTextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
								<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Mother')"/>  </PGVRText>
								<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
								<PGVRif condition="($sources==1) and (@SOUR!='')">
									<PGVRRepeatTag tag="SOUR">
										<PGVRSetVar name="source_exist" value="1"/>
										<PGVRFootnote>
											<PGVRGedcom id="@SOUR">
												<PGVRGedcomValue tag="TITL"/>
											</PGVRGedcom>
											<PGVRif condition="@PAGE!=''">: </PGVRif>
											<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
										</PGVRFootnote>
									</PGVRRepeatTag>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
							</PGVRTextBox>
						</PGVRGedcom>
						<!-- siblings -->
						<PGVRRepeatTag tag="CHIL">
						<PGVRif condition="@CHIL!=$mid">
							<PGVRGedcom id="@CHIL">
								<!-- Brother -->
								<PGVRif condition="@SEX=='M'">
									<PGVRTextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Brother')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Sister -->
								<PGVRif condition="@SEX=='F'">
									<PGVRTextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Sister')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Unknown gender for Sibling -->
								<PGVRif condition="(@SEX=='U') or (@SEX=='')">
									<PGVRTextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Gender')"/> <PGVRvar var="i18n::translate('Unknown')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
							</PGVRGedcom>
						  </PGVRif>
						</PGVRRepeatTag>
					</PGVRGedcom>
				</PGVRRepeatTag>
				<!-- print family with spouse and children -->
				<PGVRRepeatTag tag="FAMS">
					<PGVRGedcom id="@FAMS">
						<!-- print wife if person is husband -->
						<PGVRif condition="$sex=='M'">
							<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
							<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="i18n::translate('Family with wife')"/></PGVRCell>
							<PGVRSetVar name="spid" value="@WIFE"/>
						</PGVRif>
						<!-- print husband if person is wife -->
						<PGVRif condition="$sex=='F'">
							<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
							<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="i18n::translate('Family with husband')"/></PGVRCell>
							<PGVRSetVar name="spid" value="@HUSB"/>
						</PGVRif>
						<!-- print information for spouse -->
						<PGVRGedcom id="$spid">
							<!-- husband -->
							<PGVRif condition="@SEX=='M'">
								<PGVRTextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
									<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Husband')"/>  </PGVRText>
									<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
									<PGVRif condition="($sources==1) and (@SOUR!='')">
										<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
											<PGVRFootnote>
												<PGVRGedcom id="@SOUR">
													<PGVRGedcomValue tag="TITL"/>
												</PGVRGedcom>
												<PGVRif condition="@PAGE!=''">: </PGVRif>
												<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
											</PGVRFootnote>
										</PGVRRepeatTag>
									</PGVRif>
									<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
								</PGVRTextBox>
							</PGVRif>
							<!-- wife -->
							<PGVRif condition="@SEX=='F'">
								<PGVRTextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
									<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Wife')"/>  </PGVRText>
									<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
									<PGVRif condition="($sources==1) and (@SOUR!='')">
										<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
											<PGVRFootnote>
												<PGVRGedcom id="@SOUR">
													<PGVRGedcomValue tag="TITL"/>
												</PGVRGedcom>
												<PGVRif condition="@PAGE!=''">: </PGVRif>
												<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
											</PGVRFootnote>
										</PGVRRepeatTag>
									</PGVRif>
									<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
								</PGVRTextBox>
							</PGVRif>
						</PGVRGedcom>
						<!-- print children with spouse -->
						<PGVRRepeatTag tag="CHIL">
							<PGVRif condition="@CHIL!=$mid">
								<PGVRGedcom id="@CHIL">
								<!-- Son -->
								<PGVRif condition="@SEX=='M'">
									<PGVRTextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Son')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Daughter -->
								<PGVRif condition="@SEX=='F'">
									<PGVRTextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Daughter')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Unknown gender for Child -->
								<PGVRif condition="(@SEX=='U') or (@SEX=='')">
									<PGVRTextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="i18n::translate('Gender')"/> <PGVRvar var="i18n::translate('Unknown')"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="i18n::translate('Birth')"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="i18n::translate('Death')"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
							</PGVRGedcom>
						  </PGVRif>
						</PGVRRepeatTag>
					</PGVRGedcom>
				</PGVRRepeatTag>
			</PGVRRelatives>
		</PGVRBody>
		<!-- print the sources -->
		<PGVRif condition="($sources==1) and ($source_exist==1)">
			<!-- add a new page -->
			<PGVRNewPage/>
			<PGVRBody>
				<PGVRTextBox newline="1">
					<PGVRText style="pageheader"><PGVRvar var="i18n::translate('Sources')"/><br /><br /></PGVRText>
					<PGVRFootnoteTexts/>
				</PGVRTextBox>
			</PGVRBody>
		</PGVRif>
		<PGVRFooter>
			<PGVRCell align="rightrtl" newline="1" style="date"><PGVRNow/></PGVRCell>
		</PGVRFooter>
	</PGVRDoc>
</PGVReport>