%META:TOPICINFO{author="TWikiContributor" date="1299994096" format="1.1" version="$Rev$"}%
---+!! Family Tree Plugin
<!--
   Contributions to this plugin are appreciated. Please update the plugin page at
   http://twiki.org/cgi-bin/view/Plugins/FamilyTreePlugin or provide feedback at
   http://twiki.org/cgi-bin/view/Plugins/FamilyTreePluginDev.
   If you are a TWiki contributor please update the plugin in the SVN repository.
-->
<sticky><div style="float:right; background-color:#EBEEF0; margin:0 0 20px 20px; padding: 0 10px 0 10px;">
%TOC{title="Page contents"}%
</div></sticky>
%SHORTDESCRIPTION%

---++ Overview

The Family Tree Plugin is a simple database that uses TWiki searches to perform
queries over genealogical data in a TWiki web and generate family trees (pedigrees). It is a !TWikiApplication combined with a simple plugin that provides some standard searches over the data and generates pedigree pictures. Pedigrees can be generated using either HTML (as in the example) or using the !DirectedGraphPlugin to generate a nice graphical picture of the tree.

<div style="float: right">
<img src="%ATTACHURLPATH%/example_tree.png" alt="" />
</div>

Each person in the family, and each union (e.g. marriage), are stored as TWiki topics. Each person topic includes a standard "person topic" (!StdPerson) that defines some basic searches, and has a form that records basic details about the person. Extra detail can be added freeform to the topic, or can be recorded in a "records" table to ease searching.

The standard person include defines the following queries over the data:
   * Female line (ancestors of this person)
   * Male line (ancestors of this person)
   * Family tree (rooted at this person)

Union topics similarly have a standard include (!StdUnion) and a form. Union topics are named for the couple they represent, male then female, separated by a capital 'X'. Children of the union are listed in a simple one-column table in the union topic.

The plugin installs a new web, called [[FamilyTreePlugin.WebHome][FamilyTreePlugin]]. This web contains some standard topics, an example family tree (a small fragment of my own family tree), a left bar topic, and two "creator topics", !NewPerson and !NewUnion, that help you in creating person and union records respectively. You should *not* edit directly in this web, as it will be overwritten if you ever upgrade the plugin. Instead you should create your own new web based on the FamilyTreePlugin web (see TWiki.ManagingWebs) and then remove all topics in the new web with 'Currie' in the name.

The schema of the database was inspired by the standard LDS "GED" format, so translation back and forth from this format should be fairly straightforward. It would be great if someone could write some scripts to do this.....!

Note: searches over my paternal family tree (360 persons, 120 unions) are just about fast enough. If you are planning on capturing a much bigger tree, then you should probably look at commercial tools for handling family trees, of which there are *hundreds*.

---++ Syntax Rules

   * %<nop>MANCESTORS("person"}% - generate a representation of the male line leading to the given person
   * %<nop>FANCESTORS{"person"}% -  generate a representation of the female line leading to the given person
   * %<nop>DESCENDANTS{"person"}% - generate a complete family tree rooted at the given person
   * %<nop>GRDESCENDANTS{"person"}% - generate a complete family tree rooted at the given person using !GraphViz. Only works if !DirectedGraphPlugin is installed.

---++ Plugin Settings
   * Set SHORTDESCRIPTION = A simple genealogy database

---++ Plugin Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully
automatic installer script written using the Build<nop>Contrib.
   * If you have TWiki 4.2 or later, you can install from the =configure= interface (Go to Plugins->Find More Extensions)
      * See the [[http://twiki.org/cgi-bin/view/Plugins/BuildContribInstallationSupplement][installation supplement]] on TWiki.org for more information.
   * If you have any problems, then you can still install manually from the command-line:
      1 Download one of the =.zip= or =.tgz= archives
      1 Unpack the archive in the root directory of your TWiki installation.
      1 Run the installer script ( =perl &lt;module&gt;_installer= )
      1 Run =configure= and enable the module, if it is a plugin.
      1 Repeat for any missing dependencies.
   * If you are *still* having problems, then instead of running the installer script:
      1 Make sure that the file permissions allow the webserver user to access all files.
      1 Check in any installed files that have existing =,v= files in your existing install (take care *not* to lock the files when you check in)
      1 Manually edit !LocalSite.cfg to set any configuration variables.

%IF{"defined 'SYSTEMWEB'" else="<div class='twikiAlert'>%X% WARNING: SYSTEMWEB is not defined in this TWiki. Please add these definitions to your %MAINWEB%.TWikiPreferences, if they are not already there:<br><pre>   * <nop>Set SYSTEMWEB = %<nop>TWIKIWEB%<br>   * <nop>Set USERSWEB = %<nop>MAINWEB%</pre></div>"}%


---++ Plugin Info

|  Plugin Author: | TWiki:Main.CrawfordCurrie http://c-dot.co.uk, TWiki:Main.GeorgeClark |
|  Copyright: | &copy; 2003 TWiki:Main.DonnyKurniawan <br /> &copy; 2008-2011 TWiki:TWiki.TWikiContributor |
|  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
|  Plugin Version: | 2011-03-12 |
|  Change History: | <!-- versions below in reverse order -->&nbsp; |
|  2011-03-12: | TWikibug:Item6638: Doc fixes; changing TWIKIWEB to SYSTEMWEB -- TWiki:Main.PeterThoeny |
|  2008-07-14: | Initial version |
|  Dependencies: | <table border="1"><tr><th>Name</th><th>Version</th><th>Description</th></tr><tr><td align="left">TWiki::Plugins</td><td align="left">&gt;=1.026</td><td align="left">Required, TWiki 4.0 or later</td></tr><tr><td align="left">TWiki::Plugins::EditTablePlugin</td><td align="left">&gt;=0</td><td align="left">Optional, used for editing record tables</td></tr><tr><td align="left">TWiki::Plugins::DateFieldPlugin</td><td align="left">&gt;=0</td><td align="left">Optional, only required for TWiki 4.0</td></tr></table> |
|  Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
|  Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
|  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal |

__Related Topics:__ [[FamilyTreePlugin.WebHome]], %SYSTEMWEB%.DeveloperDocumentationCategory, %SYSTEMWEB%.AdminDocumentationCategory, %SYSTEMWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins
