Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Selecting places from dropdown 3 weeks 5 days ago #1

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 25
When entering place names for example birth or death, I normally start typing and a dropdown appears with options containing the typed string.
That is OK.
Apparently there is a limit of 10 found places in the dropdown.

Now I have an issue with some short placenames (in the Netherlands) like Uden or Loo.
These are names that produce a long dropdown list, because there are a lot of placenames in the database containing these strings.

For example the name Uden produces in my case:
Crudenburg, Nordrhein-Westfalen, Duitsland
Freudenstadt, Baden-Württemberg, Duitsland
Gudensberg, Hessen, Duitsland
Judenburg, Steiermark, Oostenrijk
Lüdenhausen, Nordrhein-Westfalen, Duitsland
Lüdenscheid, Nordrhein-Westfalen, Duitsland
Oudenaarde, Oost-Vlaanderen, België
Oudenbosch, Noord-Brabant, Nederland
Oudenrijn, Utrecht, Nederland
Rauden, Sachsen, Duitsland

... but NOT the place I am looking for: Uden, Noord-Brabant, Nederland

In webtrees 1.7 I was able to type on more characters like Uden, N and then the right place eventually appears in the dropdown list.

But in Webtrees 2 it does not.
It looks like if the search is done only on the first part of the placename.

The problem now is that my editors do not find the correct placename and think it does not exist yet.
Then they are entering the name as a new one and sometimes make typos, so duplicates arise.

Is this as designed or is it a bug ?

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

Selecting places from dropdown 3 weeks 5 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14515
We use the corejs-typeahead library for this.

AFAICT, it is a limitiation / design-decision of this library.

I've been seaching for a solution to this - but cannot find one.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Selecting places from dropdown 3 weeks 5 days ago #3

I had the same problem and I changed the limit from 10 to 15 in /public/js/webtrees.min.js (search for "limit:10").

Before v2.0.15 I could adjust it in the file AbstractAutocompleteHandler.php. But this no longer worked. Presumably the setting there is overwritten with webtrees.min.js.
Martin - ffp.bauschaffen.de

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

  • Page:
  • 1
Powered by Kunena Forum