Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.
  • Page:
  • 1

TOPIC:

Display complex all-in-on-tree with GVExport 2 weeks 3 days ago #1

  • schucobn
  • schucobn's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
With PhpGedView, the origin of webtrees, there was a 3rd party module available to produce an “all in one tree" of individuals in a family tree and their relationships.

This module called GVExport produced all in one trees starting from single or several selected individuals including selected types of relatives (ancestors, sibs, cousins, offspring and spouses) and selected number of ancestor and offspring generations.
Output could be produced as printable pdf, png or jpg but also be displayed on screen, where SVG-graphic made the graphs “clickable”, i.e. click opened the individual’s or family’s information. The module GVExport just produced dot-files, which needed installation of GraphViz on the server to get the nice graphic output.

After advent of webtrees the author Ferenc Kurucz stated he hadn't worked on the module in over two years and didn’t plan to do any further.

My son migrated GVExport to webtrees 1.7 and recently adopted it to webtrees 2.16. This results in a simplified and reduced input menu for the diagram preferences. His most important modification is that you can produce SVG-graphic on your client’s screen without GraphViz-installation on the server. An open source graph.js module (like GraphViz in JavaScript) for the clients display is included in the new GVExport module for that purpose. However, to get pdf, png or jpg-printable output GraphViz is still required on the server where webtrees is installed.

There are some known limitations:
  • no translations – only English (except of the button-label “Zurücksetzen” = Reset)
  • svg-clickable output does not work on Android (Firefox)
  • photos in decorated diagram type are only displayed in client graphic not in server generated graphic
  • there are some workarounds in the core-program based on the letter “F” to start the family-xref. I am using Vesta Classic Look&Feel, so I could not test for bugs with the new unique “X”-xref-ids.
  • With Classic Look&Feel you can’t avoid to display individual xref-id

As my son can’t provide any more support for GVExport, I hope to find the interest of capable people in the webtrees community to further develop the present state of GVExport:
github.com/tillsc/GVExport

But some of you may find the module useful even in the present state.

To install it on the server:
Download all files from the above GitHub into modules_v4/GVExport directory and enable the plugin via modules administration page.

To use it in webtrees:
Select it under “Diagrams”.
In the “Diagram preferences” you select root individuals (“Include anyone related to”) with the drop down window.
Before you include another root individual, click the CR-like button right below the drop down window. The xref-id of the preceding root-individual is stacked into the window left.
You can add as many root-individuals, as you like. You can even enter and edit xref-ids directly in the window.
“Stop processing on“ can be used to cease selection of ancestors or descendants after a “stop-individual” before the given number of generations has been processed.
The input method for these fields is the same as before in “Include anyone …”

Start the display of the tree on your screen with button “Update”.
Whenever you changed input parameters like number of ancestor generations press “Enter” or button “Update” to get immediate results.

You can hide the input-menu with the “X”-button top-right.

What has been described up to now works without GraphViz installed on the server.
To get printable output you need to have it installed. Then choose output file type and press “Render serverside”. Output type pdf is highly recommended as it provides the smallest files and is easily scalable, especially for big graphs. For very big graphs, e.g. 1x2 meter, it is well suited for plotters used by architects. Such graphs beyond the capacity of your home printer are processed by specialised online shops much cheaper as posters rather than as fotos or posters.

Further documentation on the input parameters can be found in the outdated PGVWiki entry
wiki.phpgedview.net/en/index.php?title=GVExport_module

Please Log in or Create an account to join the conversation.

Display complex all-in-on-tree with GVExport 2 weeks 3 days ago #2

  • hermann
  • hermann's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 312
Thank you to you and your son! Interesting that so old software can still be reanimated. It promises a great additional value.

But whatever I tried, it never shows more than an error message:
Trying to access array offset on value of type null …/modules_v4/GVExport/functions_dot.php:741
#0 …/modules_v4/GVExport/functions_dot.php(741): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}()
#1 …/modules_v4/GVExport/functions_dot.php(238): vendor\WebtreesModules\gvexport\Dot->printFamily()
#2 …/modules_v4/GVExport/functions_dot.php(184): vendor\WebtreesModules\gvexport\Dot->createDOTDump()
#3 …/modules_v4/GVExport/module.php(470): vendor\WebtreesModules\gvexport\Dot->getDOTDump()
#4 …/modules_v4/GVExport/module.php(275): vendor\WebtreesModules\gvexport\GVExport->createGraphVizDump()
#5 …/modules_v4/GVExport/module.php(206): vendor\WebtreesModules\gvexport\GVExport->saveDOTFile()
#6 …/app/Http/RequestHandlers/ModuleAction.php(88): vendor\WebtreesModules\gvexport\GVExport->postChartAction()
#7 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle()
webtrees 2.0.16 (all available custom modules installed, php 7.4.15, MySQL 5.6) @ ahnen.hartenthaler.eu/
and webtrees 1.7.18 (many custom modules) @ ahnen1.hartenthaler.eu/

Please Log in or Create an account to join the conversation.

Last edit: by hermann.

Display complex all-in-on-tree with GVExport 1 week 1 day ago #3

Sadly i got the same issue, too.

Please Log in or Create an account to join the conversation.

Display complex all-in-on-tree with GVExport 6 days 5 hours ago #4

  • corieltauvi
  • corieltauvi's Avatar
  • Away
  • New Member
  • New Member
  • Posts: 10
To get it working I commented out lines 741, 742, 743 in the file functions_dot.php

The lines now look like this:
// $func="date_localisation_{$lang_short_cut[$LANGUAGE]}";
// if (!function_exists($func))
// $func="DefaultDateLocalisation";

My understanding of PHP is fairly poor so don't ask me what I've changed.

You can test it here if you like: zeffertt.uk/webtrees/

Cheers,
Torven

Please Log in or Create an account to join the conversation.

Display complex all-in-on-tree with GVExport 6 days 4 hours ago #5

  • schucobn
  • schucobn's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
Thank you Torven to get it working.
I will ask my son to fix it in the version on GitHub
Hermann

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum