xref: /webtrees/resources/xml/reports/death_report.xml (revision a26ec5ede3c2ecdb45b783755ede967935aaecba)
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">
64								<if condition="@NAME:TYPE=='married'">
65									<br /><GedcomValue tag="NAME" />
66								</if>
67							</RepeatTag>
68
69							<RepeatTag tag="NAME:_MARNM">
70								<br /><GedcomValue tag="_MARNM" />
71							</RepeatTag>
72						</if>
73						<if condition="($adlist=='HUSB') and (@SEX=='F')">
74							<RepeatTag tag="FAMS">
75								<Gedcom id="@FAMS:@HUSB">
76									<br /><GetPersonName id="" />
77								</Gedcom>
78							</RepeatTag>
79						</if>
80					</Text>
81				</TextBox>
82				<TextBox width="100">
83					<Text style="text"><GedcomValue tag="DEAT:DATE" newline="1" /></Text>
84				</TextBox>
85				<TextBox width="150">
86					<Text style="text"><GedcomValue tag="DEAT:PLAC" /></Text>
87				</TextBox>
88				<TextBox newline="1">
89					<!-- Only with multiple sources use line feed (br) -->
90					<SetVar name="usebr" value="0"/>
91					<Text style="text">
92						<RepeatTag tag="DEAT:SOUR">
93							<Gedcom id="@SOUR">
94								<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
95								«<GedcomValue tag="TITL" />»
96								<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
97							</Gedcom>
98							<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
99							 <GedcomValue tag="SOUR:DATA:TEXT" />
100							<SetVar name="usebr" value="1"/>
101						</RepeatTag>
102					</Text>
103				</TextBox>
104			</List>
105			<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total individuals')"/>: <ListTotal/></Cell>
106		</Body>
107		<Footer>
108			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
109		</Footer>
110	</Doc>
111</Report>
112