xref: /webtrees/resources/xml/reports/marriage_report.xml (revision 2ebcf907ed34213f816592af04e6c160335d6311)
1<?xml version="1.0" encoding="UTF-8" ?>
2<Report>
3	<Title><var var="I18N::translate('Marriages')" /></Title>
4	<Description><var var="I18N::translate('A report of individuals who were married in a given time or place.')" /></Description>
5	<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
6	<Input name="marrplace" lookup="PLAC" type="text"><var var="I18N::translate('Marriage place contains')" /> </Input>
7	<Input name="marrdate1" lookup="DATE" type="text"><var var="I18N::translate('Marriage date range start')" /></Input>
8	<Input name="marrdate2" lookup="DATE" type="text"><var var="I18N::translate('Marriage date range end')" /></Input>
9	<Input name="sortby" type="select" default="NAME" options="NAME=>I18N::translate('sort by name')|MARR:DATE=>I18N::translate('sort by date of marriage')"><var var="I18N::translate('Sort order')" /></Input>
10	<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>
11	<!--
12	<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>
13	-->
14	<SetVar name="fonts" value="dejavusans" />
15
16	<!-- Header -->
17	<Style name="header" font="$fonts" size="16" style="b" />
18	<!-- Page numbers text -->
19	<Style name="pagenum" font="$fonts" size="8"/>
20	<!-- Generated by style - required style name by the generator -->
21	<Style name="genby" font="$fonts" size="8" />
22	<!-- Date tetx -->
23	<Style name="date" font="$fonts" size="8"/>
24	<Style name="text" font="$fonts" size="9" />
25	<Style name="spouse" font="$fonts" size="8" />
26	<Style name="label" font="$fonts" size="10" style="b"/>
27
28	<Doc pageSize="$pageSize" orientation="landscape">
29		<Header>
30			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Marriages')" /></Cell>
31			<Cell align="rightrtl" height="10" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
32
33			<SetVar name="fill" value="" />
34			<if condition="$sortby=='NAME'">
35				<SetVar name="fill" value="#AAAAAA" />
36			</if>
37			<TextBox bgcolor="$fill" border="1" height="12" width="200">
38				<Text style="label"><var var="I18N::translate('Name')" /></Text>
39			</TextBox>
40
41			<SetVar name="fill" value="" />
42			<if condition="$sortby=='MARR:DATE'">
43				<SetVar name="fill" value="#AAAAAA" />
44			</if>
45			<TextBox bgcolor="$fill" border="1" height="12" width="100">
46				<Text style="label"><var var="I18N::translate('Date')" /></Text>
47			</TextBox>
48
49			<TextBox border="1" height="12" width="150">
50				<Text style="label"><var var="I18N::translate('Place')" /></Text>
51			</TextBox>
52
53			<TextBox border="1" height="12" newline="1">
54				<Text style="label"><var var="I18N::translate('Source')" /></Text>
55			</TextBox>
56		</Header>
57
58		<Body>
59			<SetVar name="printedFamilies" value="0" />
60			<List list="family" filter1="MARR:PLAC CONTAINS $marrplace" filter2="MARR:DATE GTE $marrdate1" filter3="MARR:DATE LTE $marrdate2" filter4="NAME CONTAINS $name" sortby="$sortby">
61				<SetVar name="skipFamily" value="no" />
62				<if condition="$name!=''">
63					<SetVar name="skipFamily" value="yes" />
64					<Gedcom id="@HUSB">
65						<if condition="stristr(@NAME,$name)!==false">
66							<SetVar name="skipFamily" value="no" />
67						</if>
68					</Gedcom>
69					<Gedcom id="@WIFE">
70						<if condition="stristr(@NAME,$name)!==false">
71							<SetVar name="skipFamily" value="no" />
72						</if>
73					</Gedcom>
74				</if>
75				<if condition="$skipFamily=='no'">
76					<SetVar name="printedFamilies" value="$printedFamilies+1" />
77
78					<TextBox height="12" width="200">
79						<Text style="text"><GetPersonName id="@HUSB" />
80							<br />   <GetPersonName id="@WIFE" />
81						</Text>
82					</TextBox>
83
84					<TextBox height="12" width="100">
85						<Text style="text"><GedcomValue tag="MARR:DATE" newline="1" /></Text>
86					</TextBox>
87
88					<TextBox height="12" width="150">
89						<Text style="text"><GedcomValue tag="MARR:PLAC" /></Text>
90					</TextBox>
91
92					<TextBox height="12" newline="1">
93						<!-- Only with multiple sources use line feed (br) -->
94						<SetVar name="usebr" value="0"/>
95						<Text style="text">
96							<RepeatTag tag="MARR:SOUR">
97								<Gedcom id="@SOUR">
98									<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
99									«<GedcomValue tag="TITL" />»
100									<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
101								</Gedcom>
102								<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
103								 <GedcomValue tag="SOUR:DATA:TEXT" />
104								<SetVar name="usebr" value="1"/>
105							</RepeatTag>
106						</Text>
107					</TextBox>
108
109				</if>
110			</List>
111			<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total families')"/>: <var var="printedFamilies" /></Cell>
112		</Body>
113		<Footer>
114			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
115		</Footer>
116	</Doc>
117</Report>
118