xref: /webtrees/resources/xml/reports/bdm_report.xml (revision 4d314e6b28a3e57668463e010244449523e91e5c)
19cad7645SGreg Roach<?xml version="1.0" encoding="UTF-8" ?>
29cad7645SGreg Roach<Report>
39cad7645SGreg Roach	<Title><var var="I18N::translate('Vital records')" /></Title>
49cad7645SGreg Roach	<Description><var var="I18N::translate('A report of vital records for a given date or place.')" /></Description>
59cad7645SGreg Roach	<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
69cad7645SGreg Roach	<Input name="bdmplace" lookup="PLAC" type="text"><var var="I18N::translate('Place')" /></Input>
79cad7645SGreg Roach	<Input name="birthdate1" lookup="DATE" type="text"><var var="I18N::translate('Birth date range start')" /></Input>
89cad7645SGreg Roach	<Input name="birthdate2" lookup="DATE" type="text"><var var="I18N::translate('Birth date range end')" /></Input>
99cad7645SGreg Roach	<Input name="deathdate1" lookup="DATE" type="text"><var var="I18N::translate('Death date range start')" /></Input>
109cad7645SGreg Roach	<Input name="deathdate2" lookup="DATE" type="text"><var var="I18N::translate('Death date range end')" /></Input>
119cad7645SGreg Roach	<Input name="sortby" type="select" default="BIRT:DATE" options="NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')|DEAT:DATE=>I18N::translate('sort by date of death')"><var var="I18N::translate('Sort order')" /></Input>
12*4d314e6bSGreg Roach	<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>
139cad7645SGreg Roach	<!--
149cad7645SGreg Roach	<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>
159cad7645SGreg Roach	-->
169cad7645SGreg Roach	<SetVar name="fonts" value="dejavusans" />
179cad7645SGreg Roach
189cad7645SGreg Roach	<!-- Header -->
199cad7645SGreg Roach	<Style name="header" font="$fonts" size="15" style="b" />
209cad7645SGreg Roach	<!-- Page numbers text -->
219cad7645SGreg Roach	<Style name="pagenum" font="$fonts" size="8"/>
229cad7645SGreg Roach	<!-- Standard text -->
239cad7645SGreg Roach	<Style name="text" font="$fonts" size="9"/>
249cad7645SGreg Roach	<!-- Generated by style - required style name by the generator -->
259cad7645SGreg Roach	<Style name="genby" font="$fonts" size="8" />
269cad7645SGreg Roach	<!-- Date text -->
279cad7645SGreg Roach	<Style name="date" font="$fonts" size="8"/>
289cad7645SGreg Roach	<Style name="small" font="$fonts" size="7"/>
299cad7645SGreg Roach	<Style name="label" font="$fonts" size="10" style="b" />
309cad7645SGreg Roach
319cad7645SGreg Roach	<Doc pageSize="$pageSize" orientation="landscape">
329cad7645SGreg Roach		<Header>
339cad7645SGreg Roach			<Cell align="center" newline="1" style="header">
349cad7645SGreg Roach				<var var="I18N::translate('Vital records')" />
359cad7645SGreg Roach				<if condition="$name!=''">
369cad7645SGreg Roach				    : <var var="name" />
379cad7645SGreg Roach				</if>
389cad7645SGreg Roach				<if condition="$bdmplace!=''">
399cad7645SGreg Roach					: <var var="bdmplace" />
409cad7645SGreg Roach				</if>
419cad7645SGreg Roach			</Cell>
429cad7645SGreg Roach			<Cell align="rightrtl" height="10" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
439cad7645SGreg Roach			<!-- Name -->
449cad7645SGreg Roach			<SetVar name="fill" value="" />
459cad7645SGreg Roach			<if condition="$sortby=='NAME'">
469cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
479cad7645SGreg Roach			</if>
489cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" height="12" width="205">
499cad7645SGreg Roach				<Text style="label"><var var="I18N::translate('Name')" /></Text>
509cad7645SGreg Roach			</TextBox>
519cad7645SGreg Roach			<!-- Birth -->
529cad7645SGreg Roach			<SetVar name="fill" value="" />
539cad7645SGreg Roach			<if condition="$sortby=='BIRT:DATE'">
549cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
559cad7645SGreg Roach			</if>
569cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" height="12" width="165">
579cad7645SGreg Roach				<Text style="label">
589cad7645SGreg Roach					<var var="I18N::translate('Birth')" />
599cad7645SGreg Roach					<if condition="$birthdate1!='' or $birthdate2!=''">
609cad7645SGreg Roach						[
619cad7645SGreg Roach						<if condition="$birthdate1!=''">
629cad7645SGreg Roach							<var var="birthdate1" />
639cad7645SGreg Roach						</if>
649cad7645SGreg Roach						-
659cad7645SGreg Roach						<if condition="$birthdate2!=''">
669cad7645SGreg Roach							<var var="birthdate2" />
679cad7645SGreg Roach						</if>
689cad7645SGreg Roach						]
699cad7645SGreg Roach					</if>
709cad7645SGreg Roach				</Text>
719cad7645SGreg Roach			</TextBox>
729cad7645SGreg Roach			<!-- Marrige -->
739cad7645SGreg Roach			<SetVar name="fill" value="" />
749cad7645SGreg Roach			<if condition="$sortby=='MARR:DATE'">
759cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
769cad7645SGreg Roach			</if>
779cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" height="12" width="165">
789cad7645SGreg Roach				<Text style="label"><var var="I18N::translate('Marriage')" /></Text>
799cad7645SGreg Roach			</TextBox>
809cad7645SGreg Roach			<!-- Death -->
819cad7645SGreg Roach			<SetVar name="fill" value="" />
829cad7645SGreg Roach			<if condition="$sortby=='DEAT:DATE'">
839cad7645SGreg Roach				<SetVar name="fill" value="#AAAAAA" />
849cad7645SGreg Roach			</if>
859cad7645SGreg Roach			<TextBox bgcolor="$fill" border="1" height="12" newline="1">
869cad7645SGreg Roach				<Text style="label">
879cad7645SGreg Roach					<var var="I18N::translate('Death')" />
889cad7645SGreg Roach					<if condition="$deathdate1!='' or $deathdate2!=''">
899cad7645SGreg Roach						[
909cad7645SGreg Roach						<if condition="$deathdate1!=''">
919cad7645SGreg Roach							<var var="deathdate1" />
929cad7645SGreg Roach						</if>
939cad7645SGreg Roach						-
949cad7645SGreg Roach						<if condition="$deathdate2!=''">
959cad7645SGreg Roach							<var var="deathdate2" />
969cad7645SGreg Roach						</if>
979cad7645SGreg Roach						]
989cad7645SGreg Roach					</if>
999cad7645SGreg Roach				</Text>
1009cad7645SGreg Roach			</TextBox>
1019cad7645SGreg Roach		</Header>
1029cad7645SGreg Roach
1039cad7645SGreg Roach		<Body>
1049cad7645SGreg Roach			<SetVar name="filter1" value="" />
1059cad7645SGreg Roach			<if condition="$bdmplace!=''">
1069cad7645SGreg Roach				<SetVar name="filter1" value=":PLAC CONTAINS $bdmplace" />
1079cad7645SGreg Roach				<!-- todo: print only if BDM place is the searched place - use OR - search also on marriage place and date -->
1089cad7645SGreg Roach			</if>
1099cad7645SGreg Roach
1109cad7645SGreg Roach			<List list="individual" filter1="$filter1" filter2="BIRT:DATE GTE $birthdate1" filter3="BIRT:DATE LTE $birthdate2" filter4="DEAT:DATE GTE $deathdate1" filter5="DEAT:DATE LTE $deathdate2" filter6="NAME CONTAINS $name" sortby="$sortby">
1119cad7645SGreg Roach				<SetVar name="spid" value="@ID" />
1129cad7645SGreg Roach
1139cad7645SGreg Roach				<TextBox width="205" height="46">
1149cad7645SGreg Roach					<Text style="text">
1159cad7645SGreg Roach						<GetPersonName id="" /><br />
1169cad7645SGreg Roach					</Text>
1179cad7645SGreg Roach					<Text style="small">
1189cad7645SGreg Roach						   <var var="I18N::translate('Father')" />
1199cad7645SGreg Roach						: <Gedcom id="@FAMC"><GetPersonName id="@HUSB" /></Gedcom>
1209cad7645SGreg Roach						<br />   <var var="I18N::translate('Mother')" />
1219cad7645SGreg Roach						: <Gedcom id="@FAMC"><GetPersonName id="@WIFE" /></Gedcom>
1229cad7645SGreg Roach					</Text>
1239cad7645SGreg Roach				</TextBox>
1249cad7645SGreg Roach
1259cad7645SGreg Roach				<TextBox width="165" height="46" border="0">
1269cad7645SGreg Roach					<SetVar name="moreB" value="0" />
1279cad7645SGreg Roach					<Text style="small">
1289cad7645SGreg Roach						<RepeatTag tag="BIRT">
1299cad7645SGreg Roach							<if condition="$moreB==1">
1309cad7645SGreg Roach								<br />
1319cad7645SGreg Roach							</if>
1329cad7645SGreg Roach							<var var="I18N::translate('Date')" />
1339cad7645SGreg Roach							: <GedcomValue tag="BIRT:DATE" />
1349cad7645SGreg Roach							<br />  <var var="I18N::translate('Place')" />
1359cad7645SGreg Roach							: <GedcomValue tag="BIRT:PLAC" />
1369cad7645SGreg Roach							<br />  <var var="I18N::translate('Source')" />
1379cad7645SGreg Roach							: <RepeatTag tag="BIRT:SOUR">
1389cad7645SGreg Roach								<Gedcom id="@SOUR">
1399cad7645SGreg Roach									<GedcomValue tag="TITL" />
1409cad7645SGreg Roach								</Gedcom>
1419cad7645SGreg Roach							</RepeatTag>
1429cad7645SGreg Roach							<SetVar name="moreB" value="1" />
1439cad7645SGreg Roach						</RepeatTag>
1449cad7645SGreg Roach					</Text>
1459cad7645SGreg Roach				</TextBox>
1469cad7645SGreg Roach
1479cad7645SGreg Roach				<TextBox width="165" height="46" border="0">
1489cad7645SGreg Roach					<SetVar name="more" value="0" />
1499cad7645SGreg Roach					<RepeatTag tag="FAMS">
1509cad7645SGreg Roach						<Text style="small">
1519cad7645SGreg Roach							<Gedcom id="@FAMS">
1529cad7645SGreg Roach								<if condition="$more==1">
1539cad7645SGreg Roach									<br />
1549cad7645SGreg Roach									________________________________
1559cad7645SGreg Roach									<br />
1569cad7645SGreg Roach								</if>
1579cad7645SGreg Roach								<!-- todo: print the dates, places and sources of all the FAM MARR records -->
1589cad7645SGreg Roach								<var var="I18N::translate('Date')" />
1599cad7645SGreg Roach								: <GedcomValue tag="MARR:DATE" />
1609cad7645SGreg Roach								<br />  <var var="I18N::translate('Place')" />
1619cad7645SGreg Roach								: <GedcomValue tag="MARR:PLAC" />
1629cad7645SGreg Roach								<br />  <var var="I18N::translate('Source')" />
1639cad7645SGreg Roach								: <RepeatTag tag="MARR:SOUR">
1649cad7645SGreg Roach									<Gedcom id="@SOUR">
1659cad7645SGreg Roach										<GedcomValue tag="TITL" />
1669cad7645SGreg Roach									</Gedcom>
1679cad7645SGreg Roach								</RepeatTag>
1689cad7645SGreg Roach								<br />
1699cad7645SGreg Roach								<var var="I18N::translate('Spouse')" />
1709cad7645SGreg Roach								:
1719cad7645SGreg Roach								<SetVar name="hpid" value="@HUSB"/>
1729cad7645SGreg Roach								<SetVar name="wpid" value="@WIFE"/>
1739cad7645SGreg Roach								<if condition="$spid==$wpid">
1749cad7645SGreg Roach									<GetPersonName id="@HUSB" />
1759cad7645SGreg Roach								</if>
1769cad7645SGreg Roach								<if condition="$spid==$hpid">
1779cad7645SGreg Roach									<GetPersonName id="@WIFE" />
1789cad7645SGreg Roach								</if>
1799cad7645SGreg Roach								<SetVar name="more" value="1" />
1809cad7645SGreg Roach							</Gedcom>
1819cad7645SGreg Roach						</Text>
1829cad7645SGreg Roach					</RepeatTag>
1839cad7645SGreg Roach				</TextBox>
1849cad7645SGreg Roach
1859cad7645SGreg Roach				<TextBox border="0" height="46" newline="1">
1869cad7645SGreg Roach					<SetVar name="moreD" value="0" />
1879cad7645SGreg Roach					<Text style="small">
1889cad7645SGreg Roach						<RepeatTag tag="DEAT">
1899cad7645SGreg Roach							<if condition="$moreD==1">
1909cad7645SGreg Roach								<br />
1919cad7645SGreg Roach							</if>
1929cad7645SGreg Roach							<var var="I18N::translate('Date')" />
1939cad7645SGreg Roach							: <GedcomValue tag="DEAT:DATE" />
1949cad7645SGreg Roach							<br />  <var var="I18N::translate('Place')" />
1959cad7645SGreg Roach							: <GedcomValue tag="DEAT:PLAC" />
1969cad7645SGreg Roach							<br />  <var var="I18N::translate('Source')" />
1979cad7645SGreg Roach							: <RepeatTag tag="DEAT:SOUR">
1989cad7645SGreg Roach								<Gedcom id="@SOUR">
1999cad7645SGreg Roach									<GedcomValue tag="TITL" />
2009cad7645SGreg Roach								</Gedcom>
2019cad7645SGreg Roach							</RepeatTag>
2029cad7645SGreg Roach							<SetVar name="moreD" value="1" />
2039cad7645SGreg Roach						</RepeatTag>
2049cad7645SGreg Roach					</Text>
2059cad7645SGreg Roach				</TextBox>
2069cad7645SGreg Roach				<Line />
2079cad7645SGreg Roach			</List>
2089cad7645SGreg Roach
2099cad7645SGreg Roach			<Cell align="rightrtl" height="24" newline="1" style="label"><br />
2109cad7645SGreg Roach				<var var="I18N::translate('Total individuals')" />
2119cad7645SGreg Roach				: <ListTotal />
2129cad7645SGreg Roach			</Cell>
2139cad7645SGreg Roach		</Body>
2149cad7645SGreg Roach		<Footer>
2159cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
2169cad7645SGreg Roach		</Footer>
2179cad7645SGreg Roach	</Doc>
2189cad7645SGreg Roach</Report>
219