This Help forum is for issues relates to the latest release (1.7.9). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: Top 10 surnames block

Top 10 surnames block 2 months 5 days ago #1

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 28
Hello

In Greek language, most of the times the surname of the male is a little bit different from the female, in the same family.

For example : Panagos (male) - Panagou (female)

Because of this particularity, the block "Top 10 surname" shows wrong data.

For example :

Panagos 30
Panagou 35

but the correct one is : Panagos-Panagou 65

Any suggestion, how to work this out?

Panagiotis
The administrator has disabled public write access.

Top 10 surnames block 2 months 5 days ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1391
There are some other languages with similar rules, already implemented in webtrees.

If you can specify what these rules exactly are, maybe it can be implemented in a future version.
Best to raise this as an issue (or feature request) in GitHub: github.com/fisharebest/webtrees/issues
stamboom.BertKoor.nl runs on webtrees v1.7.9
Last Edit: 2 months 5 days ago by bertkoor.
The administrator has disabled public write access.

Top 10 surnames block 2 months 5 days ago #3

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 28
The implementation for the other languages is hard-coded or there is somewhere a setting section for this kind of rules?
The administrator has disabled public write access.

Top 10 surnames block 2 months 5 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10339
There are two things here.

Surnames have an "inflected" form (male, female, child, parent, etc.) and a "root" form.

You put the inflected form in the NAME field, and the root form in SURN field. e.g.

1 NAME Agathe /Panagou/
2 GIVN Agathe
2 SURN /Panagos/

In webtrees, if you click the "edit" icon at the end of the name, you can update SURN and NAME separately.

If you do this, webtrees will group/sort/count the surnames correctly.

The second issue is that webtrees can create the inflected surnames automatically. For example, if you add a daughter to "Adrian /Panagos/", webtrees will create an indivdiual with the surname "Panagou".

> The implementation for the other languages is hard-coded

Yes - it is hard coded. You can see the logic for various languages here:
github.com/fisharebest/webtrees/tree/mas...app/SurnameTradition

If you explain the rules to me, I can create the code for Greek.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Top 10 surnames block 2 months 4 days ago #5

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 28
Well, there are no specific rules to give you, like spesific endings in the names based on the individual sex or something llike this...

I checked the "infected" form and it works but I have to edit 1700+ individuals...

I think that a add-on solution will be more efficient.
The administrator has disabled public write access.

Top 10 surnames block 2 months 4 days ago #6

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Gold
  • Posts: 1464
For documentation purposes, future readers of this thread. This concept is outlined here.
Ken
Last Edit: 2 months 4 days ago by norwegian_sardines.
The administrator has disabled public write access.

Top 10 surnames block 1 month 4 weeks ago #7

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 28
I used the "inflected" form of the surnames and I managed to correct the Top N Surnames block.

The only matter that I see is that the default sorting by the counts of the surnames is not working
and the surnames are displayed alphabetically.

The visitor has to click on the Counts column header to sort them from the most common surname to the least.



Is it a bug?
The administrator has disabled public write access.

Top 10 surnames block 1 month 3 weeks ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10339
I've not looked at the 1.7 code for a while (very busy with 2.0).

But assuming it works the same way, we use the client (i.e. web browser) to sort the data and to remember the prefered sort order - rather than sort on the server.

This means that if a user selects "by number" once, they should see the same order next time they visit the page. This gives control to the user, rather than the site admin.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Top 10 surnames block 1 month 3 weeks ago #9

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 28
Well, I tested it with different clients from different devices.

When then "infected" n_surn field is the same with the n_surname the default sorting is "by number".
When there is a record, with different n_surn andn_surname then the default sorting changing from "by number" to "by name".

With "default sorting" I mean the sorting that they see when they first visit the site without clicking anywhere.

This behavior is faulty because not all the visitors are familiar with the use of click and sort operations in browsers.
They see the first picture and they get wrong impression.
The administrator has disabled public write access.
Powered by Kunena Forum