Git Product home page Git Product logo

webtrees-fancy-treeview's Introduction

Fancy Treeview for webtrees

Latest Release webtrees major version Downloads

paypal

Introduction

This module is a rewritten version of the Fancy treeview module.

This new version of the module adds an additional tab "Descendants and Ancestors" to the individual page.

This tab shows in a narrative fashion the details of the current person and his/her descendants in the next two generations. What's new is that you can also get an overview of ancestors! With one click you switch to a person's ancestors in the next two generations.

If more generations are available, they are accessible by clicking the readmore link, which redirects to a separate page that displays all generations from the current person to the last accessible generation (up or down) in a narrative manner.

This gives your users a quick overview of the chosen person's family tree. Of course, privacy rules are respected.

The administrator can add or remove pages from the menu by clicking on the button at the top of the Fancy Treeview page or by using the links in the edit menu on the individual page.

There is a configuration page where you can set a few options to customize the Fancy Treeview page and/or tab to your needs.

In addition to the usual information, the ancestor overview also shows a percentage indicating the extent to which the generation is complete. The 1st generation consists of 1 person, the 2nd generation consists of the parents of that person (up to 2 persons), the next generation consists of the grandparents of the starting person (up to 4 persons) and so on. It also takes into account pedigree collapse. In genealogy, pedigree collapse describes how reproduction between two individuals who share an ancestor causes the number of distinct ancestors in the family tree of their offspring to be smaller than it could otherwise be. Without pedigree collapse, the 10th generation is complete if it consists of 512 people (2^(10-1)). To use this feature you need to set the option 'Check relationship between partners'.

At the moment it is not possible to download the Fancy Treeview page as a pdf as in the webtrees 1 version of this module. It is possible that this will be re-implemented in a later version.

Translations

You can help to translate this module. The language files are available at POEditor where you can update them. But you can also use a local editor, like Poedit or Notepad++ to make the translations and send them back to me. You can do this via a pull request (if you know how) or by e-mail. Updated translations will be included in the next release of this module.

Installation & upgrading

Unpack the zip file and place the folder jc-fancy-treeview in the modules_v4 folder of webtrees. Upload the newly added folder to your server. It is activated by default. Go to any individual page and click on the tab 'Descendants and Ancestors'.

Bugs and feature requests

If you experience any bugs or have a feature request for this module you can create a new issue on GitHub.

webtrees-fancy-treeview's People

Contributors

alexcavazos67 avatar axixu avatar bxbroze avatar enes73 avatar fisharebest avatar hrn-webtrees avatar jancsi70 avatar jpretired avatar jurdikla avatar justcarmen avatar magicsunday avatar melizaa avatar mpwt avatar rholte avatar splitpoint avatar thedutchjewel avatar trindal avatar tronsmit avatar wooc avatar zaharchenko-yurka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

webtrees-fancy-treeview's Issues

Prefix before placenames

Request received by email:

The string [before placenames] is represented with only one alternativ: in (english), i (norw.bokmål, danish, swedish)
In norwegian we use two words: i and på. Fluent norwegian would be i Bergen (name of towns), but på Kleiveland (name of farms). I'm working mostly with families from rural Norway, therefore I've chosen på in this string. Ideally there should have been two alternatives.....

This refers to the Norwegian Nynorsk translation (nn.po).

Flowing text wrong

In visitor mode of flowing text is not appended to the Image.

fancy_wrong

The text is displayed correctly in logon mode

fancy_ok

translation problem

if a person life example: 8 days you read this in english but in french you can read 8 jours an but in french you should read 8 jours

Spanish translation

Some issues needs to fixed in Spanish translation. Feedback received by email 18/5.

Error messages

When entering a wrong surname at the config page no error message is showing.

Create link in a tree

Hello,
How can I create a link the tree using tag and add click event? see the image below.

when the user clicks on "edit" , I want to execute a java script function I have written.

image

Date qualifications

The date qualifications like estimated, about, calculated, from, between etc. give problems in textual output. Linking texts like birth and dead to dates with one of these qualifications not always goes right. Some languages needs an extra prefix between the word birth/death and the date with the qualification.

Directory pdf/tmp not created

While trying to create the PDF report, the following error occured. The directory /tmp inside /pdf does not exists after a fresh install of the module.

ERROR 2: file_get_contents(modules_v3/fancy_treeview/pdf/tmp/data.txt) [function.file-get-contents]: failed to open stream: No such file or directory
0 Error occurred on in function file_get_contents
1 called from line 25 of file pdf.php in function include
2 called from line 226 of file module.php in function modAction
3 called from line 33 of file module.php

Warning: file_get_contents(modules_v3/fancy_treeview/pdf/tmp/data.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /webtrees/modules_v3/fancy_treeview/pdf/pdf.php on line 25
Unable to stream pdf: headers already sent

Foster child

When the child is foster, it appears as "son/daughter of", but it is not a son/daugther, as their parents existed.

Using of AFT

If I use AFT 1939, Fancy_treeview produced this string:

", was born on 9 February 1927 in Berlin Stadt, Brandenburg, Preußen, Deutsches Reich and died after 1939 at the age of 11. "
This person died years past this date, but it is the last date I have a prove for

I think, it is better not to print the concrete age, if the format AFT is in use.

Rtl issues in admin config

From Meliza by e-mail:

admin_config on rtl pages

  1.   latin tree titles with trailing () or special character do not print correctly. We see xxxx [yyyy] as  [xxxx [yyyy
    
  2.   Search root person soundex boxes are in wrong places (on the Surname box and the translated Russel text is under a box)
    
  3.   Print translated text Family name should be adjusted right
    
  4.  v of Pages should print to the left 
    

Language translation reference

WT_I18N::translate('and ') <---- This does not work for norwegian language. I changed the module and refered to WT_I18N::translate('and') without the space, and the translation worked fine, however the space for the next word is missing.. Could be related to the original translation file from webtrees.

This translation issue occurs several places in the module, just search up all the lines containing "('and ')", I can refer to this line as an example:

https://github.com/JustCarmen/fancy_treeview/blob/master/module.php#L1261

Burial place in stead of death place

If the death place is unknown (with a known death date and burial place) the module takes the death date with the burial place, which is obviously incorrect.

PDF contains no images

My generated pdf does not contain any image, instead it prints the following error message:

Image not readable or empty 
mediafirewall.php?mid=M1&thumb=1&ged=Baum&cb=f4db5ab2

PHP 7 - mPDF is not working

Since upgrading to PHP 7 I get a error message when clicking the pdf-icon in fance treeview.
I already posted it in the webtrees forum:
https://www.webtrees.net/index.php/en/forum/4-customising/31006-fancy-treeview-mpdf-has-a-deprecated-constructor#57479

Fisharebest replied with this two links - maybe usefull, but I can not fix it:

github.com/mpdf/mpdf/issues/68
github.com/mpdf/mpdf/commit/61b0048530f1...a548465e41a597d2908e

Here is the error message:
#0 /modules_v3/fancy_treeview/src/Template/PdfTemplate.php:37 ErrorException("Methods with the same name as their class will not be constructors in a future version of PHP; mPDF has a deprecated constructor")
#1 /modules_v3/fancy_treeview/src/Template/PdfTemplate.php:37 require_once()
#2 /modules_v3/fancy_treeview/module.php:292 pageBody()
#3 /module.php:26 modAction()

Fatal error after upgrade to 1.7.5

Upgraded to 1.7.5 (auto), chose the [disable these modules] option.

I have the following custom modules:
fancy{branches, imagebar, privacy_list, research_links, treeview, treeview_pdf, justlight_theme_options} - really good tools!
and one of my own

After the successful upgrade message, I clicked on "my page" link and received the following message, which of course persisted and did not allow access to the site.

Fatal error: Call to a member function getTreeId() on null in .../modules_v3/fancy_treeview/module.php on line 66

It was fixed, by deleting the folder fancy_treeview on the server, then accessing the site again - now OK, then reinstalling fancy_treeview (the same version, from the zip, fetched from the installation site today).

Fancy treeview information on the individual page

Hi Carmen,
I really like your fancy tree view module and the brief synopsis it displays about an individual. Just a thought... could it be added to each individual on their page, perhaps in the bottom of their name box, stopping before children, maybe only stating the number, with a link on the end to display your full "Tree view" of that individual. I'm aware all the information can be obtained thru the Facts and Interactive tree, I just like the simplicity and the way you present the information in "Fancy tree view".

Thanks,

Barry

http://www.webtrees.net/index.php/en/forum/4-customising/29565-sneak-preview-of-my-new-theme#48349

"... follow x.y" in PDF is missing

If 'Number of generation blocks to show' option is set to less than 'All' (i.e. 1 to 10)
then
"... follow x.y" in PDF is missing.
On screen:
vyber_024
In PDF:
vyber_025

If the option is set to 'All' then the PDF is correct:
vyber_026

PDF export using webtrees system exporter

Fancy Treeview is really a best module for Webtrees.

I believe Webtrees has its own coding to export PDF. Is their any possibility to use that resources and omit additional module requirement to generate pdf from Tree View.

an other translation problem

English text :

He married 2 times. The first time he married xxx. The second time he married yyy.

translation by francy treeview in french :

Il s'est marié 2 fois. La début fois, il épouse xxx . La deuxième fois, il épouse yyyyy.

an better traduction :

Il s'est marié 2 fois. La première fois, il épouse xxx . La deuxième fois, il épouse yyyyy.

Question...No Issue.

First, I wanted to say thank you. We have been looking for a Treeview with great performance and features and found several with one or the other, but none with both...unitl Fancy_Treeview.

I am a non-developer and trying to learn more about the capabilities. In our application we require a lot of "batch" node and leaf options like, selecting/unselecting all the lowest level leafs in a branch, selecting/unselecting all of children in a branch. I have found demos where we can select or unselect all items. I am curious if there are demos that focus those on a specific branch.

Our data is such that we can have the same item appear in multiple branches. Ideally when we select the item in branch 1 we would like it to be auto-selected throughout the rest of the tree. Are we dreaming?

Thanks in advance for helping me better understand the capabilities!

Update all po-files

All po-files needs to be updated. Several translatable strings has changed and some new ones are added to the _default.pot file.

Search function in 'change start person' field.

The field 'change start person' does not have a search function when you type in names. You either have to type in the INDI number (if known) or use the 'Find an individual' filter window. Other fields like that allow typing in some letters and then selecting a person from a list (i.e. menu Charts -> Pedigree -> field Individual).

See forum topic: http://www.webtrees.net/index.php/en/forum/4-customising/28425-fancy-treeview-module-updated-for-webtrees-1-5-0?start=50#44189

German translation: Age of death in months/years

If a person dies very young, e.g. aged only 12 months, the german report prints: "im Alter von 12 Monate" but it sould be "im Alter von 12 Monaten".

Is it also possible to change the string "im Alter von 62" (at the age of 62) to "im Alter von 62 Jahren", adding "Jahren" (years)?

Change root person

Change root person doesn't work. Adding ID or searching by name takes me to "My page"

First Wife and second Wife where changed

... He married 2 times. The first time he married Ursula XXX, daughter of Paul XXX and Selma XXX, on May 30, 1960. She was born on July 16, 1925 in XXX. The second time he married Gertrud XXX, daughter of Ernst XXX and Martha XXX, in 1936. She was born on April 11, 1917 in XXX and died on November 16, 1965 in XXX at the age of 48. Hans XXX and Gertrud XXX were divorced.

Gertrud was his first wife, look at the date.

Error message in FTV settings - PHP 7.1 problem

Surprisingly, I found an error message in the FTV settings few days ago:

bildschirmfoto 2017-02-19 um 12 03 28

Fancy Treeview works on my site but FTV PDF not. At the moment I use webtrees 1.7.9 with all master aditions from 19.01.2017 and the recent master of FTV and FTV PDF 1.7.9.1.

Do you have any idea?

Use "Places" configuration of tree

Currently you can configure the location string of the report to left out the country. Wouldn't it be better if the location string would be based on the tree configuration of "Places"
=> "Abbreviate place names" => "Show the parts of a place name"?

So if you select "first" and "1" you will only get the city. The fancytree option "Select your country" will be obsolete.

Relationships between individual and spouse

(Feature request)

Would it be possible to include 'only search through ancestors' as a configurable option? (fourth parameter in the calculateRelationships() function call).

This would exclude links by marriage and be true blood relationships.

'Back to top'-link

Add a 'back to top'-link in the titlebar of each generation block, because it is annoying to scroll all the way back to top on pages with a lot of generations.

Fancy_treeview with Xeno theme

I am trying to use with the Xeno theme which is an adaptation of the Xenea theme. The menu icon is incorrect compared to other themes. I tried using a copy of the Xenea theme and renamed to Xeno in the modules_v3/fancy_treeview/themes but that did not work.
Is there a suggestion ??

This is with Xeno
fancy-view

This is with Xena
fancy-view2

thanks ... Ron

Changes to URLs for media files in webtrees 2.0.0

In webtrees 2.0, the function Media::displayImage() has been updated. It now provides crop/scale/resize and the ability to add extra attributes (e.g. data-foo="bar").

In the FancyTreeviewClass::printIndividual(), you are calling some old functions (getEtag()) which no longer exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.