xref: /webtrees/resources/xml/reports/death_report.xml (revision aaafd355d2cee5330c9f89ee69ed12ba8ecc27fa)
1<?xml version="1.0" encoding="UTF-8" ?>
2<Report>
3	<Title><var var="I18N::translate('Deaths')" /></Title>
4	<Description><var var="I18N::translate('A report of individuals who died in a given time or place.')" /></Description>
5	<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
6	<Input name="deathplace" lookup="PLAC" type="text"><var var="I18N::translate('Death place contains')" /></Input>
7	<Input name="deathdate1" lookup="DATE" type="text"><var var="I18N::translate('Death date range start')" /></Input>
8	<Input name="deathdate2" lookup="DATE" type="text"><var var="I18N::translate('Death date range end')" /></Input>
9	<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>
10	<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>
11	<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>
12	<!--
13	<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>
14	-->
15	<SetVar name="fonts" value="dejavusans" />
16
17	<!-- Header -->
18	<Style name="header" font="$fonts" size="16" style="b" />
19	<!-- Page numbers text -->
20	<Style name="pagenum" font="$fonts" size="8" />
21	<!-- Standard text -->
22	<Style name="text" font="$fonts" size="9" />
23	<!-- Column labels -->
24	<Style name="label" font="$fonts" size="10" style="b"/>
25	<!-- Generated by style - required style name by the generator -->
26	<Style name="genby" font="$fonts" size="8" />
27	<!-- Date text -->
28	<Style name="date" font="$fonts" size="8"/>
29
30	<Doc pageSize="$pageSize" orientation="landscape">
31		<Header>
32			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Deaths')" /></Cell>
33			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
34
35			<SetVar name="fill" value="" />
36			<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
37			<TextBox bgcolor="$fill" border="1" width="200">
38				<Text style="label"><var var="I18N::translate('Name')" /></Text>
39			</TextBox>
40
41			<SetVar name="fill" value="" />
42			<if condition="$sortby=='DEAT:DATE'">
43				<SetVar name="fill" value="#AAAAAA" />
44			</if>
45			<TextBox bgcolor="$fill" border="1" width="100">
46				<Text style="label"><var var="I18N::translate('Date')" /></Text>
47			</TextBox>
48
49			<TextBox border="1" width="150">
50				<Text style="label"><var var="I18N::translate('Place')" /></Text>
51			</TextBox>
52
53			<TextBox border="1" newline="1">
54			  <Text style="label"><var var="I18N::translate('Source')" /></Text>
55			</TextBox>
56		</Header>
57
58		<Body>
59			<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">
60				<TextBox width="200">
61					<Text style="text"><GetPersonName id="" />
62						<if condition="$adlist=='_MARNM'">
63							<RepeatTag tag="NAME:_MARNM">
64								<br /><GedcomValue tag="_MARNM" />
65							</RepeatTag>
66						</if>
67						<if condition="($adlist=='HUSB') and (@SEX=='F')">
68							<RepeatTag tag="FAMS">
69								<Gedcom id="@FAMS:@HUSB">
70									<br /><GetPersonName id="" />
71								</Gedcom>
72							</RepeatTag>
73						</if>
74					</Text>
75				</TextBox>
76				<TextBox width="100">
77					<Text style="text"><GedcomValue tag="DEAT:DATE" newline="1" /></Text>
78				</TextBox>
79				<TextBox width="150">
80					<Text style="text"><GedcomValue tag="DEAT:PLAC" /></Text>
81				</TextBox>
82				<TextBox newline="1">
83					<!-- Only with multiple sources use line feed (br) -->
84					<SetVar name="usebr" value="0"/>
85					<Text style="text">
86						<RepeatTag tag="DEAT:SOUR">
87							<Gedcom id="@SOUR">
88								<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
89								«<GedcomValue tag="TITL" />»
90								<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
91							</Gedcom>
92							<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
93							 <GedcomValue tag="SOUR:DATA:TEXT" />
94							<SetVar name="usebr" value="1"/>
95						</RepeatTag>
96					</Text>
97				</TextBox>
98			</List>
99			<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total individuals')"/>: <ListTotal/></Cell>
100		</Body>
101		<Footer>
102			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
103		</Footer>
104	</Doc>
105</Report>
106