[mhk] r1078 committed - Tree persons with no sex updated @ mhk_families

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 1, 2013, 6:24:58 PM6/1/13
to mhk-dis...@googlegroups.com
Revision: 1078
Author: tbc...@gmail.com
Date: Sat Jun 1 15:24:44 2013
Log: Tree persons with no sex updated @ mhk_families
http://code.google.com/p/mhk/source/detail?r=1078

Modified:
/branches/mhk_families/idb/etc/template/new/rperson_family.vm

=======================================
--- /branches/mhk_families/idb/etc/template/new/rperson_family.vm Sat Jun
1 15:07:47 2013
+++ /branches/mhk_families/idb/etc/template/new/rperson_family.vm Sat Jun
1 15:24:44 2013
@@ -91,7 +91,7 @@
#elseif($person.getSex()=="F" || $person.getSex()=="f")
nodes[i]=ftree.AddPerson("${person.getName()}",{config: {node:
{background: 'rgb(255,212,212)'}, line: {color:'rgb(100,100,100)'}}});
#else
- nodes[i]=ftree.AddPerson("${person.getName()}",{config: {node:
{background: 'rgb(0,0,0)'}, line: {color:'rgb(100,100,100)'}}});
+ nodes[i]=ftree.AddPerson("${person.getName()}",{config: {node:
{background: 'rgb(184,191,184)'}, line: {color:'rgb(100,100,100)'}}});
#end
hash["${person.getId()}"]=i;
i++;
@@ -105,21 +105,27 @@
##alert("ADDC "+"${family.getChild()}");
#if($family.getFather()!="" && $family.getMother()!="")
#if($family.getChildSex()=="F" || $family.getChildSex()=="f")
- nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{partner:nodes[hash[mother]],blurb:'Father: '+"${family.getFatherName()}"+'\n
Mother: '+"${family.getMotherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{partner:nodes[hash[mother]],blurb:'Son
of '+"${family.getFatherName()}"+' and '+"${family.getMotherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ #elseif($family.getChildSex()=="M" || $family.getChildSex()=="m")
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{partner:nodes[hash[mother]],blurb:'Son
of '+"${family.getFatherName()}"+' and '+"${family.getMotherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
#else
- nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{partner:nodes[hash[mother]],blurb:'Father: '+"${family.getFatherName()}"+'\n
Mother: '+"${family.getMotherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{partner:nodes[hash[mother]],blurb:'Son
of '+"${family.getFatherName()}"+' and '+"${family.getMotherName()}",
config:{node:{background:'rgb(184,191,184)'}}});
#end
#elseif(!$family.getFather() && $family.getMother()!="")
#if($family.getChildSex()=="F" || $family.getChildSex()=="f")
- nodes[i] =
nodes[hash[mother]].birth("${family.getChildName()}",{blurb:'Mother: '+"${family.getMotherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ nodes[i] =
nodes[hash[mother]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getMotherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ #elseif($family.getChildSex()=="M" || $family.getChildSex()=="m")
+ nodes[i] =
nodes[hash[mother]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getMotherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
#else
- nodes[i] =
nodes[hash[mother]].birth("${family.getChildName()}",{blurb:'Mother: '+"${family.getMotherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
+ nodes[i] =
nodes[hash[mother]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getMotherName()}",
config:{node:{background:'rgb(184,191,184)'}}});
#end
#elseif($family.getFather()!="" && !$family.getMother())
#if($family.getChildSex()=="F" || $family.getChildSex()=="f")
- nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{blurb:'Father: '+"${family.getFatherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getFatherName()}",
config:{node:{background:'rgb(255,212,212)'}}});
+ #elseif($family.getChildSex()=="M" || $family.getChildSex()=="m")
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getFatherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
#else
- nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{blurb:'Father: '+"${family.getFatherName()}",
config:{node:{background:'rgb(192,219,243)'}}});
+ nodes[i] =
nodes[hash[father]].birth("${family.getChildName()}",{blurb:'Son
of '+"${family.getFatherName()}",
config:{node:{background:'rgb(184,191,184)'}}});
#end
#end
hash["${family.getChild()}"]=i;
Reply all
Reply to author
Forward
0 new messages