xref: /webtrees/resources/xml/reports/cemetery_report.xml (revision 1ff45046fabc22237b5d0d8e489c96f031fc598d)
1<?xml version="1.0" encoding="UTF-8" ?>
2<Report>
3	<Title><var var="I18N::translate('Burials')" /></Title>
4	<Description><var var="I18N::translate('A report of individuals who were buried in a given place.')" /></Description>
5	<Input name="deathplace" lookup="PLAC" type="text"><var var="I18N::translate('Burial place contains')" /> </Input>
6	<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>
7	<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>
8	<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>
9	<!--
10	<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>
11	-->
12	<SetVar name="fonts" value="dejavusans" />
13
14	<!-- Header -->
15	<Style name="header" font="$fonts" size="16" style="b" />
16	<!-- Page numbers text -->
17	<Style name="pagenum" font="$fonts" size="8"/>
18	<!-- Standard text -->
19	<Style name="text" font="$fonts" size="9"/>
20	<!-- Column labels -->
21	<Style name="label" font="$fonts" size="10" style="b" />
22	<!-- Generated by style - required style name by the generator -->
23	<Style name="genby" font="$fonts" size="8" />
24	<!-- Date text -->
25	<Style name="date" font="$fonts" size="8"/>
26
27	<!-- landscape orientation -->
28	<SetVar name="namewidth" value="185"/>
29	<SetVar name="datewidth" value="115"/>
30	<SetVar name="placewidth" value="200"/>
31
32	<Doc pageSize="$pageSize" orientation="landscape">
33		<Header>
34			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Burials')" /></Cell>
35			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
36
37			<SetVar name="fill" value="" />
38			<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
39			<TextBox bgcolor="$fill" border="1" width="$namewidth">
40				<Text style="label"><var var="I18N::translate('Name')" /></Text>
41			</TextBox>
42
43			<SetVar name="fill" value="" />
44			<if condition="$sortby=='DEAT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
45			<TextBox bgcolor="$fill" border="1" width="$datewidth">
46				<Text style="label"><var var="I18N::translate('Date of death')" /></Text>
47			</TextBox>
48
49			<SetVar name="fill" value="" />
50			<if condition="$sortby=='DEAT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
51			<TextBox bgcolor="$fill" border="1" width="$datewidth">
52				<Text style="label"><var var="I18N::translate('Date of burial')" /></Text>
53			</TextBox>
54
55			<SetVar name="fill" value="" />
56			<if condition="$sortby=='PLAC'"><SetVar name="fill" value="#AAAAAA" /></if>
57			<TextBox bgcolor="$fill" border="1" width="$placewidth">
58				<Text style="label"><var var="I18N::translate('Place of burial')" /></Text>
59			</TextBox>
60
61			<TextBox border="1" newline="1">
62				<Text style="label"><var var="I18N::translate('Note')" /></Text>
63			</TextBox>
64		</Header>
65		<Body>
66			<List list="individual" filter1="BURI:PLAC CONTAINS $deathplace" filter2="LIKE /%\n1 BURI%/" sortby="$sortby">
67				<Cell style="text" width="$namewidth"><GetPersonName id="" />
68					<if condition="$adlist=='_MARNM'">
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				</Cell>
81				<Cell style="text" width="$datewidth">
82					<GedcomValue tag="DEAT:DATE" newline="1" />
83				</Cell>
84				<Cell style="text" width="$datewidth">
85					<GedcomValue tag="BURI:DATE" newline="1" />
86				</Cell>
87				<Cell style="text" width="$placewidth">
88					<GedcomValue tag="BURI:CEME" />
89					<if condition="@BURI:CEME !== ''">, </if>
90					<GedcomValue tag="BURI:PLAC" />
91				</Cell>
92				<Cell newline="1" style="text">
93					<GedcomValue tag="BURI:NOTE" />
94				</Cell>
95			</List>
96			<Cell align="rightrtl" newline="1" style="label">
97				<br />
98				<var var="I18N::translate('Total individuals')" />: <ListTotal />
99			</Cell>
100		</Body>
101		<Footer>
102			<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
103		</Footer>
104	</Doc>
105</Report>
106