xref: /webtrees/resources/xml/reports/cemetery_report.xml (revision 4947e7089adb08f24bf1eef67994a106a8df60aa)
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" default="A4" options="letter=>I18N::translateContext('paper size','Letter')|A3=>I18N::translateContext('paper size', 'A3')|A4=>I18N::translateContext('paper size','A4')|legal=>I18N::translateContext('paper size','Legal')"><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="95"/>
30	<SetVar name="placewidth" value="325"/>
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=='PLAC'"><SetVar name="fill" value="#AAAAAA" /></if>
51			<TextBox bgcolor="$fill" border="1" width="$placewidth">
52				<Text style="label"><var var="I18N::translate('Place')" /></Text>
53			</TextBox>
54
55			<TextBox border="1" newline="1">
56				<Text style="label"><var var="I18N::translate('Note')" /></Text>
57			</TextBox>
58		</Header>
59		<Body>
60			<List list="individual" filter1="BURI:PLAC CONTAINS $deathplace" filter2="REGEXP /\n1 BURI/" sortby="$sortby">
61				<Cell style="text" width="$namewidth"><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				</Cell>
75				<Cell style="text" width="$datewidth">
76					<GedcomValue tag="DEAT:DATE" newline="1" />
77				</Cell>
78				<Cell style="text" width="$placewidth">
79					<GedcomValue tag="BURI:CEME" />
80					<if condition="@BURI:CEME !== ''">, </if>
81					<GedcomValue tag="BURI:PLAC" />
82				</Cell>
83				<Cell newline="1" style="text">
84					<GedcomValue tag="BURI:NOTE" />
85				</Cell>
86			</List>
87			<Cell align="rightrtl" newline="1" style="label">
88				<br />
89				<var var="I18N::translate('Total individuals')" />: <ListTotal />
90			</Cell>
91		</Body>
92		<Footer>
93			<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
94		</Footer>
95	</Doc>
96</Report>
97