diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2010-12-27 21:45:24 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2010-12-27 21:45:24 +0000 |
| commit | 35b897a2e06b705b6163042139a2d38481c45a11 (patch) | |
| tree | 7eae1297d9ad0a639f82af3604cab55379ee74d9 | |
| parent | 229f98006995e762e4dd82861031212793c9d0e1 (diff) | |
| download | webtrees-35b897a2e06b705b6163042139a2d38481c45a11.tar.gz webtrees-35b897a2e06b705b6163042139a2d38481c45a11.tar.bz2 webtrees-35b897a2e06b705b6163042139a2d38481c45a11.zip | |
add missing svn properties
| -rw-r--r-- | modules/occupation_report/module.php | 126 | ||||
| -rw-r--r-- | modules/occupation_report/report.xml | 200 | ||||
| -rw-r--r-- | modules/source_report/report_s.xml | 557 |
3 files changed, 442 insertions, 441 deletions
diff --git a/modules/occupation_report/module.php b/modules/occupation_report/module.php index ace6c2e39f..946481dba3 100644 --- a/modules/occupation_report/module.php +++ b/modules/occupation_report/module.php @@ -1,63 +1,63 @@ -<?php
-/**
- * Classes and libraries for module system
- *
- * webtrees: Web based Family History software
- * Copyright (C) 2010 webtrees development team.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package webtrees
- * @subpackage Modules
- * @version $Id: module.php 9954 2010-11-25 04:35:13Z larry $
- */
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-require_once WT_ROOT.'includes/classes/class_module.php';
-
-class occupation_report_WT_Module extends WT_Module implements WT_Module_Report {
- // Extend class WT_Module
- public function getTitle() {
- return i18n::translate('Occupation Report');
- }
-
- // Extend class WT_Module
- public function getDescription() {
- return i18n::translate('Prints a list of individuals occupation matching specific criteria');
- }
-
- // Extend class WT_Module
- public function defaultAccessLevel() {
- return WT_PRIV_USER;
- }
-
- // Implement WT_Module_Report - a module can provide many reports
- public function getReportMenus() {
- global $WT_IMAGES, $TEXT_DIRECTION;
-
- if ($TEXT_DIRECTION=="rtl") $ff="_rtl"; else $ff="";
-
- $menus=array();
- $menu=new Menu($this->getTitle(), 'reportengine.php?ged='.WT_GEDURL.'&action=setup&report=modules/'.$this->getName().'/report.xml');
- $menu->addIcon('indis');
- $menu->addClass("submenuitem$ff", "submenuitem_hover$ff", "submenu$ff", "icon_small_reports");
- $menus[]=$menu;
-
- return $menus;
- }
-}
+<?php +/** + * Classes and libraries for module system + * + * webtrees: Web based Family History software + * Copyright (C) 2010 webtrees development team. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * @package webtrees + * @subpackage Modules + * @version $Id$ + */ + +if (!defined('WT_WEBTREES')) { + header('HTTP/1.0 403 Forbidden'); + exit; +} +require_once WT_ROOT.'includes/classes/class_module.php'; + +class occupation_report_WT_Module extends WT_Module implements WT_Module_Report { + // Extend class WT_Module + public function getTitle() { + return i18n::translate('Occupation Report'); + } + + // Extend class WT_Module + public function getDescription() { + return i18n::translate('Prints a list of individuals occupation matching specific criteria'); + } + + // Extend class WT_Module + public function defaultAccessLevel() { + return WT_PRIV_USER; + } + + // Implement WT_Module_Report - a module can provide many reports + public function getReportMenus() { + global $WT_IMAGES, $TEXT_DIRECTION; + + if ($TEXT_DIRECTION=="rtl") $ff="_rtl"; else $ff=""; + + $menus=array(); + $menu=new Menu($this->getTitle(), 'reportengine.php?ged='.WT_GEDURL.'&action=setup&report=modules/'.$this->getName().'/report.xml'); + $menu->addIcon('indis'); + $menu->addClass("submenuitem$ff", "submenuitem_hover$ff", "submenu$ff", "icon_small_reports"); + $menus[]=$menu; + + return $menus; + } +} diff --git a/modules/occupation_report/report.xml b/modules/occupation_report/report.xml index 00a55426b0..500198efb8 100644 --- a/modules/occupation_report/report.xml +++ b/modules/occupation_report/report.xml @@ -1,101 +1,101 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<Report>
-<!-- $Id: report.xml 10021 2010-12-10 15:09:34Z lukasz $ -->
- <Title><var var="i18n::translate('Occupation Report')" /></Title>
- <Description>Prints a list of individuals occupation matching specific criteria</Description>
- <Input name="occupation" lookup="OCCU" type="text"><var var="translate_fact('OCCU')" /> </Input>
- <Input name="sortby" type="select" default="NAME" options="none=>i18n::translate('None')|NAME=>i18n::translate('Name')|BIRT:DATE=>translate_fact('BIRT:DATE')"><var var="i18n::translate('Sort by')" /></Input>
- <Input name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><var var="i18n::translate('Page size')" /></Input>
- <Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><var var="i18n::translate('Font')"/></Input>
-
- <!-- Header -->
- <Style name="header" font="$fonts" size="16" style="b" />
- <!-- Page numbers text -->
- <Style name="pagenum" font="$fonts" size="8"/>
- <!-- Standard text -->
- <Style name="text" font="$fonts" size="8"/>
- <!-- Column labels -->
- <Style name="label" font="$fonts" size="10" style="b" />
- <!-- Generated by style - required style name by the generator -->
- <Style name="genby" font="$fonts" size="8" />
- <!-- Date text -->
- <Style name="date" font="$fonts" size="8"/>
-
- <!-- landscape orientation -->
- <SetVar name="namewidth" value="180"/>
- <SetVar name="datewidth" value="95"/>
- <SetVar name="occuwidth" value="130"/>
- <SetVar name="occudatewidth" value="95"/>
- <SetVar name="placewidth" value="100"/>
- <SetVar name="printedoccupation" value="0" />
- <SetVar name="morespaceindi" value="$namewidth + $datewidth" />
-
- <Doc pageSize="$pageSize" orientation="landscape">
- <Header>
- <Cell align="center" height="20" newline="1" style="header"><var var="i18n::translate('Occupation Report')" /></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>
- <TextBox bgcolor="$fill" border="1" width="$namewidth">
- <Text style="label"><var var="i18n::translate('Name')" /></Text>
- </TextBox>
-
- <SetVar name="fill" value="" />
- <if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if>
- <TextBox bgcolor="$fill" border="1" width="$datewidth">
- <Text style="label"><var var="translate_fact('BIRT:DATE')" /></Text>
- </TextBox>
- <!-- should print and sort by birth date -->
-
- <TextBox border="1" width="$occuwidth">
- <Text style="label"><var var="translate_fact('OCCU')" /></Text>
- </TextBox>
- <TextBox border="1" width="$occudatewidth">
- <Text style="label"><var var="translate_fact('DATE')" /></Text>
- </TextBox>
- <TextBox border="1" width="$placewidth">
- <Text style="label"><var var="translate_fact('PLAC')" /></Text>
- </TextBox>
-
- <TextBox border="1" newline="1">
- <Text style="label"><var var="translate_fact('NOTE')" /></Text>
- </TextBox>
- </Header>
- <Body>
- <List list="individual" filter1="OCCU CONTAINS $occupation" sortby="$sortby">
- <SetVar name="moreoccupation" value="0" />
- <!-- Printed List counter -->
- <SetVar name="printedoccupation" value="$printedoccupation + 1" />
- <Cell style="text" width="$namewidth"><GetPersonName id="" />
- </Cell>
- <Cell style="text" width="$datewidth"><GedcomValue tag="BIRT:DATE" newline="1" /></Cell>
- <RepeatTag tag="OCCU">
- <!-- Intend the fact line if more then one occupation -->
- <if condition="$moreoccupation==1">
- <Cell style="text" width="$morespaceindi"> </Cell>
- </if>
- <Cell style="text" width="$occuwidth"><GedcomValue tag="OCCU"/></Cell>
- <!-- Date of the fact -->
- <Cell style="text" width="$occudatewidth"><GedcomValue tag="OCCU:DATE"/></Cell>
- <!-- Place of the fact -->
- <Cell style="text" width="$placewidth"><GedcomValue tag="OCCU:PLAC"/></Cell>
- <!-- Note text -->
- <Cell style="text" newline="1">
- <RepeatTag tag="OCCU">
- <GedcomValue tag="OCCU:NOTE"/>
- <if condition="OCCU:NOTE!=''">
- <br /><GedcomValue tag="OCCU:NOTE"/>
- </if>
- </RepeatTag>
- </Cell>
- <SetVar name="moreoccupation" value="1" />
- </RepeatTag>
- </List>
- <Cell align="rightrtl" 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>
+<?xml version="1.0" encoding="UTF-8"?> +<Report> +<!-- $Id$ --> + <Title><var var="i18n::translate('Occupation Report')" /></Title> + <Description>Prints a list of individuals occupation matching specific criteria</Description> + <Input name="occupation" lookup="OCCU" type="text"><var var="translate_fact('OCCU')" /> </Input> + <Input name="sortby" type="select" default="NAME" options="none=>i18n::translate('None')|NAME=>i18n::translate('Name')|BIRT:DATE=>translate_fact('BIRT:DATE')"><var var="i18n::translate('Sort by')" /></Input> + <Input name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><var var="i18n::translate('Page size')" /></Input> + <Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><var var="i18n::translate('Font')"/></Input> + + <!-- Header --> + <Style name="header" font="$fonts" size="16" style="b" /> + <!-- Page numbers text --> + <Style name="pagenum" font="$fonts" size="8"/> + <!-- Standard text --> + <Style name="text" font="$fonts" size="8"/> + <!-- Column labels --> + <Style name="label" font="$fonts" size="10" style="b" /> + <!-- Generated by style - required style name by the generator --> + <Style name="genby" font="$fonts" size="8" /> + <!-- Date text --> + <Style name="date" font="$fonts" size="8"/> + + <!-- landscape orientation --> + <SetVar name="namewidth" value="180"/> + <SetVar name="datewidth" value="95"/> + <SetVar name="occuwidth" value="130"/> + <SetVar name="occudatewidth" value="95"/> + <SetVar name="placewidth" value="100"/> + <SetVar name="printedoccupation" value="0" /> + <SetVar name="morespaceindi" value="$namewidth + $datewidth" /> + + <Doc pageSize="$pageSize" orientation="landscape"> + <Header> + <Cell align="center" height="20" newline="1" style="header"><var var="i18n::translate('Occupation Report')" /></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> + <TextBox bgcolor="$fill" border="1" width="$namewidth"> + <Text style="label"><var var="i18n::translate('Name')" /></Text> + </TextBox> + + <SetVar name="fill" value="" /> + <if condition="$sortby=='BIRT:DATE'"><SetVar name="fill" value="#AAAAAA" /></if> + <TextBox bgcolor="$fill" border="1" width="$datewidth"> + <Text style="label"><var var="translate_fact('BIRT:DATE')" /></Text> + </TextBox> + <!-- should print and sort by birth date --> + + <TextBox border="1" width="$occuwidth"> + <Text style="label"><var var="translate_fact('OCCU')" /></Text> + </TextBox> + <TextBox border="1" width="$occudatewidth"> + <Text style="label"><var var="translate_fact('DATE')" /></Text> + </TextBox> + <TextBox border="1" width="$placewidth"> + <Text style="label"><var var="translate_fact('PLAC')" /></Text> + </TextBox> + + <TextBox border="1" newline="1"> + <Text style="label"><var var="translate_fact('NOTE')" /></Text> + </TextBox> + </Header> + <Body> + <List list="individual" filter1="OCCU CONTAINS $occupation" sortby="$sortby"> + <SetVar name="moreoccupation" value="0" /> + <!-- Printed List counter --> + <SetVar name="printedoccupation" value="$printedoccupation + 1" /> + <Cell style="text" width="$namewidth"><GetPersonName id="" /> + </Cell> + <Cell style="text" width="$datewidth"><GedcomValue tag="BIRT:DATE" newline="1" /></Cell> + <RepeatTag tag="OCCU"> + <!-- Intend the fact line if more then one occupation --> + <if condition="$moreoccupation==1"> + <Cell style="text" width="$morespaceindi"> </Cell> + </if> + <Cell style="text" width="$occuwidth"><GedcomValue tag="OCCU"/></Cell> + <!-- Date of the fact --> + <Cell style="text" width="$occudatewidth"><GedcomValue tag="OCCU:DATE"/></Cell> + <!-- Place of the fact --> + <Cell style="text" width="$placewidth"><GedcomValue tag="OCCU:PLAC"/></Cell> + <!-- Note text --> + <Cell style="text" newline="1"> + <RepeatTag tag="OCCU"> + <GedcomValue tag="OCCU:NOTE"/> + <if condition="OCCU:NOTE!=''"> + <br /><GedcomValue tag="OCCU:NOTE"/> + </if> + </RepeatTag> + </Cell> + <SetVar name="moreoccupation" value="1" /> + </RepeatTag> + </List> + <Cell align="rightrtl" 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>
\ No newline at end of file diff --git a/modules/source_report/report_s.xml b/modules/source_report/report_s.xml index 9ac827c131..8e4225c545 100644 --- a/modules/source_report/report_s.xml +++ b/modules/source_report/report_s.xml @@ -1,278 +1,279 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<Report>
- <Title><var var="i18n::translate('Sources Report')" /></Title>
- <Description>Prints a list of individuals and families with a specific source</Description>
-
- <Input name="sid" lookup="SOUR" default="" type="text"><var var="i18n::translate('Find Source ID')" /></Input>
- <Input name="sortby" type="select" default="BIRT:DATE" options="NAME=>i18n::translate('Name')|BIRT:DATE=>i18n::translate('Date of birth')|DEAT:DATE=>i18n::translate('Date of death')"><var var="i18n::translate('Sort by')" /></Input>
- <Input name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><var var="i18n::translate('Page size')" /></Input>
- <Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><var var="i18n::translate('Font')"/></Input>
-
- <!-- Header -->
- <Style name="header" font="$fonts" size="18" style="b" />
- <!-- Source Title -->
- <Style name="header2" font="$fonts" size="14" style="b" />
- <!-- Name of the List Type. INDI or FAM -->
- <Style name="listtype" font="$fonts" size="12" 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" />
- <!-- Date Text - CSS Style name -->
- <Style name="date" font="$fonts" size="8"/>
- <!-- Column list labels - CSS Style name -->
- <Style name="list_label" font="$fonts" size="9" style="b"/>
- <!-- List values - CSS Style name -->
- <Style name="list_value" font="$fonts" size="8"/>
-
- <SetVar name="nameindi" value="194" />
- <SetVar name="namefam" value="300" />
- <SetVar name="dateevent" value="110" />
- <SetVar name="fact" value="110" />
- <SetVar name="age" value="38" />
- <SetVar name="placeevent" value="107" />
- <SetVar name="vspace" value="5" />
- <SetVar name="printedsource" value="0" />
- <SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
-
- <Doc pageSize="$pageSize" orientation="landscape">
- <Header>
- <Cell align="center" newline="1" style="header"><var var="i18n::translate('Sources')" /></Cell>
- <Cell align="rightrtl" newline="1" style="pagenum"><var var="i18n::translate('Page')" /> <PageNum /> <var var="i18n::translate('of')" /> <TotalPages /></Cell>
- <!-- Source Title -->
- <Gedcom id="$sid">
- <Cell align="center" newline="1" style="header2"><GedcomValue tag="TITL" /></Cell>
- </Gedcom>
- </Header>
-
- <Line />
- <Body>
- <!-- List type -->
- <Cell align="center" newline="1" style="listtype"><var var="i18n::translate('Individuals')" /></Cell>
- <TextBox height="$vspace" newline="1" padding="0"/>
-
- <!-- Individual Name -->
- <SetVar name="fill" value="" />
- <if condition="$sortby=='NAME'">
- <SetVar name="fill" value="#AAAAAA" />
- </if>
- <Cell bgcolor="$fill" border="1" style="list_label" width="$nameindi"><var var="i18n::translate('Name')" /></Cell>
- <!-- Birth date -->
- <SetVar name="fill" value="" />
- <if condition="$sortby=='BIRT:DATE'">
- <SetVar name="fill" value="#AAAAAA" />
- </if>
- <Cell bgcolor="$fill" border="1" style="list_label" width="$dateevent"><var var="translate_fact('BIRT:DATE')" /></Cell>
- <!-- Birth place -->
- <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('BIRT:PLAC')" /></Cell>
- <!-- Death date -->
- <SetVar name="fill" value="" />
- <if condition="$sortby=='DEAT:DATE'">
- <SetVar name="fill" value="#AAAAAA" />
- </if>
- <Cell bgcolor="$fill" border="1" style="list_label" width="$dateevent"><var var="translate_fact('DEAT:DATE')" /></Cell>
- <Cell border="1" style="list_label" width="$age"><var var="translate_fact('AGE')" /></Cell>
- <!-- Death place -->
- <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('DEAT:PLAC')" /></Cell>
- <!-- Detailed source text -->
- <Cell border="1" newline="1" style="list_label"><var var="translate_fact('SOUR:PAGE')" /></Cell>
- <TextBox height="$vspace" newline="1" padding="0"/>
-
- <!-- Individual List -->
- <List list="individual" filter1=":SOUR CONTAINS @$sid@" sortby="$sortby">
- <SetVar name="moresource" value="0" />
- <SetVar name="printsource" value="0" />
- <!-- Printed List counter -->
- <SetVar name="printedsource" value="$printedsource + 1" />
- <!-- Individual Name -->
- <Cell style="list_value" width="$nameindi"><GetPersonName id="" />
- <Gedcom id="@FAMC">
- <br /> <var var="i18n::translate('Father')" />: <GetPersonName id="@HUSB"/>
- <br /> <var var="i18n::translate('Mother')" />: <GetPersonName id="@WIFE"/>
- </Gedcom>
- </Cell>
- <!-- Birth -->
- <Cell style="list_value" width="$dateevent"><GedcomValue tag="BIRT:DATE" /></Cell>
- <Cell style="list_value" width="$placeevent"><GedcomValue tag="BIRT:PLAC" /></Cell>
- <!-- Death -->
- <Cell style="list_value" width="$dateevent"><GedcomValue tag="DEAT:DATE"/></Cell>
- <Cell style="list_value" width="$age"><AgeAtDeath /></Cell>
- <Cell style="list_value" width="$placeevent"><GedcomValue tag="DEAT:PLAC" /></Cell>
- <Cell style="list_value" newline="1">
- <Facts ignore="$ignore">
- <SetVar name="printfact" value="0" />
- <RepeatTag tag="@fact:SOUR">
- <Gedcom id="@SOUR">
- <if condition="@ID==$sid">
- <SetVar name="printfact" value="1" />
- </if>
- </Gedcom>
- </RepeatTag>
- <if condition="$printfact==1">
- <SetVar name="printsource" value="0" />
- <!-- Intend the fact line if more then one fact has source -->
- <if condition="$moresource==1">
- <br />
- </if>
- <!-- Detailed source text -->
- <RepeatTag tag="@fact:SOUR">
- <Gedcom id="@SOUR">
- <if condition="@ID==$sid">
- <SetVar name="printsource" value="1" />
- </if>
- </Gedcom>
- <if condition="$printsource==1">
- <if condition="@fact=='CHR'">
- <varLetter var="BIRT" /> <GedcomValue tag="SOUR:PAGE"/>
- <if condition="@SOUR:DATA:TEXT!=''">
- <br /><GedcomValue tag="SOUR:DATA:TEXT"/>
- </if>
- </if>
- <if condition="@fact=='BURI'">
- <varLetter var="DEAT" /> <GedcomValue tag="SOUR:PAGE"/>
- <if condition="@SOUR:DATA:TEXT!=''">
- <br /><GedcomValue tag="SOUR:DATA:TEXT"/>
- </if>
- </if>
- <SetVar name="printsource" value="0" />
- </if>
- </RepeatTag>
- <SetVar name="moresource" value="1" />
- </if>
- <SetVar name="printfact" value="0" />
- </Facts>
- </Cell>
- <Line />
- </List>
-
- <!-- Print the list counter -->
- <if condition="$printedsource==0">
- <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total individuals')"/>: 0</Cell>
- </if>
- <if condition="$printedsource > 0">
- <TextBox height="$vspace" newline="1" padding="0"/>
- <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total individuals')"/>: <var var="printedsource" /></Cell>
- </if>
- <NewPage />
- <!-- Family List -->
- <TextBox height="$vspace" newline="1" padding="0"/>
- <Cell align="center" newline="1" style="listtype"><var var="i18n::translate('Families')" /></Cell>
- <TextBox height="$vspace" newline="1" padding="0"/>
- <!-- Family Name -->
- <Cell border="1" style="list_label" width="$namefam"><var var="i18n::translate('Name')" /></Cell>
- <!-- Name of the fact that contains the source -->
- <Cell border="1" style="list_label" width="$fact"><var var="i18n::translate('Event')" /></Cell>
- <!-- Date of the fact -->
- <Cell bgcolor="#AAAAAA" border="1" style="list_label" width="$dateevent"><var var="translate_fact('DATE')" /></Cell>
- <!-- Date of the fact -->
- <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('PLAC')" /></Cell>
- <!-- Detailed source text -->
- <Cell border="1" newline="1" style="list_label"><var var="translate_fact('SOUR:PAGE')" /></Cell>
-
- <!-- Family List -->
- <TextBox height="$vspace" newline="1" padding="0"/>
- <SetVar name="printedsource" value="0" />
- <List list="family" filter1=":SOUR CONTAINS @$sid@" sortby="MARR:DATE">
- <SetVar name="moresource" value="0" />
- <SetVar name="printsource" value="0" />
- <!-- Printed List counter -->
- <SetVar name="printedsource" value="$printedsource + 1" />
-
- <!-- Family Name -->
- <Cell style="list_value" width="$namefam"><GetPersonName id="" />
- <Gedcom id="@HUSB:@FAMC">
- <br /> <var var="i18n::translate('Husband\'s parents')" />: <GetPersonName id=""/>
- </Gedcom>
- <Gedcom id="@WIFE:@FAMC">
- <br /> <var var="i18n::translate('Wife\'s parents')" />: <GetPersonName id=""/>
- </Gedcom>
- </Cell>
- <Facts ignore="$ignore">
- <SetVar name="printfact" value="0" />
- <RepeatTag tag="@fact:SOUR">
- <Gedcom id="@SOUR">
- <if condition="@ID==$sid">
- <SetVar name="printfact" value="1" />
- </if>
- </Gedcom>
- </RepeatTag>
-
- <if condition="$printfact==1">
- <SetVar name="printsource" value="0" />
- <!-- Intend the fact line if more then one fact has source -->
- <if condition="$moresource==1">
- <Cell style="list_value" width="$namefam"> </Cell>
- </if>
-
- <!-- Name of the fact that contains the source -->
- <Cell style="list_value" width="$fact">
- <if condition="@fact=='MARR'">
- <!-- Print different type of marriages -->
- <if condition="@MARR:TYPE==''">
- <var var="@fact" />
- </if>
- <if condition="@MARR:TYPE=='Religious'">
- <var var="i18n::translate('Religious marriage')" />
- </if>
- <if condition="@MARR:TYPE=='Civil'">
- <var var="i18n::translate('Civil marriage')" />
- </if>
- <if condition="@MARR:TYPE=='Partners'">
- <var var="i18n::translate('Registered partnership')" />
- </if>
- </if>
- <if condition="@fact!='MARR'">
- <var var="@fact" />
- </if>
- <RepeatTag tag="@fact:NOTE">
- <if condition="@NOTE!=''">
- <br /><GedcomValue tag="NOTE"/>
- </if>
- </RepeatTag>
- </Cell>
-
- <!-- Date of the fact -->
- <Cell style="list_value" width="$dateevent"><GedcomValue tag="@fact:DATE"/></Cell>
- <!-- Place of the fact -->
- <Cell style="list_value" width="$placeevent"><GedcomValue tag="@fact:PLAC"/></Cell>
- <!-- Detailed source text -->
- <Cell style="list_value" newline="1">
- <RepeatTag tag="@fact:SOUR">
- <Gedcom id="@SOUR">
- <if condition="@ID==$sid">
- <SetVar name="printsource" value="1" />
- </if>
- </Gedcom>
- <if condition="$printsource==1">
- <GedcomValue tag="SOUR:PAGE"/>
- <if condition="@SOUR:DATA:TEXT!=''">
- <br /><GedcomValue tag="SOUR:DATA:TEXT"/>
- </if>
- <SetVar name="printsource" value="0" />
- </if>
- </RepeatTag>
- </Cell>
- <SetVar name="moresource" value="1" />
- </if>
- <SetVar name="printfact" value="0" />
- </Facts>
- <Line />
- </List>
-
- <!-- Print the list counter -->
- <if condition="$printedsource==0">
- <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total families')"/>: 0</Cell>
- </if>
- <if condition="$printedsource > 0">
- <TextBox height="$vspace" newline="1" padding="0"/>
- <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total families')"/>: <var var="printedsource" /></Cell>
- </if>
- <TextBox height="$vspace" newline="1" padding="0"/>
- </Body>
-
- <Footer>
- <Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
- </Footer>
-
- </Doc>
-</Report>
+<?xml version="1.0" encoding="UTF-8"?> +<Report> +<!-- $Id$ --> + <Title><var var="i18n::translate('Sources Report')" /></Title> + <Description>Prints a list of individuals and families with a specific source</Description> + + <Input name="sid" lookup="SOUR" default="" type="text"><var var="i18n::translate('Find Source ID')" /></Input> + <Input name="sortby" type="select" default="BIRT:DATE" options="NAME=>i18n::translate('Name')|BIRT:DATE=>i18n::translate('Date of birth')|DEAT:DATE=>i18n::translate('Date of death')"><var var="i18n::translate('Sort by')" /></Input> + <Input name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><var var="i18n::translate('Page size')" /></Input> + <Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><var var="i18n::translate('Font')"/></Input> + + <!-- Header --> + <Style name="header" font="$fonts" size="18" style="b" /> + <!-- Source Title --> + <Style name="header2" font="$fonts" size="14" style="b" /> + <!-- Name of the List Type. INDI or FAM --> + <Style name="listtype" font="$fonts" size="12" 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" /> + <!-- Date Text - CSS Style name --> + <Style name="date" font="$fonts" size="8"/> + <!-- Column list labels - CSS Style name --> + <Style name="list_label" font="$fonts" size="9" style="b"/> + <!-- List values - CSS Style name --> + <Style name="list_value" font="$fonts" size="8"/> + + <SetVar name="nameindi" value="194" /> + <SetVar name="namefam" value="300" /> + <SetVar name="dateevent" value="110" /> + <SetVar name="fact" value="110" /> + <SetVar name="age" value="38" /> + <SetVar name="placeevent" value="107" /> + <SetVar name="vspace" value="5" /> + <SetVar name="printedsource" value="0" /> + <SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/> + + <Doc pageSize="$pageSize" orientation="landscape"> + <Header> + <Cell align="center" newline="1" style="header"><var var="i18n::translate('Sources')" /></Cell> + <Cell align="rightrtl" newline="1" style="pagenum"><var var="i18n::translate('Page')" /> <PageNum /> <var var="i18n::translate('of')" /> <TotalPages /></Cell> + <!-- Source Title --> + <Gedcom id="$sid"> + <Cell align="center" newline="1" style="header2"><GedcomValue tag="TITL" /></Cell> + </Gedcom> + </Header> + + <Line /> + <Body> + <!-- List type --> + <Cell align="center" newline="1" style="listtype"><var var="i18n::translate('Individuals')" /></Cell> + <TextBox height="$vspace" newline="1" padding="0"/> + + <!-- Individual Name --> + <SetVar name="fill" value="" /> + <if condition="$sortby=='NAME'"> + <SetVar name="fill" value="#AAAAAA" /> + </if> + <Cell bgcolor="$fill" border="1" style="list_label" width="$nameindi"><var var="i18n::translate('Name')" /></Cell> + <!-- Birth date --> + <SetVar name="fill" value="" /> + <if condition="$sortby=='BIRT:DATE'"> + <SetVar name="fill" value="#AAAAAA" /> + </if> + <Cell bgcolor="$fill" border="1" style="list_label" width="$dateevent"><var var="translate_fact('BIRT:DATE')" /></Cell> + <!-- Birth place --> + <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('BIRT:PLAC')" /></Cell> + <!-- Death date --> + <SetVar name="fill" value="" /> + <if condition="$sortby=='DEAT:DATE'"> + <SetVar name="fill" value="#AAAAAA" /> + </if> + <Cell bgcolor="$fill" border="1" style="list_label" width="$dateevent"><var var="translate_fact('DEAT:DATE')" /></Cell> + <Cell border="1" style="list_label" width="$age"><var var="translate_fact('AGE')" /></Cell> + <!-- Death place --> + <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('DEAT:PLAC')" /></Cell> + <!-- Detailed source text --> + <Cell border="1" newline="1" style="list_label"><var var="translate_fact('SOUR:PAGE')" /></Cell> + <TextBox height="$vspace" newline="1" padding="0"/> + + <!-- Individual List --> + <List list="individual" filter1=":SOUR CONTAINS @$sid@" sortby="$sortby"> + <SetVar name="moresource" value="0" /> + <SetVar name="printsource" value="0" /> + <!-- Printed List counter --> + <SetVar name="printedsource" value="$printedsource + 1" /> + <!-- Individual Name --> + <Cell style="list_value" width="$nameindi"><GetPersonName id="" /> + <Gedcom id="@FAMC"> + <br /> <var var="i18n::translate('Father')" />: <GetPersonName id="@HUSB"/> + <br /> <var var="i18n::translate('Mother')" />: <GetPersonName id="@WIFE"/> + </Gedcom> + </Cell> + <!-- Birth --> + <Cell style="list_value" width="$dateevent"><GedcomValue tag="BIRT:DATE" /></Cell> + <Cell style="list_value" width="$placeevent"><GedcomValue tag="BIRT:PLAC" /></Cell> + <!-- Death --> + <Cell style="list_value" width="$dateevent"><GedcomValue tag="DEAT:DATE"/></Cell> + <Cell style="list_value" width="$age"><AgeAtDeath /></Cell> + <Cell style="list_value" width="$placeevent"><GedcomValue tag="DEAT:PLAC" /></Cell> + <Cell style="list_value" newline="1"> + <Facts ignore="$ignore"> + <SetVar name="printfact" value="0" /> + <RepeatTag tag="@fact:SOUR"> + <Gedcom id="@SOUR"> + <if condition="@ID==$sid"> + <SetVar name="printfact" value="1" /> + </if> + </Gedcom> + </RepeatTag> + <if condition="$printfact==1"> + <SetVar name="printsource" value="0" /> + <!-- Intend the fact line if more then one fact has source --> + <if condition="$moresource==1"> + <br /> + </if> + <!-- Detailed source text --> + <RepeatTag tag="@fact:SOUR"> + <Gedcom id="@SOUR"> + <if condition="@ID==$sid"> + <SetVar name="printsource" value="1" /> + </if> + </Gedcom> + <if condition="$printsource==1"> + <if condition="@fact=='CHR'"> + <varLetter var="BIRT" /> <GedcomValue tag="SOUR:PAGE"/> + <if condition="@SOUR:DATA:TEXT!=''"> + <br /><GedcomValue tag="SOUR:DATA:TEXT"/> + </if> + </if> + <if condition="@fact=='BURI'"> + <varLetter var="DEAT" /> <GedcomValue tag="SOUR:PAGE"/> + <if condition="@SOUR:DATA:TEXT!=''"> + <br /><GedcomValue tag="SOUR:DATA:TEXT"/> + </if> + </if> + <SetVar name="printsource" value="0" /> + </if> + </RepeatTag> + <SetVar name="moresource" value="1" /> + </if> + <SetVar name="printfact" value="0" /> + </Facts> + </Cell> + <Line /> + </List> + + <!-- Print the list counter --> + <if condition="$printedsource==0"> + <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total individuals')"/>: 0</Cell> + </if> + <if condition="$printedsource > 0"> + <TextBox height="$vspace" newline="1" padding="0"/> + <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total individuals')"/>: <var var="printedsource" /></Cell> + </if> + <NewPage /> + <!-- Family List --> + <TextBox height="$vspace" newline="1" padding="0"/> + <Cell align="center" newline="1" style="listtype"><var var="i18n::translate('Families')" /></Cell> + <TextBox height="$vspace" newline="1" padding="0"/> + <!-- Family Name --> + <Cell border="1" style="list_label" width="$namefam"><var var="i18n::translate('Name')" /></Cell> + <!-- Name of the fact that contains the source --> + <Cell border="1" style="list_label" width="$fact"><var var="i18n::translate('Event')" /></Cell> + <!-- Date of the fact --> + <Cell bgcolor="#AAAAAA" border="1" style="list_label" width="$dateevent"><var var="translate_fact('DATE')" /></Cell> + <!-- Date of the fact --> + <Cell border="1" style="list_label" width="$placeevent"><var var="translate_fact('PLAC')" /></Cell> + <!-- Detailed source text --> + <Cell border="1" newline="1" style="list_label"><var var="translate_fact('SOUR:PAGE')" /></Cell> + + <!-- Family List --> + <TextBox height="$vspace" newline="1" padding="0"/> + <SetVar name="printedsource" value="0" /> + <List list="family" filter1=":SOUR CONTAINS @$sid@" sortby="MARR:DATE"> + <SetVar name="moresource" value="0" /> + <SetVar name="printsource" value="0" /> + <!-- Printed List counter --> + <SetVar name="printedsource" value="$printedsource + 1" /> + + <!-- Family Name --> + <Cell style="list_value" width="$namefam"><GetPersonName id="" /> + <Gedcom id="@HUSB:@FAMC"> + <br /> <var var="i18n::translate('Husband\'s parents')" />: <GetPersonName id=""/> + </Gedcom> + <Gedcom id="@WIFE:@FAMC"> + <br /> <var var="i18n::translate('Wife\'s parents')" />: <GetPersonName id=""/> + </Gedcom> + </Cell> + <Facts ignore="$ignore"> + <SetVar name="printfact" value="0" /> + <RepeatTag tag="@fact:SOUR"> + <Gedcom id="@SOUR"> + <if condition="@ID==$sid"> + <SetVar name="printfact" value="1" /> + </if> + </Gedcom> + </RepeatTag> + + <if condition="$printfact==1"> + <SetVar name="printsource" value="0" /> + <!-- Intend the fact line if more then one fact has source --> + <if condition="$moresource==1"> + <Cell style="list_value" width="$namefam"> </Cell> + </if> + + <!-- Name of the fact that contains the source --> + <Cell style="list_value" width="$fact"> + <if condition="@fact=='MARR'"> + <!-- Print different type of marriages --> + <if condition="@MARR:TYPE==''"> + <var var="@fact" /> + </if> + <if condition="@MARR:TYPE=='Religious'"> + <var var="i18n::translate('Religious marriage')" /> + </if> + <if condition="@MARR:TYPE=='Civil'"> + <var var="i18n::translate('Civil marriage')" /> + </if> + <if condition="@MARR:TYPE=='Partners'"> + <var var="i18n::translate('Registered partnership')" /> + </if> + </if> + <if condition="@fact!='MARR'"> + <var var="@fact" /> + </if> + <RepeatTag tag="@fact:NOTE"> + <if condition="@NOTE!=''"> + <br /><GedcomValue tag="NOTE"/> + </if> + </RepeatTag> + </Cell> + + <!-- Date of the fact --> + <Cell style="list_value" width="$dateevent"><GedcomValue tag="@fact:DATE"/></Cell> + <!-- Place of the fact --> + <Cell style="list_value" width="$placeevent"><GedcomValue tag="@fact:PLAC"/></Cell> + <!-- Detailed source text --> + <Cell style="list_value" newline="1"> + <RepeatTag tag="@fact:SOUR"> + <Gedcom id="@SOUR"> + <if condition="@ID==$sid"> + <SetVar name="printsource" value="1" /> + </if> + </Gedcom> + <if condition="$printsource==1"> + <GedcomValue tag="SOUR:PAGE"/> + <if condition="@SOUR:DATA:TEXT!=''"> + <br /><GedcomValue tag="SOUR:DATA:TEXT"/> + </if> + <SetVar name="printsource" value="0" /> + </if> + </RepeatTag> + </Cell> + <SetVar name="moresource" value="1" /> + </if> + <SetVar name="printfact" value="0" /> + </Facts> + <Line /> + </List> + + <!-- Print the list counter --> + <if condition="$printedsource==0"> + <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total families')"/>: 0</Cell> + </if> + <if condition="$printedsource > 0"> + <TextBox height="$vspace" newline="1" padding="0"/> + <Cell align="rightrtl" newline="1" style="list_label"><var var="i18n::translate('Total families')"/>: <var var="printedsource" /></Cell> + </if> + <TextBox height="$vspace" newline="1" padding="0"/> + </Body> + + <Footer> + <Cell align="rightrtl" newline="1" style="date"><Now/></Cell> + </Footer> + + </Doc> +</Report> |
