Ancestris - Forum

Ancestris Support => ENGLISH => Topic started by: mde on October 18, 2018, 14:52:37

Title: Most important small change you can make to Ancestris
Post by: mde on October 18, 2018, 14:52:37
Hello:

At the end of the summer I sent out the first family tree I made with Ancestris to family members. They were all very interested to see it but every single person asked: "why are there no dates on the earliest generations? Do you know nothing about them?". And I had to explain I had their baptisms and sometimes their burials but that the computer program I am using can only show births and deaths.

It seems most of the developers of Ancestris are French and maybe you have civil records back to 1789 but in Ireland and England the civil records start in the mid-nineteenth century and parish registers are the most important source. The situation I describe is one I think ANY user from an English language speaking country will be in. So if you can change you code a little - if no birth then substitute baptism etc - this will make Ancestris much more functional.

Thank you,

M!
Title: Re : Most important small change you can make to Ancestris
Post by: oops66 on October 18, 2018, 16:39:14
Hello,
Usually in France it is possible to start around 16xx (baptisms: 1545-to-1792) and the baptisms are usually done at(near) the birthday date, so I do the opposite way, I first add the birthday date (since1792-1933 in France) and after the baptisms date (usually the same date).
So I always have the birthday date filled.
But it is maybe a good suggestion to add an option: "if the birthday date does not exist then copy baptisms date to the birthday date tag".
Is it what you want ?

Edit: You can also modify the template to see the tag BAPM:DATE, and /or some others customized Tag:
Code: [Select]
<table width="100%" border="1">
 <tr valign=top>
 <td>
   <font color="blue"><b><prop path=INDI></b></font> [ <prop path=INDI:SEX img=yes txt=no>]
   <br>
   <b><prop path=INDI:NAME></b>
   <br>
   <name tag=BIRT></u>&nbsp;:&nbsp;<b><prop path=INDI:BIRT:DATE img=no></b>&nbsp;

<prop path=INDI:BAPM:DATE>
<prop path=INDI:BAPM:PLAC>

   &nbsp;&nbsp;&nbsp;<prop path=INDI:BIRT:PLAC max=70>
   <br>
   <name tag=DEAT>&nbsp;:&nbsp;<b><prop path=INDI:DEAT:DATE img=no></b>&nbsp;
   &nbsp;&nbsp;&nbsp;<prop path=INDI:DEAT:PLAC max=70>
   <br>
   <name tag=ADDR>&nbsp;:&nbsp;<b><prop path=INDI:RESI:ADDR:CITY img=no><prop path=INDI:RESI:PLAC max=70 img=no></b>
   <br>
   <name tag=OCCU>&nbsp;:&nbsp;<b><prop path=INDI:OCCU img=no></b>
  </td>
  <td valign=top align=right>
   <media max=20>
  </td>
 </tr>
 </table>
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on October 19, 2018, 06:18:29
Hi,

If you download the nighty build, you will find a little new functionality that can fit your request.
I have added a new tag in the renderer blueprint of the graphic tree.
You can put in place of "prop" the tag "ifvalue".
This tag takes 2 dedicated attributes :
- "path" to describe the property you want to display
- "default" to describe the property that you want display if the "path" property is not defined.
Everything else that worked with "prop" tag, will work with "ifvalue".

The default rendering is modified accordingly to display "CHR" value if "BIRT" value is not defined and "BURI" value if "DEAT" value is not defined. (If no value is defined, the display is exactly the same than before).

You can take this template as example to create your specific display.

By the way, Frédéric enrolled me in the developing crew.

Regards,

Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: mde on October 19, 2018, 08:53:39
I am just using Ancestris "off the shelf". I know nothing about programming and am too old to start. I am suggesting something that the developers shoudl consider incorporating in the basic build next time it is updated. It is an issue that concerns so many people.
Title: Re: Most important small change you can make to Ancestris
Post by: oops66 on October 27, 2018, 21:45:18
I am just using Ancestris "off the shelf". I know nothing about programming and am too old to start. I am suggesting something that the developers shoudl consider incorporating in the basic build next time it is updated. It is an issue that concerns so many people.
Hello and for information,
In fact, you can simply replace (in the tree view option - http sample for INDI)
<prop path=INDI:BIRT:DATE>
<br>
<prop path=INDI:DEAT:DATE>

by:

<ifvalue path=INDI:BAPM:DATE path=INDI:BIRT:DATE>
<br>
<ifvalue path=INDI:BURI:DATE path=INDI:DEAT:DATE>
Title: Re : Re: Most important small change you can make to Ancestris
Post by: Zurga on October 27, 2018, 22:40:48
Hi,
Hello and for information,
In fact, you can simply replace (in the tree view option - http sample for INDI)
<prop path=INDI:BIRT:DATE>
<br>
<prop path=INDI:DEAT:DATE>

by:

<ifvalue pathdefault=INDI:BAPM:DATE path=INDI:BIRT:DATE>
<br>
<ifvalue pathdefault=INDI:BURI:DATE path=INDI:DEAT:DATE>
To be totally accurate, you have to put "default" instead of "path' for the replacement value.
And this works only for the daily build.

Regards,
Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: oops66 on October 27, 2018, 22:51:47
Thank you Zurga for the correction
(FI: but I have tested with "path" value, and that works too )
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on October 28, 2018, 09:34:24
No, it doesn't.
The application doesn't crash but it takes only the last path. In your case, BIRT:DATE or DEAT:DATE.
The first one is just skipped.

Note that the template in the daily build use "CHR" instead of "BAPM".
I'm not sure which tag is the most used.

Zurga
Title: Re: Re : Most important small change you can make to Ancestris
Post by: oops66 on October 28, 2018, 12:06:09
No, it doesn't.
The application doesn't crash but it takes only the last path. In your case, BIRT:DATE or DEAT:DATE.
The first one is just skipped.

Zurga
Hello,
In this case, maybe a error message can be displayed if the syntax is not correct with the parameter "ifvalue" (a check and a warning message for the line: <ifvalue default=*:*:* path=*:*:*>)

Quote
Note that the template in the daily build use "CHR" instead of "BAPM".
I'm not sure which tag is the most used.
I do not know too.
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on October 28, 2018, 12:19:09
In the code, all the errors messages for the blueprints are just voided. I'm not sure I should add anything for my new tag.

I have checked in the code : Cygnus editor uses "CHR", Aries editor gives the two tag but the first one is CHR., Gedcom editor gives what you wants the first one is CHR.

Now, any one can use the one he wants and modify the templates accordingly.

Zurga
Title: Re: Re : Most important small change you can make to Ancestris
Post by: oops66 on October 28, 2018, 20:59:59
In the code, all the errors messages for the blueprints are just voided. I'm not sure I should add anything for my new tag.
Zurga
Re:
No, it is not necessary (if the good syntax is written somewhere else), but I can not find, to check, the good syntax into the documentation, and I can not find too the full list of all available tags for the templates INDI or FAM  (html) ex: the new ifvalue, or if some others specials tag already exist or not.

Ps: not seen here (in French) with some the other customizations:
http://fr.ancestris.org/index.php?title=Calque

<prop path=INDI:BIRT:PLAC format="2 (7)">
<prop path="INDI:NAME:SOUR" format="{(*)$e}">
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on October 29, 2018, 06:14:58
Yes, there is some work to do with the documentation. (I actually don't have an account to modify the documentation).

The correct syntax is shown in the "by default" blueprint.

You can use "ifvalue" exactly the same way you use "prop".
Just add an attribute "default", the value part is the same type of value you use for the attribute "path".

Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: oops66 on October 29, 2018, 11:59:03
Anyway, thank you for this new functionality Zurga.
Title: Re: Most important small change you can make to Ancestris
Post by: mde on November 07, 2018, 19:51:11
I really don't understand this conversation. Has something been changes in Ancestris? Will I be able to choose to display baptismal date instead of birth date in future?
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on November 07, 2018, 21:40:27
Yes,

You can if you use the daily build instead of the 0.9 version.

Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: mde on December 31, 2019, 08:09:02
I have the 0.9 version installed but the tree as I see it while I am working on it does not show the baptism dates. They are viewable only when editing a person, along with all the other data. How do I get them to show?
Title: Re: Most important small change you can make to Ancestris
Post by: Zurga on December 31, 2019, 08:30:55
I have the 0.9 version installed but the tree as I see it while I am working on it does not show the baptism dates. They are viewable only when editing a person, along with all the other data. How do I get them to show?

Forget the 0.9.
This version is no more updated.
Install the v10.
You will be able to display the baptism dates in the tree view when there is no birth date.

Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: mde on January 04, 2020, 15:28:13
Okay. I will update. Is there anything I must do in order to get the baptismal date to display when there is no birth date or is it by default?
Title: Re : Most important small change you can make to Ancestris
Post by: Zurga on January 04, 2020, 20:13:36
If you use CHR tag, it is by default, nothing to do.

Zurga
Title: Re: Most important small change you can make to Ancestris
Post by: mde on January 05, 2020, 07:22:51
Brilliant