GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Lnk genopro to TNG (generic hyperlink)


https://support.genopro.com/Topic43680.aspx
Print Topic | Close Window

By Olivierm - Saturday, January 20, 2024
Hello to all,

Is it possible to define a generic hyperlink format in genopro so that all individuals in a genopro tree in html would be automatically linked to their TNg equivalent ?
Where the normal link would be 
https://neptis.be/tng/getperson.php?personID=I193&tree=tree13

a generic link would be 
https://neptis.be/tng/getperson.php?personID=I#&tree=tree13

Where # is the ID of the individual in the original gedcom 

(This is the way Genealogica Grafica links its individuals in charts to individuals in external programs, see: Descendants of Doctor Reding – Doctor Reding and his family (neptis.be))

Thank you in advance
By genome - Sunday, January 21, 2024
This can be achieved by using the Custom Tag '_Narrative' to specify extra content for an Individual's Narrative Report Page.  

https://support.genopro.com/Uploads/Images/aecc5813-d0fa-40b5-b38d-554e.jpg


You can then use 'Custom Markup' to set the this content. (see https://familytrees.genopro.com/genome/CustomMarkupExample/default.htm) 
e.g. if set to 

<?phrase "Here is a link to the <a href='https://neptis.be/tng/getperson.php?personID={0}&tree=tree13' target='blank'>TNG Page</a>" ID?>

then the Narrative Report script will generate a page with this content substituting {0} in the template with the individual's ID e.g.

https://support.genopro.com/Uploads/Images/45d5a649-1eab-4ebc-bbbd-97cd.jpg


You can assign this phrase to all individuals via Table Layout / Individuals and then using Find & Replace (right click on column) in the _Narrative column.

https://support.genopro.com/Uploads/Images/f1a83509-140e-4797-957e-f384.png
By Olivierm - Sunday, January 21, 2024
Thank you so much !
By Olivierm - Thursday, February 1, 2024
I come back on my former question.

I guess there is a way to create a similar URL in the External Hyperlink field of the individual, but I cannot find how?
By genome - Sunday, February 4, 2024
GenoPro doesn't support find & replace in the Hyperlink field.

Another approach would be to inject the required XML into an XML export copy of your .gno file (i.e. via File / Export / Export to XML Format… )

You'll need a text editor that has 'regular expression' support.  I use NotePad++

e.g. if we look at part of the 'HarryPotter' XML export,

<Individual ID="ind00021">
  <Name>Mr Evans
    <Display>Evans</Display>
    <Last>Evans</Last>
    <Title>Mr</Title>
  </Name>
  <Position BoundaryRect="-56,216,-4,158">-30,190</Position>
  <Gender>M</Gender>
  <IsDead>Y</IsDead>
  <Comment>They were said to be proud to have a witch in the family. Showed up in the mirror of Erised.</Comment>
  <BloodPurity>Muggle born</BloodPurity>
  </Individual>

and we search for 
(<Individual ID="([^"]*)">Wink(.*?)(?=<\/Individual>Wink
 

(Annoyingly This forum's rich text editor has replaced ) with Wink in the above !!! )

and replace with


we end up with

  <Individual ID="ind00021">
  <Name>Mr Evans
    <Display>Evans</Display>
    <Last>Evans</Last>
    <Title>Mr</Title>
  </Name>
  <Position BoundaryRect="-56,216,-4,158">-30,190</Position>
  <Gender>M</Gender>
  <IsDead>Y</IsDead>
  <Comment>They were said to be proud to have a witch in the family. Showed up in the mirror of Erised.</Comment>
  <BloodPurity>Muggle born</BloodPurity>
<Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=ind00021&amp;tree=tree13</Hyperlink>
</Individual>

Obviously we can use 'Replace All' to add the required hyperlink to all individuals

The resulting XML file can then be opened with GenoPro and resaved as .gno as required.

This approach has the advantage that the link is available from the GenoPro GenoMap as well as from the SVG GenoMap in the Narrative Report.

You will need to set the Search Mode options as follows: 

https://support.genopro.com/Uploads/Images/f0fe9a24-3da5-4f38-ab5b-4bc2.png
By Olivierm - Sunday, February 4, 2024
Fabulous,

Thank you 1000 X for the explanation, I also start understanding how Genopro works.

I guess that the replacement code 
 $1$3<Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=$2&amp;tree=tree13$4">


should be
$1$3<Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=$2&amp;tree=tree13$4"></Hyperlink>


I am, again deeply impressed by the quality of this program, and by your knowledge and support.





By genome - Sunday, February 4, 2024
Sorry, I had some difficulty with this forum's software messing with my post!

Not sure how it ended up with that code with $4 in it but I think I have now corrected the post.

The replacement string should be 

 https://support.genopro.com/Uploads/Images/59bc4879-3a2b-43d9-9acf-4ba1.png
By Olivierm - Sunday, February 4, 2024
Again, thank you, Ron

(and I did not even notice the $4  issue)

You can see the result here: My Ancestors and Relatives (neptis.be)


I have 3 questions left:

1. Can I use the Genomap independently of the narrative report, as an HTML page in its own right (to put on my site as kind of introduction instead of the Genealogica Grafica tree I use now )

DONE: see: Descendants of Doctor Reding (Genopro) – Doctor Reding and his family (neptis.be). I would simply love to be able to define the zoom and center of the Genomap at the start (much too small)  

2. Can I display the thumbnails of the pictures in the Genomap like I do now  in Genopro with the picture mode ( I know you intended to investigate this)

3. Can I automatically allocate background colors (and borders) to the individuals depending on their occupations in the HTML Genomap? (e.g. if OCCU = Military --> Green,)

I thank you in advance for your continuous support
By genome - Monday, February 5, 2024
1. Use link from Individual's page to zoom in

https://support.genopro.com/Uploads/Images/3caaa04b-7ff8-400b-ad96-2a7c.png






2. Still 'Work In Progress' Unsure

3. Afraid not.  If you are happy with a bit of VB Scripting then could possibly doctor {EN} XML Toolkit to achieve that.



On another note, you you can see from your own genogram that GenoPro is not too good at auto-arranging large trees.  You can achieve better results doing some manual adjustment where a partial auto-arrange can be useful.  Also I strongly recommend breaking your tree down into branches as separate genomaps linked via internal hyperlinks.
By Olivierm - Monday, February 5, 2024
Thank you again !

Indeed I discovered that Genopro is not good at auto-arranging trees ! Maybe AI will solve this in the future.

I am also disappointed that Genopro cannot easily define symbols or backgrounds based on imported gedcom tags. I am of course happy if a bit of VB scripting can achieve that, but I still have to learn VB Smile

My goal is to create a descendant  tree in HTM format where you could click buttons to highlight all individuals that have common features - like "working in the medical sector" or "good painter"

Not sure if this is possible.
By genome - Wednesday, February 7, 2024
My goal is to create a descendant  tree in HTM format where you could click buttons to highlight all individuals that have common features

Maybe not quite what you had in mind but here is one way to 'highlight' individuals.

If we start with the GenoPro Table Layout / Individuals…  and sort on say column Occupation and select those we want to group into a category, we can then right click on this selection and choose the Properties… option at the bottom of the context menu to display the Properties Dialog for the selected group we can set say the gender symbol colour for all in the group.

https://support.genopro.com/Uploads/Images/8991851c-1a78-4788-8b8c-a2c0.png


Furthermore if we use the GenoMap Layers (_Layers) Custom Tag (see https://support.genopro.com/Topic43375.aspx) to set a category name for this group as a layer, e.g. Education in image above, then in a Narrative Report we can toggle each layer on and off, thus highlighting their position in the tree.

see Hogwarts Tree in this Narrative Report

If a layer name is assigned to all as an occupation category then this column in the Table Layout could be sorted and used to select the groups to assign display properties instead of the Occupation column above.
By Olivierm - Wednesday, February 7, 2024
WOW ! I knew there was much more  hidden in this program, but I did not imagine that !
This is very much what I was looking for.
I will test it this WE.
Thank you, again. 
By Olivierm - Thursday, February 8, 2024
Hello Ron,

I could not wait !

And it works perfectly. I am still  discovering the possibilities and experimenting. 
This is really a unique and outstanding feature of Genopro, that deserves  to be known much more !
(It should be availaible in the desktop version of the program, not only in the report.)

You will find my first results here:
neptis.be/GenoProReport/genomaps/genomap0.htm?x=-125,y=-600,highlight=true,toggle=SVG,name=I193

The embedded version (in Wordpress) is still a bit unstable:
Descendants of Doctor Reding (Genopro) – Doctor Reding and his family (neptis.be)
(I will try to embed it through a header, like I do for TNG.)

These layers will allow to show occupations and its evolution through generations in an interactive way, but also musical or writing talent. Or country of residence. In fact the sky is the limit. I am sure I do not even imagine all possibilities for this feature. (It would be even nicer if  the "display" characteristics of an individual could be linked to a layer).
You made my day, and I cannot wait to share this with friends

Thank you again for the fabulous work.
 
Olivier