xref: /webtrees/resources/xml/reports/birth_report.xml (revision 4d314e6b28a3e57668463e010244449523e91e5c)
19cad7645SGreg Roach<?xml version="1.0" encoding="UTF-8" ?>
29cad7645SGreg Roach<Report>
39cad7645SGreg Roach	<Title><var var="I18N::translate('Births')" /></Title>
49cad7645SGreg Roach	<Description><var var="I18N::translate('A report of individuals who were born in a given time or place.')" /></Description>
59cad7645SGreg Roach	<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
69cad7645SGreg Roach	<Input name="birthplace" lookup="PLAC" type="text"><var var="I18N::translate('Birthplace contains')" /></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="sortby" type="select" default="NAME" options="NAME=>I18N::translate('sort by name')|BIRT:DATE=>I18N::translate('sort by date of birth')"><var var="I18N::translate('Sort order')" /></Input>
10*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>
119cad7645SGreg Roach	<!--
129cad7645SGreg 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>
139cad7645SGreg Roach	-->
149cad7645SGreg Roach	<SetVar name="fonts" value="dejavusans" />
159cad7645SGreg Roach
169cad7645SGreg Roach	<!-- Header -->
179cad7645SGreg Roach	<Style name="header" font="$fonts" size="16" style="b"/>
189cad7645SGreg Roach	<!-- Page numbers text -->
199cad7645SGreg Roach	<Style name="pagenum" font="$fonts" size="8"/>
209cad7645SGreg Roach	<!-- Generated by style - required style name by the generator -->
219cad7645SGreg Roach	<Style name="genby" font="$fonts" size="8"/>
229cad7645SGreg Roach	<!-- Column labels -->
239cad7645SGreg Roach	<Style name="label" font="$fonts" size="10" style="b"/>
249cad7645SGreg Roach	<!-- Standard text -->
259cad7645SGreg Roach	<Style name="text" font="$fonts" size="9"/>
269cad7645SGreg Roach	<!-- Date text -->
279cad7645SGreg Roach	<Style name="date" font="$fonts" size="8"/>
289cad7645SGreg Roach
299cad7645SGreg Roach	<Doc pageSize="$pageSize" orientation="landscape" >
309cad7645SGreg Roach		<Header>
319cad7645SGreg Roach			<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Births')" /></Cell>
329cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
339cad7645SGreg Roach
349cad7645SGreg Roach			<SetVar name="fill" value="" />
359cad7645SGreg Roach			<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
369cad7645SGreg Roach			<Cell bgcolor="$fill" border="1" width="200" style="label"><var var="I18N::translate('Name')" /></Cell>
379cad7645SGreg Roach
389cad7645SGreg Roach			<SetVar name="fill" value="" />
399cad7645SGreg Roach			<if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
409cad7645SGreg Roach			<Cell bgcolor="$fill" border="1" width="100" style="label"><var var="I18N::translate('Date')" /></Cell>
419cad7645SGreg Roach
429cad7645SGreg Roach			<Cell border="1" width="150" style="label"><var var="I18N::translate('Place')" /></Cell>
439cad7645SGreg Roach			<Cell border="1" newline="1" style="label"><var var="I18N::translate('Source')" /></Cell>
449cad7645SGreg Roach		</Header>
459cad7645SGreg Roach
469cad7645SGreg Roach		<Body>
479cad7645SGreg Roach			<List list="individual" filter1="BIRT:PLAC CONTAINS $birthplace" filter2="BIRT:DATE GTE $birthdate1" filter3="BIRT:DATE LTE $birthdate2" filter4="NAME CONTAINS $name" sortby="$sortby">
489cad7645SGreg Roach				<Cell width="200" style="text"><GetPersonName id="" /></Cell>
499cad7645SGreg Roach				<Cell width="100" style="text"><GedcomValue tag="BIRT:DATE" newline="1" /></Cell>
509cad7645SGreg Roach				<Cell width="150" style="text"><GedcomValue tag="BIRT:PLAC" /></Cell>
519cad7645SGreg Roach				<Cell newline="1" style="text">
529cad7645SGreg Roach					<!-- Only with multiple sources use line feed (br) -->
539cad7645SGreg Roach					<SetVar name="usebr" value="0"/>
549cad7645SGreg Roach					<RepeatTag tag="BIRT:SOUR">
559cad7645SGreg Roach						<Gedcom id="@SOUR">
569cad7645SGreg Roach							<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
579cad7645SGreg Roach							«<GedcomValue tag="TITL" />»
589cad7645SGreg Roach							<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
599cad7645SGreg Roach						</Gedcom>
609cad7645SGreg Roach						<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
619cad7645SGreg Roach						 <GedcomValue tag="SOUR:DATA:TEXT" />
629cad7645SGreg Roach						<SetVar name="usebr" value="1"/>
639cad7645SGreg Roach					</RepeatTag>
649cad7645SGreg Roach				</Cell>
659cad7645SGreg Roach			</List>
669cad7645SGreg Roach			<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total individuals')"/>: <ListTotal/></Cell>
679cad7645SGreg Roach		</Body>
689cad7645SGreg Roach		<Footer>
699cad7645SGreg Roach			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
709cad7645SGreg Roach		</Footer>
719cad7645SGreg Roach	</Doc>
729cad7645SGreg Roach</Report>
73