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
|
<?xml version="1.0" encoding="UTF-8" ?>
<Report>
<Title><var var="I18N::translate('Source')" /></Title>
<Description><var var="I18N::translate('A report of facts which are supported by a given source.')" /></Description>
<Input name="sid" lookup="SOUR" default="" type="text"><var var="I18N::translate('Find a source')" /></Input>
<Input name="stype" type="select" default="facts" options="facts=>I18N::translate('facts')|records=>I18N::translate('records')"><var var="I18N::translate('Source type')" /></Input>
<Input name="sortby" type="select" default="BIRT:DATE" options="NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')"><var var="I18N::translate('Sort order')" /></Input>
<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>
<!--
<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>
-->
<SetVar name="fonts" value="dejavusans" />
<!-- Header -->
<Style name="header" font="$fonts" size="18" style="b" />
<!-- Source Title -->
<Style name="header2" font="$fonts" size="14" style="b" />
<!-- Name of the List Type. INDI or FAM -->
<Style name="listtype" font="$fonts" size="12" style="b" />
<!-- Page numbers text -->
<Style name="pagenum" font="$fonts" size="8" />
<!-- Generated by style - required style name by the generator -->
<Style name="genby" font="$fonts" size="8" />
<!-- Date Text - CSS Style name -->
<Style name="date" font="$fonts" size="8"/>
<!-- Column list labels - CSS Style name -->
<Style name="list_label" font="$fonts" size="9" style="b"/>
<!-- List values - CSS Style name -->
<Style name="list_value" font="$fonts" size="8"/>
<SetVar name="nameindi" value="200" />
<SetVar name="datebirth" value="120" />
<SetVar name="namefam" value="$nameindi + $datebirth" />
<SetVar name="fact" value="100" />
<SetVar name="dateevent" value="110" />
<SetVar name="vspace" value="5" />
<SetVar name="printedsource" value="0" />
<SetVar name="moresourcespaceindi" value="$nameindi + $datebirth" />
<SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
<Doc pageSize="$pageSize" orientation="landscape">
<Header>
<Cell align="center" newline="1" style="header"><var var="I18N::translate('Source')" /></Cell>
<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
<!-- Source Title -->
<Gedcom id="$sid">
<Cell align="center" newline="1" style="header2"><GedcomValue tag="TITL" /></Cell>
</Gedcom>
</Header>
<Body>
<if condition="$stype=='facts'">
<!-- List type -->
<Cell align="center" newline="1" style="listtype"><var var="I18N::translate('Individuals')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Individual Name -->
<SetVar name="fill" value="" />
<if condition="$sortby=='NAME'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="list_label" width="$nameindi"><var var="I18N::translate('Name')" /></Cell>
<!-- Birth date -->
<SetVar name="fill" value="" />
<if condition="$sortby=='BIRT:DATE'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="list_label" width="$datebirth"><var var="I18N::translate('Date of birth')" /></Cell>
<!-- Name of the fact that contains the source -->
<Cell border="1" style="list_label" width="$fact"><var var="I18N::translate('Event')" /></Cell>
<!-- Date of the fact -->
<Cell border="1" style="list_label" width="$dateevent"><var var="I18N::translate('Date')" /></Cell>
<!-- Detailed source text -->
<Cell border="1" newline="1" style="list_label"><var var="I18N::translate('Citation details')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Individual List -->
<List list="individual" filter1=":SOUR CONTAINS @$sid@" sortby="$sortby">
<SetVar name="moresource" value="0" />
<SetVar name="printsource" value="0" />
<!-- Printed List counter -->
<SetVar name="printedsource" value="$printedsource + 1" />
<!-- Individual Name -->
<Cell style="list_value" width="$nameindi"><GetPersonName id="" /></Cell>
<!-- Birth date -->
<Cell style="list_value" width="$datebirth"><GedcomValue tag="BIRT:DATE" /></Cell>
<Facts ignore="$ignore">
<SetVar name="printfact" value="0" />
<RepeatTag tag="@fact:SOUR">
<Gedcom id="@SOUR">
<if condition="@ID==$sid">
<SetVar name="printfact" value="1" />
</if>
</Gedcom>
</RepeatTag>
<if condition="$printfact==1">
<SetVar name="printsource" value="0" />
<!-- Indent the fact line if more then one fact has source -->
<if condition="$moresource==1">
<Cell style="list_value" width="$moresourcespaceindi"> </Cell>
</if>
<!-- Name of the fact that contains the source -->
<Cell style="list_value" width="$fact"><var var="@fact" /></Cell>
<!-- Date of the fact -->
<Cell style="list_value" width="$dateevent"><GedcomValue tag="@fact:DATE"/></Cell>
<!-- Detailed source text -->
<Cell style="list_value" newline="1">
<SetVar name="repeatedSource" value="0" />
<RepeatTag tag="@fact:SOUR">
<Gedcom id="@SOUR">
<if condition="@ID==$sid">
<SetVar name="printsource" value="1" />
</if>
</Gedcom>
<if condition="$printsource==1">
<if condition="$repeatedSource==1">; </if>
<if condition="@SOUR:PAGE!='' or @SOUR:DATA:TEXT!=''">
<SetVar name="repeatedSource" value="1" />
</if>
<GedcomValue tag="SOUR:PAGE"/>
<if condition="@SOUR:DATA:TEXT!=''">
<if condition="@SOUR:PAGE!=''">
<br />
</if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</if>
<SetVar name="printsource" value="0" />
</if>
</RepeatTag>
</Cell>
<SetVar name="moresource" value="1" />
</if>
<SetVar name="printfact" value="0" />
</Facts>
</List>
<!-- Print the list counter -->
<if condition="$printedsource==0">
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total individuals')"/>: 0</Cell>
</if>
<if condition="$printedsource > 0">
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total individuals')"/>: <var var="printedsource" /></Cell>
</if>
<NewPage />
<!-- Family List -->
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="center" newline="1" style="listtype"><var var="I18N::translate('Families')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Family Name -->
<Cell border="1" style="list_label" width="$namefam"><var var="I18N::translate('Name')" /></Cell>
<!-- Name of the fact that contains the source -->
<Cell border="1" style="list_label" width="$fact"><var var="I18N::translate('Event')" /></Cell>
<!-- Date of the fact -->
<Cell bgcolor="#AAAAAA" border="1" style="list_label" width="$dateevent"><var var="I18N::translate('Date')" /></Cell>
<!-- Detailed source text -->
<Cell border="1" newline="1" style="list_label"><var var="I18N::translate('Citation details')" /></Cell>
<!-- Family List -->
<TextBox height="$vspace" newline="1" padding="0"/>
<SetVar name="printedsource" value="0" />
<List list="family" filter1=":SOUR CONTAINS @$sid@" sortby="MARR:DATE">
<SetVar name="moresource" value="0" />
<SetVar name="printsource" value="0" />
<!-- Printed List counter -->
<SetVar name="printedsource" value="$printedsource + 1" />
<!-- Family Name -->
<Cell style="list_value" width="$namefam"><GetPersonName id="" /></Cell>
<Facts ignore="$ignore">
<SetVar name="printfact" value="0" />
<RepeatTag tag="@fact:SOUR">
<Gedcom id="@SOUR">
<if condition="@ID==$sid">
<SetVar name="printfact" value="1" />
</if>
</Gedcom>
</RepeatTag>
<if condition="$printfact==1">
<SetVar name="printsource" value="0" />
<!-- Indent the fact line if more then one fact has source -->
<if condition="$moresource==1">
<Cell style="list_value" width="$namefam"> </Cell>
</if>
<!-- Name of the fact that contains the source -->
<Cell style="list_value" width="$fact">
<if condition="@fact=='MARR'">
<!-- Print different type of marriages -->
<if condition="@MARR:TYPE==''">
<var var="@fact" />
</if>
<if condition="@MARR:TYPE=='Religious'">
<var var="I18N::translate('Religious marriage')" />
</if>
<if condition="@MARR:TYPE=='Civil'">
<var var="I18N::translate('Civil marriage')" />
</if>
<if condition="@MARR:TYPE=='Partners'">
<var var="I18N::translate('Registered partnership')" />
</if>
</if>
<if condition="@fact!='MARR'">
<var var="@fact" />
</if>
</Cell>
<!-- Date of the fact -->
<Cell style="list_value" width="$dateevent"><GedcomValue tag="@fact:DATE"/></Cell>
<!-- Detailed source text -->
<Cell style="list_value" newline="1">
<SetVar name="repeatedSource" value="0" />
<RepeatTag tag="@fact:SOUR">
<Gedcom id="@SOUR">
<if condition="@ID==$sid">
<SetVar name="printsource" value="1" />
</if>
</Gedcom>
<if condition="$printsource==1">
<if condition="$repeatedSource==1">; </if>
<if condition="@SOUR:PAGE!='' or @SOUR:DATA:TEXT!=''">
<SetVar name="repeatedSource" value="1" />
</if>
<GedcomValue tag="SOUR:PAGE"/>
<if condition="@SOUR:DATA:TEXT!=''">
<if condition="@SOUR:PAGE!=''">
<br />
</if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</if>
<SetVar name="printsource" value="0" />
</if>
</RepeatTag>
</Cell>
<SetVar name="moresource" value="1" />
</if>
<SetVar name="printfact" value="0" />
</Facts>
</List>
<!-- Print the list counter -->
<if condition="$printedsource==0">
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total families')"/>: 0</Cell>
</if>
<if condition="$printedsource > 0">
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total families')"/>: <var var="printedsource" /></Cell>
</if>
<TextBox height="$vspace" newline="1" padding="0"/>
</if>
<if condition="$stype=='records'">
<!-- List type -->
<Cell align="center" newline="1" style="listtype"><var var="I18N::translate('Individuals')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Individual Name -->
<SetVar name="fill" value="" />
<if condition="$sortby=='NAME'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="list_label" width="$nameindi"><var var="I18N::translate('Name')" /></Cell>
<!-- Birth date -->
<SetVar name="fill" value="" />
<if condition="$sortby=='BIRT:DATE'">
<SetVar name="fill" value="#AAAAAA" />
</if>
<Cell bgcolor="$fill" border="1" style="list_label" width="$fact"><var var="I18N::translate('Date of birth')" /></Cell>
<Cell border="1" style="list_label" width="$dateevent"><var var="I18N::translate('Place of birth')" /></Cell>
<Cell border="1" style="list_label" width="$fact"><var var="I18N::translate('Date of death')" /></Cell>
<Cell border="1" style="list_label" width="$dateevent"><var var="I18N::translate('Place of death')" /></Cell>
<!-- Detailed source text -->
<Cell border="1" newline="1" style="list_label"><var var="I18N::translate('Citation details')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Individual List -->
<List list="individual" filter1="SOUR CONTAINS @$sid@" sortby="$sortby">
<!-- Printed List counter -->
<SetVar name="printedsource" value="$printedsource + 1" />
<!-- Individual Name -->
<Cell style="list_value" width="$nameindi"><GetPersonName id="" /></Cell>
<!-- Birth date -->
<Cell style="list_value" width="$dateevent"><GedcomValue tag="BIRT:DATE" /></Cell>
<!-- Birth place -->
<Cell style="list_value" width="$fact"><GedcomValue tag="BIRT:PLAC" /></Cell>
<!-- Death date -->
<Cell style="list_value" width="$dateevent"><GedcomValue tag="DEAT:DATE" /></Cell>
<!-- Death place -->
<Cell style="list_value" width="$fact"><GedcomValue tag="DEAT:PLAC" /></Cell>
<!-- Detailed source text -->
<Cell style="list_value" newline="1">
<GedcomValue tag="SOUR:PAGE"/>
<if condition="@SOUR:DATA:TEXT!=''">
<br /><GedcomValue tag="SOUR:DATA:TEXT"/>
</if>
</Cell>
</List>
<!-- Print the list counter -->
<if condition="$printedsource==0">
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total individuals')"/>: 0</Cell>
</if>
<if condition="$printedsource > 0">
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total individuals')"/>: <var var="printedsource" /></Cell>
</if>
<NewPage />
<!-- Family List -->
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="center" newline="1" style="listtype"><var var="I18N::translate('Families')" /></Cell>
<TextBox height="$vspace" newline="1" padding="0"/>
<!-- Family Name -->
<Cell border="1" style="list_label" width="$namefam"><var var="I18N::translate('Name')" /></Cell>
<!-- Name of the fact that contains the source -->
<Cell bgcolor="#AAAAAA" border="1" style="list_label" width="$dateevent"><var var="I18N::translate('Date of marriage')" /></Cell>
<!-- Date of the fact -->
<Cell border="1" style="list_label" width="$fact"><var var="I18N::translate('Place of marriage')" /></Cell>
<!-- Detailed source text -->
<Cell border="1" newline="1" style="list_label"><var var="I18N::translate('Citation details')" /></Cell>
<!-- Family List -->
<TextBox height="$vspace" newline="1" padding="0"/>
<SetVar name="printedsource" value="0" />
<List list="family" filter1="SOUR CONTAINS @$sid@" sortby="MARR:DATE">
<SetVar name="printsource" value="0" />
<!-- Printed List counter -->
<SetVar name="printedsource" value="$printedsource + 1" />
<!-- Family Name -->
<Cell style="list_value" width="$namefam"><GetPersonName id="" /></Cell>
<!-- Date of the fact -->
<Cell style="list_value" width="$dateevent"><GedcomValue tag="MARR:DATE"/></Cell>
<!-- Place of the fact -->
<Cell style="list_value" width="$fact"><GedcomValue tag="MARR:PLAC"/></Cell>
<!-- Detailed source text -->
<Cell style="list_value" newline="1">
<GedcomValue tag="SOUR:PAGE"/>
<if condition="@SOUR:DATA:TEXT!=''">
<br /><GedcomValue tag="SOUR:DATA:TEXT"/>
</if>
</Cell>
</List>
<!-- Print the list counter -->
<if condition="$printedsource==0">
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total families')"/>: 0</Cell>
</if>
<if condition="$printedsource > 0">
<TextBox height="$vspace" newline="1" padding="0"/>
<Cell align="rightrtl" newline="1" style="list_label"><var var="I18N::translate('Total families')"/>: <var var="printedsource" /></Cell>
</if>
<TextBox height="$vspace" newline="1" padding="0"/>
</if>
</Body>
<Footer>
<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
</Footer>
</Doc>
</Report>
|