1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00
webtrees_ynh/sources/modules_v3/birth_report/report.xml

73 lines
4.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<Report>
<Title><var var="I18N::translate('Births')" /></Title>
<Description><var var="I18N::translate('A report of individuals who were born in a given time or place.')" /></Description>
<Input name="name" lookup="NAME" type="text"><var var="I18N::translate('Name')" /></Input>
<Input name="birthplace" lookup="PLAC" type="text"><var var="I18N::translate('Birthplace contains')" /></Input>
<Input name="birthdate1" lookup="DATE" type="text"><var var="I18N::translate('Birth date range start')" /></Input>
<Input name="birthdate2" lookup="DATE" type="text"><var var="I18N::translate('Birth date range end')" /></Input>
<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>
<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>
<!--
<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>
-->
<SetVar name="fonts" value="dejavusans" />
<!-- Header -->
<Style name="header" font="$fonts" size="16" style="b"/>
<!-- Page numbers text -->
<Style name="pagenum" font="$fonts" size="8"/>
<!-- Generated by style - required style name by the generator -->
<Style name="genby" font="$fonts" size="8"/>
<!-- Column labels -->
<Style name="label" font="$fonts" size="10" style="b"/>
<!-- Standard text -->
<Style name="text" font="$fonts" size="9"/>
<!-- Date text -->
<Style name="date" font="$fonts" size="8"/>
<Doc pageSize="$pageSize" orientation="landscape" >
<Header>
<Cell align="center" height="20" newline="1" style="header"><var var="I18N::translate('Births')" /></Cell>
<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
<SetVar name="fill" value="" />
<if condition="$sortby=='NAME'"><SetVar name="fill" value="#AAAAAA" /></if>
<Cell bgcolor="$fill" border="1" width="200" style="label"><var var="I18N::translate('Name')" /></Cell>
<SetVar name="fill" value="" />
<if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
<Cell bgcolor="$fill" border="1" width="100" style="label"><var var="I18N::translate('Date')" /></Cell>
<Cell border="1" width="150" style="label"><var var="I18N::translate('Place')" /></Cell>
<Cell border="1" newline="1" style="label"><var var="I18N::translate('Source')" /></Cell>
</Header>
<Body>
<List list="individual" filter1="BIRT:PLAC CONTAINS $birthplace" filter2="BIRT:DATE GTE $birthdate1" filter3="BIRT:DATE LTE $birthdate2" filter4="NAME CONTAINS $name" sortby="$sortby">
<Cell width="200" style="text"><GetPersonName id="" /></Cell>
<Cell width="100" style="text"><GedcomValue tag="BIRT:DATE" newline="1" /></Cell>
<Cell width="150" style="text"><GedcomValue tag="BIRT:PLAC" /></Cell>
<Cell newline="1" style="text">
<!-- Only with multiple sources use line feed (br) -->
<SetVar name="usebr" value="0"/>
<RepeatTag tag="BIRT:SOUR">
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
<SetVar name="usebr" value="1"/>
</RepeatTag>
</Cell>
</List>
<Cell align="rightrtl" height="24" newline="1" style="label"><br/><var var="I18N::translate('Total individuals')"/>: <ListTotal/></Cell>
</Body>
<Footer>
<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
</Footer>
</Doc>
</Report>