xref: /webtrees/resources/xml/reports/death_report.xml (revision 72d49ceedf256aedf1b97871f100dc61df3fd16b)
19cad7645SGreg Roach<?xml version="1.0" encoding="UTF-8" ?>
29cad7645SGreg Roach<Report>
39cad7645SGreg Roach	<Title><var var="I18N::translate('Deaths')" /></Title>
49cad7645SGreg Roach	<Description><var var="I18N::translate('A report of individuals who died in a given time or place.')" /></Description>
59cad7645SGreg Roach	<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
69cad7645SGreg Roach	<Input name="deathplace" lookup="PLAC" type="text"><var var="I18N::translate('Death place contains')" /></Input>
79cad7645SGreg Roach	<Input name="deathdate1" lookup="DATE" type="text"><var var="I18N::translate('Death date range start')" /></Input>
89cad7645SGreg Roach	<Input name="deathdate2" lookup="DATE" type="text"><var var="I18N::translate('Death date range end')" /></Input>
99cad7645SGreg Roach	<Input name="sortby" type="select" default="NAME" options="NAME=>I18N::translate('sort by name')|DEAT:DATE=>I18N::translate('sort by date of death')"><var var="I18N::translate('Sort order')" /></Input>
109cad7645SGreg Roach	<Input name="adlist" type="select" default="none" options="none=>I18N::translate('None')|_MARNM=>I18N::translate('Married name')|HUSB=>I18N::translate('Husband')"><var var="I18N::translate('Names')" /></Input>
114d314e6bSGreg Roach	<Input name="pageSize" type="select" options="letter=>I18N::translateContext('paper size','Letter')|A3=>I18N::translateContext('paper size', 'A3')|A4=>I18N::translateContext('paper size','A4')"><var var="I18N::translate('Page size')" /></Input>
129cad7645SGreg Roach	<!--
139cad7645SGreg 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>
149cad7645SGreg Roach	-->
159cad7645SGreg Roach	<SetVar name="fonts" value="dejavusans" />
169cad7645SGreg Roach
179cad7645SGreg Roach	<!-- Header -->
189cad7645SGreg Roach	<Style name="header" font="$fonts" size="16" style="b" />
199cad7645SGreg Roach	<!-- Page numbers text -->
209cad7645SGreg Roach	<Style name="pagenum" font="$fonts" size="8" />
219cad7645SGreg Roach	<!-- Standard text -->
229cad7645SGreg Roach	<Style name="text" font="$fonts" size="9" />
239cad7645SGreg Roach	<!-- Column labels -->
249cad7645SGreg Roach	<Style name="label" font="$fonts" size="10" style="b"/>
259cad7645SGreg Roach	<!-- Generated by style - required style name by the generator -->
269cad7645SGreg Roach	<Style name="genby" font="$fonts" size="8" />
279cad7645SGreg Roach	<!-- Date text -->
289cad7645SGreg Roach	<Style name="date" font="$fonts" size="8"/>
299cad7645SGreg Roach
309cad7645SGreg Roach	<Doc pageSize="$pageSize" orientation="landscape">
319cad7645SGreg Roach		<Header>
329cad7645SGreg Roach			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Deaths')" /></Cell>
339cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
349cad7645SGreg Roach
359cad7645SGreg Roach			<SetVar name="fill" value="" />
369cad7645SGreg Roach			<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
379cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" width="200">
389cad7645SGreg Roach				<Text style="label"><var var="I18N::translate('Name')" /></Text>
399cad7645SGreg Roach			</TextBox>
409cad7645SGreg Roach
419cad7645SGreg Roach			<SetVar name="fill" value="" />
429cad7645SGreg Roach			<if condition="$sortby=='DEAT:DATE'">
439cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
449cad7645SGreg Roach			</if>
459cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" width="100">
469cad7645SGreg Roach				<Text style="label"><var var="I18N::translate('Date')" /></Text>
479cad7645SGreg Roach			</TextBox>
489cad7645SGreg Roach
499cad7645SGreg Roach			<TextBox border="1" width="150">
509cad7645SGreg Roach				<Text style="label"><var var="I18N::translate('Place')" /></Text>
519cad7645SGreg Roach			</TextBox>
529cad7645SGreg Roach
539cad7645SGreg Roach			<TextBox border="1" newline="1">
549cad7645SGreg Roach			  <Text style="label"><var var="I18N::translate('Source')" /></Text>
559cad7645SGreg Roach			</TextBox>
569cad7645SGreg Roach		</Header>
579cad7645SGreg Roach
589cad7645SGreg Roach		<Body>
59a1afa4f8SGreg Roach			<List list="individual" filter1="DEAT:PLAC CONTAINS $deathplace" filter2="DEAT:DATE GTE $deathdate1" filter3="DEAT:DATE LTE $deathdate2" filter4="NAME CONTAINS $name" filter5="LIKE /%\n1 DEAT%/" sortby="$sortby">
609cad7645SGreg Roach				<TextBox width="200">
619cad7645SGreg Roach					<Text style="text"><GetPersonName id="" />
629cad7645SGreg Roach						<if condition="$adlist=='_MARNM'">
63*72d49ceeSGreg Roach							<RepeatTag tag="NAME">
64*72d49ceeSGreg Roach								<if condition="@NAME:TYPE=='married'">
65*72d49ceeSGreg Roach									<br /><GedcomValue tag="NAME" />
66*72d49ceeSGreg Roach								</if>
67*72d49ceeSGreg Roach							</RepeatTag>
68*72d49ceeSGreg Roach
699cad7645SGreg Roach							<RepeatTag tag="NAME:_MARNM">
709cad7645SGreg Roach								<br /><GedcomValue tag="_MARNM" />
719cad7645SGreg Roach							</RepeatTag>
729cad7645SGreg Roach						</if>
739cad7645SGreg Roach						<if condition="($adlist=='HUSB') and (@SEX=='F')">
749cad7645SGreg Roach							<RepeatTag tag="FAMS">
759cad7645SGreg Roach								<Gedcom id="@FAMS:@HUSB">
769cad7645SGreg Roach									<br /><GetPersonName id="" />
779cad7645SGreg Roach								</Gedcom>
789cad7645SGreg Roach							</RepeatTag>
799cad7645SGreg Roach						</if>
809cad7645SGreg Roach					</Text>
819cad7645SGreg Roach				</TextBox>
829cad7645SGreg Roach				<TextBox width="100">
839cad7645SGreg Roach					<Text style="text"><GedcomValue tag="DEAT:DATE" newline="1" /></Text>
849cad7645SGreg Roach				</TextBox>
859cad7645SGreg Roach				<TextBox width="150">
869cad7645SGreg Roach					<Text style="text"><GedcomValue tag="DEAT:PLAC" /></Text>
879cad7645SGreg Roach				</TextBox>
889cad7645SGreg Roach				<TextBox newline="1">
899cad7645SGreg Roach					<!-- Only with multiple sources use line feed (br) -->
909cad7645SGreg Roach					<SetVar name="usebr" value="0"/>
919cad7645SGreg Roach					<Text style="text">
929cad7645SGreg Roach						<RepeatTag tag="DEAT:SOUR">
939cad7645SGreg Roach							<Gedcom id="@SOUR">
949cad7645SGreg Roach								<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
959cad7645SGreg Roach								«<GedcomValue tag="TITL" />»
969cad7645SGreg Roach								<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
979cad7645SGreg Roach							</Gedcom>
989cad7645SGreg Roach							<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
999cad7645SGreg Roach							 <GedcomValue tag="SOUR:DATA:TEXT" />
1009cad7645SGreg Roach							<SetVar name="usebr" value="1"/>
1019cad7645SGreg Roach						</RepeatTag>
1029cad7645SGreg Roach					</Text>
1039cad7645SGreg Roach				</TextBox>
1049cad7645SGreg Roach			</List>
1059cad7645SGreg Roach			<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total individuals')"/>: <ListTotal/></Cell>
1069cad7645SGreg Roach		</Body>
1079cad7645SGreg Roach		<Footer>
1089cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
1099cad7645SGreg Roach		</Footer>
1109cad7645SGreg Roach	</Doc>
1119cad7645SGreg Roach</Report>
112