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