xref: /webtrees/resources/xml/reports/relative_ext_report.xml (revision b56fa9dd6a5e9075de5337fd34748412e9e559a7)
19cad7645SGreg Roach<?xml version="1.0" encoding="UTF-8" ?>
29cad7645SGreg Roach<Report>
39cad7645SGreg Roach	<Title><var var="I18N::translate('Related individuals')" /></Title>
49cad7645SGreg Roach	<Description><var var="I18N::translate('A report of the individuals that are closely related to an individual.')" /></Description>
59cad7645SGreg Roach	<Input name="pid" lookup="INDI" type="text"><var var="I18N::translate('Individual')" /></Input>
69cad7645SGreg Roach	<Input name="relatives" type="select" options="child-family=>I18N::translate('Parents and siblings')|spouse-family=>I18N::translate('Spouses and children')|direct-ancestors=>I18N::translate('Direct line ancestors')|ancestors=>I18N::translate('Direct line ancestors and their families')|descendants=>I18N::translate('Descendants')|all=>I18N::translate('All')"><var var="I18N::translate('Choose relatives')" /></Input>
79cad7645SGreg Roach	<Input name="sortby" type="select" default="BIRT:DATE" options="NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')|DEAT:DATE=>I18N::translate('sort by date of death')"><var var="I18N::translate('Sort order')" /></Input>
84d314e6bSGreg Roach	<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>
99cad7645SGreg Roach	<!--
109cad7645SGreg Roach	<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>
119cad7645SGreg Roach	-->
129cad7645SGreg Roach	<SetVar name="fonts" value="dejavusans" />
139cad7645SGreg Roach
149cad7645SGreg Roach	<!-- Header -->
159cad7645SGreg Roach	<Style name="header" font="$fonts" size="14" />
169cad7645SGreg Roach	<!-- Page numbers text -->
179cad7645SGreg Roach	<Style name="pagenum" font="$fonts" size="8" />
189cad7645SGreg Roach	<!-- Generated by style - required style name by the generator -->
199cad7645SGreg Roach	<Style name="genby" font="$fonts" size="8" />
209cad7645SGreg Roach	<!-- Date text -->
219cad7645SGreg Roach	<Style name="date" font="$fonts" size="8"/>
229cad7645SGreg Roach	<Style name="text" font="$fonts" size="10" />
239cad7645SGreg Roach	<Style name="bold" font="$fonts" size="10" style="b" />
249cad7645SGreg Roach	<Style name="mini" font="$fonts" size="8" />
259cad7645SGreg Roach	<Style name="minibold" font="$fonts" size="8" style="b" />
269cad7645SGreg Roach	<Style name="label" font="$fonts" size="10" style="b" />
279cad7645SGreg Roach
289cad7645SGreg Roach	<SetVar name="height1" value="14" />
299cad7645SGreg Roach	<SetVar name="height2" value="10" />
309cad7645SGreg Roach	<SetVar name="width1" value="45" />
319cad7645SGreg Roach	<SetVar name="width2" value="195" />
329cad7645SGreg Roach	<SetVar name="width3" value="120" />
339cad7645SGreg Roach	<SetVar name="width4" value="120" />
349cad7645SGreg Roach	<SetVar name="width5" value="150" />
359cad7645SGreg Roach	<SetVar name="width6" value="150" />
369cad7645SGreg Roach	<SetVar name="widthB2" value="280" />
379cad7645SGreg Roach	<SetVar name="widthB3" value="40" />
389cad7645SGreg Roach	<SetVar name="widthB4" value="375" />
399cad7645SGreg Roach	<SetVar name="leftbdp" value="$width1+$width2" />
409cad7645SGreg Roach
41*b56fa9ddSGreg Roach	<if condition="$relatives=='child-family'"><SetVar name="explain" value="I18N::translate('Parents and siblings')"/></if>
42*b56fa9ddSGreg Roach	<if condition="$relatives=='spouse-family'"><SetVar name="explain" value="I18N::translate('Spouses and children')"/></if>
43*b56fa9ddSGreg Roach	<if condition="$relatives=='direct-ancestors'"><SetVar name="explain" value="I18N::translate('Direct line ancestors')"/></if>
44*b56fa9ddSGreg Roach	<if condition="$relatives=='ancestors'"><SetVar name="explain" value="I18N::translate('Direct line ancestors and their families')"/></if>
45*b56fa9ddSGreg Roach	<if condition="$relatives=='descendants'"><SetVar name="explain" value="I18N::translate('Descendants')"/></if>
46*b56fa9ddSGreg Roach	<if condition="$relatives=='all'"><SetVar name="explain" value="I18N::translate('All')"/></if>
47*b56fa9ddSGreg Roach
489cad7645SGreg Roach	<Doc pageSize="$pageSize" orientation="landscape">
499cad7645SGreg Roach		<Header>
50*b56fa9ddSGreg Roach			<Cell align="center" height="20" newline="1" style="header"><GetPersonName id="$pid" /> — <var var="$explain"/></Cell>
519cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
529cad7645SGreg Roach
539cad7645SGreg Roach			<SetVar name="fill" value="" />
549cad7645SGreg Roach			<if condition="$sortby=='NAME'">
559cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
569cad7645SGreg Roach			</if>
579cad7645SGreg Roach			<Cell bgcolor="$fill" border="1" height="$height1" style="label" width="$width2"> <var var="I18N::translate('Name')" /></Cell>
589cad7645SGreg Roach
599cad7645SGreg Roach			<SetVar name="fill" value="" />
609cad7645SGreg Roach			<if condition="$sortby=='BIRT:DATE'">
619cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
629cad7645SGreg Roach			</if>
639cad7645SGreg Roach			<Cell bgcolor="$fill" border="1" height="$height1" style="label" width="$width3"> <var var="I18N::translate('Birth')" /></Cell>
649cad7645SGreg Roach
659cad7645SGreg Roach			<SetVar name="fill" value="" />
669cad7645SGreg Roach			<if condition="$sortby=='DEAT:DATE'">
679cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
689cad7645SGreg Roach			</if>
699cad7645SGreg Roach			<Cell bgcolor="$fill" border="1" height="$height1" style="label" width="$width4"> <var var="I18N::translate('Death')" /></Cell>
709cad7645SGreg Roach
719cad7645SGreg Roach			<Cell border="1" height="$height1" style="label" width="$width5"> <var var="I18N::translate('Father')" /></Cell>
729cad7645SGreg Roach			<Cell border="1" height="$height1" newline="1" style="label"> <var var="I18N::translate('Mother')" /></Cell>
739cad7645SGreg Roach		</Header>
749cad7645SGreg Roach
759cad7645SGreg Roach		<Body>
769cad7645SGreg Roach			<Relatives id="$pid" group="$relatives" sortby="$sortby">
779cad7645SGreg Roach				<SetVar name="sex" value="@SEX" />
789cad7645SGreg Roach				<!-- 1. Block -->
799cad7645SGreg Roach				<TextBox height="$height1" width="$width2">
809cad7645SGreg Roach					<Text style="bold"><GetPersonName id="" /></Text>
819cad7645SGreg Roach				</TextBox>
829cad7645SGreg Roach				<TextBox height="$height1" width="$width3">
839cad7645SGreg Roach					<Text style="text"><GedcomValue tag="BIRT:DATE" truncate="20" /><br/></Text>
849cad7645SGreg Roach					<Text style="mini"><GedcomValue tag="BIRT:PLAC" /></Text>
859cad7645SGreg Roach				</TextBox>
869cad7645SGreg Roach				<TextBox height="$height1" width="$width4">
879cad7645SGreg Roach					<Text style="text"><GedcomValue tag="DEAT:DATE" truncate="20" /><br/></Text>
889cad7645SGreg Roach					<Text style="mini"><GedcomValue tag="DEAT:PLAC" /></Text>
899cad7645SGreg Roach				</TextBox>
909cad7645SGreg Roach				<!-- If FAMC is empty all lines will be ignored. So, don't place any newline break in here -->
919cad7645SGreg Roach				<Gedcom id="@FAMC">
929cad7645SGreg Roach					<TextBox height="$height1" width="$width5">
939cad7645SGreg Roach						<Gedcom id="@HUSB">
949cad7645SGreg Roach							<Text style="text"><GetPersonName id="" /></Text>
959cad7645SGreg Roach						</Gedcom>
969cad7645SGreg Roach					</TextBox>
979cad7645SGreg Roach					<TextBox height="$height1" newline="1">
989cad7645SGreg Roach						<Gedcom id="@WIFE">
999cad7645SGreg Roach							<Text style="text"><GetPersonName id="" /></Text>
1009cad7645SGreg Roach						</Gedcom>
1019cad7645SGreg Roach					</TextBox>
1029cad7645SGreg Roach				</Gedcom>
1039cad7645SGreg Roach				<!-- one way or the other, we need a new line -->
1049cad7645SGreg Roach				<if condition="@FAMC==''">
1059cad7645SGreg Roach					<TextBox height="2" newline="1"/>
1069cad7645SGreg Roach				</if>
1079cad7645SGreg Roach				<RepeatTag tag="FAMS">
1089cad7645SGreg Roach					<Gedcom id="@FAMS">
1099cad7645SGreg Roach						<TextBox height="$height2" left="$width1" width="$widthB2">
1109cad7645SGreg Roach							<if condition="$sex=='M'">
1119cad7645SGreg Roach								<Text style="minibold"><var var="I18N::translate('Wife')" />: </Text>
1129cad7645SGreg Roach								<Text style="mini"><GetPersonName id="@WIFE" /> <GedcomValue tag="MARR:DATE" />
1139cad7645SGreg Roach								</Text>
1149cad7645SGreg Roach							</if>
1159cad7645SGreg Roach							<if condition="$sex=='F'">
1169cad7645SGreg Roach								<Text style="minibold"><var var="I18N::translate('Husband')" />: </Text>
1179cad7645SGreg Roach								<Text style="mini"><GetPersonName id="@HUSB" /> <GedcomValue tag="MARR:DATE" />
1189cad7645SGreg Roach								</Text>
1199cad7645SGreg Roach							</if>
1209cad7645SGreg Roach						</TextBox>
1219cad7645SGreg Roach						<TextBox height="$height2" width="50">
1229cad7645SGreg Roach							<Text style="minibold"><var var="I18N::translate('Children')" />:</Text>
1239cad7645SGreg Roach						</TextBox>
1249cad7645SGreg Roach						<TextBox height="$height2" newline="1">
1259cad7645SGreg Roach							<SetVar name="morechildren" value="0" />
1269cad7645SGreg Roach							<RepeatTag tag="CHIL">
1279cad7645SGreg Roach								<Gedcom id="@CHIL">
1289cad7645SGreg Roach									<Text style="mini">
1299cad7645SGreg Roach										<!-- Print this only when more than one child exist -->
1309cad7645SGreg Roach										<if condition="$morechildren==1">, </if>
1319cad7645SGreg Roach										<GetPersonName id="" />
1329cad7645SGreg Roach									</Text>
1339cad7645SGreg Roach									<SetVar name="morechildren" value="1" />
1349cad7645SGreg Roach								</Gedcom>
1359cad7645SGreg Roach							</RepeatTag>
1369cad7645SGreg Roach						</TextBox>
1379cad7645SGreg Roach					</Gedcom>
1389cad7645SGreg Roach				</RepeatTag>
1399cad7645SGreg Roach
1409cad7645SGreg Roach				<!-- keep distance between line -->
1419cad7645SGreg Roach				<TextBox height="2" newline="1" padding="0"/>
1429cad7645SGreg Roach				<Line />
1439cad7645SGreg Roach				<TextBox height="2" newline="1" padding="0"/>
1449cad7645SGreg Roach
1459cad7645SGreg Roach			</Relatives>
1469cad7645SGreg Roach			<Cell align="rightrtl" height="15" newline="1" style="label">
1479cad7645SGreg Roach				<br /><var var="I18N::translate('Total individuals')" />: <ListTotal />
1489cad7645SGreg Roach			</Cell>
1499cad7645SGreg Roach		</Body>
1509cad7645SGreg Roach
1519cad7645SGreg Roach		<Footer>
1529cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
1539cad7645SGreg Roach		</Footer>
1549cad7645SGreg Roach	</Doc>
1559cad7645SGreg Roach</Report>
156