%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: deslist.txt,v 5.19 2007-07-25 13:15:19 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20121128 templ=templm -->
  <title>%nn;
    %apply;a_of_b_gr_eq_lev%with;
      [*descendants]%nn;
    %and;
      %if;(public_name != "")%public_name;%else;%first_name;%end;
      %if;(qualifier != "") %qualifier;%end;
      %sp;%surname;
    %end;
  </title>
  <meta name="robots" content="none"%/>
  <meta name="format-detection" content="telephone=no"%/>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
  %include.css;
  %base_header;
</head>

%( <!-- Begin define (used in ancsosa.txt, deslist.txt)--> %)
%let;birth_symbol;%if;(bvar.birth_symbol != "")%bvar.birth_symbol;%else;&deg;%end;%in;
%let;death_symbol;%if;(bvar.death_symbol != "")%bvar.death_symbol;%else;&dagger;%end;%in;

%define;married_to(is_male, date_place)
  %if;("is_male" = 1)
    %if;are_married;[married%t to:::date_place]0%nn;
    %elseif;are_not_married;[relationship%t to:::date_place]0%nn;
    %elseif;are_engaged;[engaged%t to:::date_place]0%nn;
    %elseif;is_no_sexes_check;[relationship%t to:::date_place]0%nn;
    %elseif;is_no_mention;date_place [with]%nn;
    %end;
  %else;
    %if;are_married;[married%t to:::date_place]1%nn;
    %elseif;are_not_married;[relationship%t to:::date_place]1%nn;
    %elseif;are_engaged;[engaged%t to:::date_place]1%nn;
    %elseif;is_no_sexes_check;[relationship%t to:::date_place]1%nn;
    %elseif;is_no_mention;date_place [with]%nn;
    %end;
  %end;
  %if;are_divorced;… [divorced]%divorce_date;%nn;
  %elseif;are_separated;… [separated]%nn;
  %end;
%end;

%define;married(xx)
  %if;(evar.sd = "on")
    %apply;link_marriage("xx")%nn;
    %if;are_divorced;… [divorced]%divorce_date;%nn;
    %elseif;are_separated;… [separated]%nn;
    %end;
  %else;
    %apply;married_to%with
      %xx.is_male;
    %and;
      %if;(on_marriage_date != "") %on_marriage_date;%end;
      %if;(marriage_place != "") [in (place)] %marriage_place;%end;
    %end;
  %end;
%end;

%define;link1(xx,yy,fff)
  %if;(cancel_links or xx.is_restricted)%yy;
  %else;
    <a id="ifff" href="%prefix;%xx.access;">%yy;</a>%nn;
  %end;
%end;

%define;link2(xx,yy)
  %if;(cancel_links or xx.is_restricted)%yy;
  %else;
    <a href="%prefix;%xx.access;">%yy;</a>%nn;
  %end;
%end;

%define;somebody_long_info(xx)
  %if;xx.has_qualifiers;
    %apply;lazy_print(", ")
    %foreach;xx.qualifier;
      %if;not is_first;
        %if;(lazy_printed)/%end;
        %lazy_force;
        %qualifier;%nn;
      %end;
    %end;
  %end;
  %if;xx.has_aliases;
    %apply;lazy_print(", ")
    %foreach;xx.alias;
      %if;(lazy_printed)/%end;
      %lazy_force;
      <em><strong>%alias;</strong></em>%nn;
    %end;
  %end;
  %if;(("xx" = "ancestor" or xx.sosa_in_list = "") and xx.has_nobility_titles)
    <em>%foreach;xx.nobility_title;, %nobility_title;%end;</em>%nn;
  %end;
  %if;(xx.has_linked_pages and xx.has_linked_page.HEAD), %xx.linked_page.HEAD;%end;
  %if;(xx.has_public_name or xx.has_qualifiers), <em>(%xx.first_name; %xx.surname;)</em>%end;
  %if;(evar.alias="on")
    <small>%nn;
    %if;xx.has_first_names_aliases;
      %apply;lazy_print(", ")
      %foreach;xx.first_name_alias;
        %if;(lazy_printed)/%end;
        %lazy_force;
        %first_name_alias;%nn;
      %end;
    %end;
    %if;xx.has_surnames_aliases;
      %apply;lazy_print(", ")
      %foreach;xx.surname_alias;
        %if;(lazy_printed)/%end;
        %lazy_force;
        %surname_alias;%nn;
      %end;
    %end;
    </small>%nn;
  %end;
  %if;(xx.computable_age), %xx.age;%end;
  %if;(evar.sd = "on")
    , %apply;link_dates("xx")%nn;
  %else;
    %if;(xx.has_birth_date or xx.has_birth_place)
      , %if;xx.is_male;[born]0%elseif;xx.is_female;[born]1%else;[born]2%end;
      %if;xx.has_birth_date; %xx.on_birth_date;%end;
      %if;xx.has_birth_place; [in (place)] %xx.birth_place;%end;
    %end;
    %if;(xx.has_baptism_date or xx.has_baptism_place)
      , %if;xx.is_male;[baptized]0%elseif;xx.is_female;[baptized]1%nn;
      %else;[baptized]2%end;
      %if;xx.has_baptism_date; %xx.on_baptism_date;%end;
      %if;xx.has_baptism_place; [in (place)] %xx.baptism_place;%end;
    %end;
    %if;xx.is_dead;, %xx.died;
      %if;(xx.has_death_date) %xx.on_death_date;%end;
      %if;(xx.has_death_place) [in (place)] %xx.death_place;%end;
    %end;
    %if;xx.is_buried;,
      %if;xx.is_male;[buried]0%else;[buried]1%end;
      %if;xx.has_burial_date; %xx.on_burial_date;%end;
      %if;xx.has_burial_place; [in (place)] %xx.burial_place;%end;
    %end;
    %if;xx.is_cremated;,
      %if;xx.is_male;[cremated]0%else;[cremated]1%end;
      %if;xx.has_cremation_date; %xx.on_cremation_date;%end;
      %if;xx.has_cremation_place; [in (place)] %xx.cremation_place;%end;
    %end;
  %end;
  %if;(xx.has_linked_pages and xx.has_linked_page.DEATH), %xx.linked_page.DEATH;%end;
  %if;(xx.computable_death_age)
    , [age at death:] %xx.death_age;%nn;
  %end;
%end;

%define;somebody_extra_info(xx)
  %if;xx.has_occupation;, <span class="highlight1">%xx.occupation;</span>%end;
  %if;(xx.has_linked_pages and xx.has_linked_page.OCCU), %xx.linked_page.OCCU;%end;
  %if;(evar.rel = "on" and xx.has_relations)
    %foreach;xx.relation;%nn;
       ; %relation_type; :
      %if;has_relation_him;
        %apply;link2("relation_him","relation_him")
        %apply;info2("relation_him")
      %end;
      %if;has_relation_her;
        %if;has_relation_him;, %end;
        %apply;link2("relation_her","relation_her")
        %apply;info2("relation_her")
      %end;
    %end;
    %foreach;xx.related;%nn;
      %if;(related_type != [foster son/foster daughter/foster child]0
         and related_type != [foster son/foster daughter/foster child]1
         and related_type != [foster son/foster daughter/foster child]2)
         ; %related_type; :
         %apply;link2("related","related")
         %apply;info2("related")
      %end;
    %end;
  %end;
%end;

%define;somebody_spouse_parent1(xx)
  <strong>%apply;link2("spouse.xx","spouse.xx")</strong>%nn;
  %apply;info2("spouse.xx")
%end;

%define;somebody_spouse_parent()
  %if;(evar.parents = "on" and spouse.has_parents)
    <br%/>   <small>%nn;
    %apply;a_of_b%with;
      %if;(spouse.is_male)[son/daughter/child]0
      %else;[son/daughter/child]1%end;
    %and;
      %apply;somebody_spouse_parent1("father") [and]
      %apply;somebody_spouse_parent1("mother")
    %end;
    </small>
  %end;
%end;

%define;link_dates(xx)
  %sp;
  %if;(wizard and not cancel_links)
    <a class="date" href="%prefix;m=MOD_IND;i=%xx.index;" title="[modify::person/persons]0"
       onclick="window.open(this.href); return false;">%nn;
      %apply;sure_dates("xx","birth","baptism","baptism",xx.has_linked_page.BIRTHA)
      %if;(xx.is_dead)
        %sp;%apply;sure_dates("xx","death","burial","cremated",xx.has_linked_page.DEATHA)
      %end;
    </a>%nn;
  %else;
    %apply;sure_dates("xx","birth","baptism","baptism",xx.has_linked_page.BIRTHA)%sp;
    %if;(xx.is_dead)
      %apply;sure_dates("xx","death","burial","cremated",xx.has_linked_page.DEATHA)
    %end;
  %end;
%end;

%define;link_marriage(xx)
  %if;(wizard and not cancel_links)
    <a class="date" href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;;ins_ch=2;"
      title="[modify::family/families]0" onclick="window.open(this.href); return false;">%nn;
      <span class="sure_dates%xx.has_linked_page.MARRIAGEA;%xx.spouse.has_linked_page.MARRIAGEA;
        %if;(marriage_date.prec != "" or on_marriage_date = "" or marriage_place = "") not_sure_dates%end;">&amp;</span>%nn;
      %slash_marriage_date; %marriage_place;
    </a>
  %else;
    <span class="sure_dates%xx.has_linked_page.MARRIAGEA;%xx.spouse.has_linked_page.MARRIAGEA;
      %if;(marriage_date.prec != "" or on_marriage_date = "" or marriage_place = "") not_sure_dates%end;">&amp;</span>%nn;
    %slash_marriage_date; %marriage_place;
  %end;
%end;

%define;sure_dates(xx,dd1,dd2,dd3,zz)
  %if;(xx.dd1_date.year != "")
    <tt class="sure_dates%zz;%if;(xx.dd1_date.prec !="") not_sure_dates%end;">%dd1_symbol;</tt>%xx.slash_dd1_date;
  %elseif;(xx.dd2_date.year != "")
    <tt class="sure_dates%zz;%if;(xx.dd2_date.prec !="") not_sure_dates%end;">%dd1_symbol;</tt>%xx.slash_dd2_date;
  %elseif;(xx.dd3_date.year != "")
    <tt class="sure_dates%zz;%if;(xx.dd3_date.prec !="") not_sure_dates%end;">%dd1_symbol;</tt>%xx.slash_dd3_date;
  %else;
    <tt class="not_sure_dates">%dd1_symbol;</tt>
  %end;
  %if;(xx.dd1_place != "")
    %sp;%xx.dd1_place;%nn;
  %elseif;(xx.dd2_place != "")
    %sp;%xx.dd2_place;%nn;
  %elseif;(xx.dd3_place != "")
    %sp;%xx.dd3_place;%nn;
  %end;
%end;

%define;inline_notes(xx)
  %incr_count;
  %if;(evar.notes = "on")
    %if;(xx.has_notes or xx.has_linked_page.BNOTE)
      <div class="inot">
        %if;xx.has_linked_page.BNOTE;&gt;&gt; %xx.linked_page.BNOTE;%end;
        %if;xx.has_notes;%xx.notes;%end;
      </div>
    %end;
  %end;
  %if;(evar.src = "on")
    %if;(xx.has_sources or xx.has_linked_page.BIBLIO)
      <div class="isrc">
        %if;xx.has_linked_page.BIBLIO;&gt;&gt; %xx.linked_page.BIBLIO;%end;
        %if;(xx.has_sources)
          %foreach;xx.source
            <span>- %source_type; : </span> %source;%sp;
          %end;
        %end;
      </div>
    %end;
  %end;
%end;

%define;inline_comment()
  %incr_count;
  <div class="icom">%comment;</div>
%end;

%define;link_notes(xx,yy)
  %incr_count;
  %if;((evar.notes = "on" and (xx.has_notes or xx.has_linked_page.BNOTE))
      or (evar.src = "on" and (xx.has_sources or xx.has_linked_page.BIBLIO)))
    <sup>%if;(not cancel_links)<a href="#nyy">%nn;%end;
    %if;(evar.notes = "on" and (xx.has_notes or xx.has_linked_page.BNOTE))
      %apply;add_in_sorted_list(10000+count,"yy",xx.notes,"",xx.linked_page.BNOTE,xx,xx.dates)
    %else;
      %apply;add_in_sorted_list(10000+count,"yy","","","",xx,xx.dates)
    %end;
    %if;(evar.src = "on" and (xx.has_sources or xx.has_linked_page.BIBLIO))
      %if;(xx.has_linked_page.BIBLIO)
        %apply;add_in_sorted_list(10000+count,"yy","src_on","BIBLIO",xx.linked_page.BIBLIO,xx,xx.dates)
      %end;
      %foreach;xx.source;
        %apply;add_in_sorted_list(10000+count,"yy","src_on",source_type,source,xx,xx.dates)
      %end;
    %end;
    yy%if;(not cancel_links)</a>%end;</sup>%nn;
  %end;
%end;

%define;link_comment(yy,zz)
  %incr_count;
  <sup>%if;(not cancel_links)<a id="iyy" href="#nyy">%nn;%end;
    %apply;add_in_sorted_list(10000+count,"yy",comment,"","","","zz")
  yy%if;(not cancel_links)</a>%end;</sup>%nn;
%end;

%define;sorted_notes()
  %if;(evar.notes = "on" or evar.src = "on")
    <hr%/>
    <h3>%if;(evar.notes = "on")[*note/notes]1
          %if;(evar.src = "on")[and] [source/sources]1%end;
        %else;[*source/sources]1%end;</h3>
    <dl>
    %foreach;sorted_list_item;
      %if;(item.3 != "src_on")
        <dt><br%/>
        <strong>%nn;
          %if;(cancel_links)
            %item.2;. %item.6;%item.7;
          %else;
            <a id="n%item.2;" href="#i%item.2;">%item.2;</a>%nn;
          %end;
        </strong>. %item.6;%item.7;
        </dt>
        %if;(item.5 != "")<dd>&gt;&gt; %item.5;</dd>%end;
        %if;(item.3 != "")<dd>%item.3;</dd>%end;
      %elseif;(item.4 = "BIBLIO")
        <dd class="xs">&gt;&gt; %item.5;</dd>
      %else;
        <dd class="xs">- %item.4; : %item.5;</dd>
      %end;
    %end;
    </dl>
  %end;
%end;

%define;url(z1,z2)
  %apply;lazy_print("z1=z2;")
  %foreach;env_binding;
    %if;(env.key="z1")%lazy_force;%else;%env.key;=%env.val;;%end;
  %end;
  %if;(not lazy_printed)
    z1=z2;
  %end;
%end;

%define;image(xx)
  %if;(evar.image="on" and xx.has_image)
    <img class="image" src="%xx.image_url;" alt="[image/images]0" title="[image/images]0"%/>
  %end;
%end;
%( <!-- End define (used in ancsosa.txt, deslist.txt)--> %)
%( <!-- Begin define --> %)

  %let;let_child;%if;(evar.always_surname != "no")child%else;child_name%end;%in;

%define;info2(xx)
  %xx.title;%xx.dates;
%end;

%define;tothegen(xx)
  [*to the %s generation:::xx]
%end;

%define;togen(xx)
  %if;(xx = 0)[*specify::generation/generations]0%nn;
  %elseif;(xx = 1)[*to the children]%nn;
  %elseif;(xx = 2)[*to the grandchildren]%nn;
  %elseif;(xx = 3)[*to the great-grandchildren]%nn;
  %else;
    %apply;tothegen%with;
      %apply;nth([nth (generation)], xx)
    %end;
  %end;
%end;

%define;marriage_info()
  %if;(evar.rel = "on" and has_witnesses)
    <span><br%/>   [witness/witnesses]1 :
    %foreach;witness;
      %if;(not is_first),%nl;%end;
      %apply;link2("witness","witness")
      %apply;info2("witness")
    %end;
    </span>
    %if;(has_comment and evar.notes = "on" and evar.inline = "on")
      %apply;inline_comment()
    %end;
  %end;
%end;

%define;descendants_by_list(xx, yy, curlev, maxlev, famlev)
  %if;(curlev = 0)<div>%nl;%end;
  %apply;image("xx")
  <strong>%apply;link1("xx","yy",count)</strong>%nn;
  %apply;somebody_long_info("xx")
  %apply;somebody_extra_info("xx")
  %if;(evar.inline = "on")
    %apply;inline_notes("xx")
  %else;
    %apply;link_notes("xx",count)
  %end;
  %apply;lazy_print%with;<br%/>%nl;%end;
  %foreach;xx.family;
    %if;(evar.spouse="on")
      %if;(family_cnt != 1 and curlev = 0)<div>%nl;%end;
      %lazy_force;   %nn;
      %let;txt;%xx; &amp;%marriage_date.year; %spouse;%in;
      %apply;married("xx")
      %if;(has_comment and evar.notes = "on" and evar.inline != "on")
        %apply;link_comment(count,txt)
      %end;
      <br%/>   %nn;
      <strong>%apply;link1("spouse","spouse",count)</strong>%nn;
      %apply;somebody_long_info("spouse")
      %apply;somebody_extra_info("spouse")
      %apply;somebody_spouse_parent()
      %if;(evar.inline = "on")
        %apply;inline_notes("spouse")
      %else;
        %apply;link_notes("spouse",count)
      %end;
      %apply;marriage_info()
    %end;
    %if;(curlev < maxlev)
      %if;(curlev = 0 or
           evar.t = "M" and xx.is_male or
           evar.t = "F" and xx.is_female or
           evar.t = "L")
        %if;(family.desc_level < famlev)
          , [see further]
          %apply;lazy_print%with;<br%/>%nl;%end;
        %elseif;(family.desc_level > famlev)
          , [see above]
          %apply;lazy_print%with;<br%/>%nl;%end;
        %elseif;has_children;
          %family.set_infinite_desc_level;
          %if;(curlev = 0)</div>%nl;%end;
          <ol style="list-style-type:lower-latin">
          %foreach;child;
            <li class=%if;(has_sosa)"border_sosa"%nn;
                      %else;"border_family_%has_families; border_sex_%sex;"%nn;
                      %end;>
            %apply;descendants_by_list("child", let_child, curlev+1, maxlev, famlev+1)
            </li>
          %end;
          </ol>
          %apply;lazy_print%with;%end;
        %else;
          %if;(curlev = 0)%nl;</div>%nl;
          %else;%apply;lazy_print%with;<br%/>%nl;%end;
          %end;
        %end;
      %elseif;has_children;, …
      %end;
    %else;%nl;
      %apply;lazy_print%with;<br%/>%nl;%end;
    %end;
  %end;
%end;

%define;by_list(xx)
  <p>
  %if;(evar.t = "F")
    [*male line/female line]1<br%/>
  %elseif;(evar.t = "M")
    [*male line/female line]0<br%/>
  %end;
  %apply;togen(xx)
  </p>
  %reset_count;
  %incr_count;
  %apply;descendants_by_list("self", "self", 0, xx, 0)%nl;
  <p>
    %foreach;descendant_level;
      %if;(level = desc_lev)
        [*total] : %number_of_descendants; [[person/persons]1@(c)]
      %end;
    %end;
  </p>
%end;
%( <!-- End define --> %)

%(   Main   %)
<body%body_prop; id="deslist">
  %message_to_wizard;
  <h1>%nn;
    %apply;a_of_b_gr_eq_lev%with;
      [*descendants]%nn;
    %and;
      %if;(public_name != "")%public_name;%else;%first_name;%end;
      %if;(qualifier != "") <em>%qualifier;</em>%end;
      %sp;%surname;
      %if;(alias != "") <em>(%alias;)</em>%end;
    %end;
  </h1>
  %if;not cancel_links;
  <div class="menu2">
    %if;(bvar.no_image_for_visitor != "yes" or friend or wizard)
      %if;(evar.image="on")
        <a style="text-decoration:line-through;"
           href="%prefix_base;%apply;url("image","")"
           title="- [image/images]1">img</a>
      %else;
        <a href="%prefix_base;%apply;url("image","on")"
           title="+ [image/images]1">img</a>
      %end;
    %end;
    <a style="text-decoration:line-through;" href="%prefix_base;%apply;url("cgl","on")"
       title="[cancel GeneWeb links]">@</a>
    %if;has_referer;
      <a href="%referer;" title="[back]">&lt;&lt;</a>
    %end;
      <a href="%prefix;" title="[visualize/show/hide/summary]3">^^</a>
  </div>
  %end;
  %let;desc_lev;
    %if;(bvar.max_desc_level = "")%apply;min(evar.v, max_desc_level, 12)
    %else;%apply;min(evar.v, max_desc_level, bvar.max_desc_level)
    %end;
  %in;
  %empty_sorted_list;
  %apply;by_list(desc_lev)
  %if;(evar.inline != "on")%apply;sorted_notes()%end;
  %base_trailer;
  %copyright;
</body>
</html>
