mirror of
https://github.com/YunoHost-Apps/webtrees_ynh.git
synced 2024-09-03 18:26:37 +02:00
655 lines
30 KiB
XML
655 lines
30 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<Report>
|
||
<Title><var var="I18N::translate('Individual')" /></Title>
|
||
<Description><var var="I18N::translate('A report of an individual’s details.')" /></Description>
|
||
<Input name="pid" lookup="INDI" type="text" default=""><var var="I18N::translate('Individual')" /></Input>
|
||
<Input name="sources" type="checkbox" default="1"><var var="I18N::translate('Show sources')" /></Input>
|
||
<Input name="notes" type="checkbox" default="1"><var var="I18N::translate('Show notes')" /></Input>
|
||
<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>
|
||
<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>
|
||
<Input name="colors" type="checkbox" default="1"><var var="I18N::translate('Use colors')"/></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"/>
|
||
<!-- Generated by style - required style name by the generator -->
|
||
<Style name="genby" font="$fonts" size="8"/>
|
||
<!-- Links to sources - required style name by the generator -->
|
||
<Style name="footnotenum" font="$fonts" size="6"/>
|
||
<!-- Source text - FootnoteTexts - required style name by the generator -->
|
||
<Style name="footnote" font="$fonts" size="8"/>
|
||
<!-- Section title -->
|
||
<Style name="title" font="$fonts" size="9" style="B"/>
|
||
<!-- Page numbers text -->
|
||
<Style name="pagenum" font="$fonts" size="8"/>
|
||
<!-- Page Header text -->
|
||
<Style name="pageheader" font="$fonts" size="14"/>
|
||
<!-- Standard text -->
|
||
<Style name="text" font="$fonts" size="9"/>
|
||
<!-- Facts text -->
|
||
<Style name="fact" font="$fonts" size="8"/>
|
||
<!-- Individual names in text boxes -->
|
||
<Style name="name" font="$fonts" size="10"/>
|
||
<!-- Date text -->
|
||
<Style name="date" font="$fonts" size="8"/>
|
||
|
||
<SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
|
||
<!-- Setup colors -->
|
||
<!-- Section title background color -->
|
||
<SetVar name="stbgcolor" value="#AAAAAA"/>
|
||
<SetVar name="mbgcolor" value=""/>
|
||
<SetVar name="fbgcolor" value=""/>
|
||
<SetVar name="ugbgcolor" value=""/>
|
||
<SetVar name="fbbgcolor" value=""/>
|
||
<SetVar name="tcolor" value=""/>
|
||
<!-- Use colors -->
|
||
<if condition="$colors==1">
|
||
<!-- Section title background color -->
|
||
<SetVar name="stbgcolor" value="#9CA3D4"/>
|
||
<!-- Male background color -->
|
||
<SetVar name="mbgcolor" value="#D6E0EA"/>
|
||
<!-- Female background color -->
|
||
<SetVar name="fbgcolor" value="#E9DAF1"/>
|
||
<!-- Unknown gender -->
|
||
<SetVar name="ugbgcolor" value="#FFFFFF"/>
|
||
<!-- Fact boxes -->
|
||
<SetVar name="fbbgcolor" value="#D1D9FF"/>
|
||
<!-- Text color - black -->
|
||
<SetVar name="tcolor" value="#000000"/>
|
||
</if>
|
||
|
||
<!-- New Page controller -->
|
||
<SetVar name="newpage" value="0"/>
|
||
<!-- New Page for Sources controller if SOUR exist -->
|
||
<SetVar name="source_exist" value="0"/>
|
||
|
||
<!-- set the default widths -->
|
||
<SetVar name="dwidth" value="200"/>
|
||
<SetVar name="pwidth" value="436"/>
|
||
<!-- space height -->
|
||
<SetVar name="sheight" value="15"/>
|
||
|
||
<SetVar name="width" value="433"/>
|
||
<SetVar name="width1" value="418"/>
|
||
<SetVar name="width2" value="233"/>
|
||
|
||
<!-- change the widths for no pictures -->
|
||
<if condition="$photos=='none'">
|
||
<SetVar name="width" value="0"/>
|
||
<SetVar name="width1" value="0"/>
|
||
<SetVar name="width2" value="0"/>
|
||
</if>
|
||
|
||
<Doc pageSize="$pageSize" >
|
||
<Header>
|
||
<Cell align="center" newline="1" style="header"><var var="I18N::translate('Individual')" /></Cell>
|
||
<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
|
||
</Header>
|
||
<Body>
|
||
<!-- set the gedcom context for this individual -->
|
||
<Gedcom id="$pid">
|
||
<if condition="$newpage==1">
|
||
<NewPage/>
|
||
</if>
|
||
<SetVar name="newpage" value="1"/>
|
||
<SetVar name="sex" value="@SEX"/>
|
||
<SetVar name="mid" value="@ID"/>
|
||
<!-- Individual name -->
|
||
<TextBox newline="1">
|
||
<Text style="pageheader"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
</TextBox>
|
||
<!-- show the persons images -->
|
||
<if 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 -->
|
||
<TextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
|
||
<RepeatTag tag="OBJE">
|
||
<Image file="@FILE" width="80" ln="N"/>
|
||
</RepeatTag>
|
||
</TextBox>
|
||
</if>
|
||
<!-- show the person's Highlighted Image -->
|
||
<if condition="$photos=='highlighted'">
|
||
<HighlightedImage left="$pwidth" width="80"/>
|
||
</if>
|
||
<!-- Print the individuals facts -->
|
||
<Cell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><var var="I18N::translate('Facts and events')"/></Cell>
|
||
<Facts ignore="$ignore" families="1">
|
||
<TextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
|
||
<Text color="$tcolor" style="fact"><var var="@fact"/> </Text>
|
||
<Text color="$tcolor" style="text"><GedcomValue tag="@fact:DATE"/> </Text>
|
||
<!-- look for fact level 2 sources -->
|
||
<if condition="$sources==1">
|
||
<RepeatTag tag="@fact:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
</TextBox>
|
||
<!-- print a different layout for facts with descriptions -->
|
||
<if condition="@desc!=''">
|
||
<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
|
||
<Text color="$tcolor" style="text">
|
||
<if condition="@desc=='Y'">
|
||
<var var="I18N::translate('yes')" /> <GedcomValue tag="@fact:PLAC"/>
|
||
</if>
|
||
<if condition="@desc=='N'">
|
||
<var var="I18N::translate('no')" /> <GedcomValue tag="@fact:PLAC"/>
|
||
</if>
|
||
<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC!=''">
|
||
<GedcomValue tag="@desc"/> <GedcomValue tag="@fact:PLAC"/>
|
||
</if>
|
||
<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC==''">
|
||
<GedcomValue tag="@desc"/>
|
||
</if>
|
||
</Text>
|
||
<Gedcom id="@ASSO">
|
||
<GetPersonName id=""/>
|
||
</Gedcom>
|
||
<Gedcom id="@_WTS">
|
||
<if condition="@SEX=='M'">
|
||
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Husband')"/></Text>
|
||
</if>
|
||
<if condition="@SEX=='F'">
|
||
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Wife')"/></Text>
|
||
</if>
|
||
<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
|
||
</Gedcom>
|
||
</TextBox>
|
||
</if>
|
||
<!-- facts without descriptions -->
|
||
<if condition="@desc==''">
|
||
<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
|
||
<Text color="$tcolor" style="text">
|
||
<GedcomValue tag="@fact:PLAC"/>
|
||
<!-- Print only when exist to reduce some spaces in the text, might avoid a line break -->
|
||
<if condition="@TEMP!=''">
|
||
; <var var="I18N::translate('Temple')"/>: <GedcomValue tag="@fact:TEMP"/>
|
||
</if>
|
||
</Text>
|
||
<Gedcom id="@_WTS">
|
||
<if condition="@SEX=='M'">
|
||
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Husband')"/></Text>
|
||
</if>
|
||
<if condition="@SEX=='F'">
|
||
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Wife')"/></Text>
|
||
</if>
|
||
<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
|
||
</Gedcom>
|
||
</TextBox>
|
||
</if>
|
||
</Facts>
|
||
<!-- print any level 1 notes, but only if exist -->
|
||
<if condition="($notes==1) and (@NOTE!='')">
|
||
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
|
||
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Notes')"/></Cell>
|
||
<RepeatTag tag="NOTE">
|
||
<Cell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><GedcomValue tag="NOTE"/></Cell>
|
||
</RepeatTag>
|
||
</if>
|
||
|
||
<!-- print family with parents and siblings -->
|
||
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
|
||
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Family with parents')"/></Cell>
|
||
<RepeatTag tag="FAMC">
|
||
<Gedcom id="@FAMC">
|
||
<!-- father -->
|
||
<Gedcom id="@HUSB">
|
||
<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Father')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</Gedcom>
|
||
<!-- mother -->
|
||
<Gedcom id="@WIFE">
|
||
<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Mother')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</Gedcom>
|
||
<!-- siblings -->
|
||
<RepeatTag tag="CHIL">
|
||
<if condition="@CHIL!=$mid">
|
||
<Gedcom id="@CHIL">
|
||
<!-- Brother -->
|
||
<if condition="@SEX=='M'">
|
||
<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Brother')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
<!-- Sister -->
|
||
<if condition="@SEX=='F'">
|
||
<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Sister')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
<!-- Sibling -->
|
||
<if condition="@SEX=='U'">
|
||
<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Gender')"/> <var var="I18N::translateContext('unknown gender', 'Unknown')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
</Gedcom>
|
||
</if>
|
||
</RepeatTag>
|
||
</Gedcom>
|
||
</RepeatTag>
|
||
<!-- print family with spouse and children -->
|
||
<RepeatTag tag="FAMS">
|
||
<Gedcom id="@FAMS">
|
||
<!-- find spouse -->
|
||
<if condition="@WIFE == $pid">
|
||
<SetVar name="spid" value="@HUSB"/>
|
||
</if>
|
||
<if condition="@HUSB == $pid">
|
||
<SetVar name="spid" value="@WIFE"/>
|
||
</if>
|
||
<if condition="$spid == ''">
|
||
<!-- one parent family -->
|
||
<SerVar name="spid" value="$pid"/>
|
||
</if>
|
||
<!-- print information for spouse -->
|
||
<Gedcom id="$spid">
|
||
<!-- husband -->
|
||
<if condition="@SEX=='M'">
|
||
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
|
||
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width">
|
||
<var var="I18N::translate('Family with husband')"/>
|
||
</Cell>
|
||
<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Husband')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
<!-- wife -->
|
||
<if condition="@SEX=='F'">
|
||
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
|
||
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width">
|
||
<var var="I18N::translate('Family with wife')"/>
|
||
</Cell>
|
||
<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Wife')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
</Gedcom>
|
||
<!-- print children with spouse -->
|
||
<RepeatTag tag="CHIL">
|
||
<if condition="@CHIL!=$mid">
|
||
<Gedcom id="@CHIL">
|
||
<!-- Son -->
|
||
<if condition="@SEX=='M'">
|
||
<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Son')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
<!-- Daughter -->
|
||
<if condition="@SEX=='F'">
|
||
<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Daughter')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
<!-- Unknown gender for Child -->
|
||
<if condition="@SEX=='U'">
|
||
<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
|
||
<Text color="$tcolor" style="text"><var var="I18N::translate('Gender')"/> <var var="I18N::translateContext('unknown gender', 'Unknown')"/> </Text>
|
||
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
|
||
<if condition="$sources==1">
|
||
<!-- print level 1 sources -->
|
||
<RepeatTag tag="SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1"/>
|
||
</RepeatTag>
|
||
<!-- print level 2 sources attached to NAME -->
|
||
<RepeatTag tag="NAME:SOUR">
|
||
<Footnote>
|
||
<Gedcom id="@SOUR">
|
||
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
|
||
«<GedcomValue tag="TITL" />»
|
||
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
|
||
</Gedcom>
|
||
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
|
||
<GedcomValue tag="SOUR:DATA:TEXT" />
|
||
</Footnote>
|
||
<SetVar name="source_exist" value="1" />
|
||
</RepeatTag>
|
||
</if>
|
||
<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>
|
||
</TextBox>
|
||
</if>
|
||
</Gedcom>
|
||
</if>
|
||
</RepeatTag>
|
||
</Gedcom>
|
||
</RepeatTag>
|
||
</Gedcom>
|
||
</Body>
|
||
<!-- if the sources were on, print the source citations as footnotes -->
|
||
<if condition="$source_exist==1">
|
||
<Body>
|
||
<TextBox newline="1">
|
||
<Text style="pageheader"><var var="I18N::translate('Sources')"/><br /><br /></Text>
|
||
<FootnoteTexts/>
|
||
</TextBox>
|
||
</Body>
|
||
</if>
|
||
<Footer>
|
||
<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
|
||
</Footer>
|
||
</Doc>
|
||
</Report>
|