🍪
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Difference between revisions of "Broad Search mod"

(TNG User sites using this mod)
(TNG User sites using this mod)
 
(20 intermediate revisions by 7 users not shown)
Line 4: Line 4:
 
| mod_validation  =  
 
| mod_validation  =  
 
| mod_last_update = 19 July 2018
 
| mod_last_update = 19 July 2018
| download_link  = [http://mossfamilytree.info/download.php?mod=broad_search_mod&version=11.1.0.4c Broad Search 11.1.0.4c] from {{Tv111}}
+
| download_link  = [http://mossfamilytree.info/download.php?mod=broad_search_mod&version=11.1.0.4c Broad Search 11.1.0.4c]   For {{Tv111}} {{Tv120}}  
 
| download_stats = [http://mossfamilytree.info/downloadstats.php?mod=broad_search_mod Statistics]
 
| download_stats = [http://mossfamilytree.info/downloadstats.php?mod=broad_search_mod Statistics]
 
| mod_author      = [[User:Chris Moss|Chris Moss]]
 
| mod_author      = [[User:Chris Moss|Chris Moss]]
Line 10: Line 10:
 
| mod_support    = [http://mossfamilytree.info/suggest.php contact author]
 
| mod_support    = [http://mossfamilytree.info/suggest.php contact author]
 
| mod_contact    = [http://mossfamilytree.info/suggest.php contact author]
 
| mod_contact    = [http://mossfamilytree.info/suggest.php contact author]
| mod_version    = 11.1.0
+
| mod_version    = 11.1.0.4c
 
| min_TNG_ver    = 11.1.0
 
| min_TNG_ver    = 11.1.0
| max_TNG_ver    = 11.1.2
+
| max_TNG_ver    = 12.1
 
| TNG_file_list  = search.php, genlib.php, cust_text.php (supported languages), index.php (all templates), topmenu.php (some templates), templatestyle.css (template 4),
 
| TNG_file_list  = search.php, genlib.php, cust_text.php (supported languages), index.php (all templates), topmenu.php (some templates), templatestyle.css (template 4),
 
| related_mods    = [[Married Name in Search Mod]] (incompatible)
 
| related_mods    = [[Married Name in Search Mod]] (incompatible)
Line 89: Line 89:
 
| [https://www.kmtrees.com Roots & Relatives Remembered]
 
| [https://www.kmtrees.com Roots & Relatives Remembered]
 
| [[User:Tngrlkrz|Ron Krzmarzick]]
 
| [[User:Tngrlkrz|Ron Krzmarzick]]
| Public & Private minor popup change, added deathdate/place
+
| Public & Private
| 11.1.0.4b / 12.0.1
+
| [https://www.kmtrees.com/rrmodcompare_report.php?power=basic&cachemethod=3&sb=filename&aformat=full&statushilite=1&b1=0 See Here]
 
| EN,DE,CS,ES
 
| EN,DE,CS,ES
 
|-
 
|-
Line 111: Line 111:
 
| EN,FR,DE,ES,NL
 
| EN,FR,DE,ES,NL
 
|-
 
|-
| [http://racine-ad.fr/TNG/index.php racine d'Alsace]
+
| [http://genealogy.oceanwharf.com Hooley Family Links]
| J-Louis Valory
+
| [[User: lastejas|Rick Hooley]]
| Public/Private - Template 1
+
| Public/Private
| 11.1.0.2b / 11.1.1
+
| [[User: lastejas|See Here]]
| French
+
| EN
 +
|-
 +
| [http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 +
| [[User:Louis42|J-Louis Valory]]
 +
| Public/Private - T17 customized
 +
| 11.1.0.4c / 12.0.3
 +
| FR
 
|-
 
|-
 
| [https://www.ennever.com/ Ennever/Enever Family History]
 
| [https://www.ennever.com/ Ennever/Enever Family History]
Line 128: Line 134:
 
| [[User:Dlcole|see here]]
 
| [[User:Dlcole|see here]]
 
| English
 
| English
 +
|-
 +
| [[User:JPB|Current info on my user site]]
 +
| [[User:JPB|JPB]]
 +
| Public site
 +
| ...
 +
| DE, EN, FR
 +
|-
 +
| [http://teresa-goatham.me.uk/genealogy/home.php Teresa's Tree]
 +
| [[User:Teresa|Teresa Goatham]]
 +
| Public site
 +
| 11.1.0.4c/12.1
 +
| EN
 +
|-
 +
| [https://journeysingenealogy.com Journeys in Genealogy]
 +
| [[User:PapaTango|Patrick Thrush]]
 +
| Public WordPress/TNG bundle
 +
| 11.1.0.4c/12.1
 +
| English
 +
|-
 +
| [https://WokingFamily.com/ Woking Family Tree Project]
 +
| [[User:TBirdUK|Pete Smee]]
 +
| Public/Private
 +
| 11.1.0.4c/12.1
 +
| English
 +
|-
 
|}
 
|}
  
Line 179: Line 210:
 
|}
 
|}
 
[[Category: Mods for TNG v11]]
 
[[Category: Mods for TNG v11]]
 +
[[Category:Mods for TNG v12]]
 
[[Category:search.php mods]]
 
[[Category:search.php mods]]
 
[[Category:genlib.php mods]]
 
[[Category:genlib.php mods]]

Latest revision as of 15:16, 19 November 2019

Broad Search mod
Summary Allows quick search for a name using nicknames, aliases, married names
Validation
Mod Updated 19 July 2018
Download link Broad Search 11.1.0.4c For
TNG 11.1
TNG 12.0
Download stats Statistics
Author(s) Chris Moss
Homepage Broad Search mod (This page)
Mod Support contact author
Contact Developer contact author
Latest Mod 11.1.0.4c
Min TNG V 11.1.0
Max TNG V 12.1
Files modified
search.php, genlib.php, cust_text.php (supported languages), index.php (all templates), topmenu.php (some templates), templatestyle.css (template 4),
Related Mods
Notes
None


Broad Search mod adds an option button to the quick search which generalises the search to include:

  1. the married name of women
  2. nicknames
  3. the contents of NAME events (can be changed)
  4. the contents of ALIA events (can be changed)

This mod is an alternative to and generalisation of Married Name in Search Mod and is incompatible with it. So you need to decide which one to use and uninstall the other before installing this module.

An extra column marked "Other name" in the results indicates the alternative string that has been used in the search. Because nicknames and aliases can include both first and last names, in some cases the string can be duplicated in this column.

Customisation is provided for all templates. It is also possible to set up the broad search as the default.

Caution: in earlier versions with large databases (>10,000 individuals) this mod could increase MySQL execution time for searches that could lead to MySQL execution time quotas being exceeded but v4 largely solved this problem.

Contents

Examples

The quick search box with the broad search box ticked.

Broad search dropdown box.png

Here is an example of a search for Elizabeth Sarah. Of the five results only one person was born with the surname Sarah. For the others it was a married name.

Broad search Elizabeth Sarah.png

A search for "William Sarra" shows a change of name from Sarah to Sarra. One of these was defined using ALIA and the other NAME.

Broad search William Sarra.png

This search for "Lizzie" shows that the name was more common on the birth certificate than you might expect, and only once is a nickname.

Broad search Lizzie.png

Installation

Unzip the file and put the .cfg file in the mods directory and install with the mod manager in the normal way.

Caution This mod involves a number of changes to template files such as index.php which people often change more than any other file in the TNG system. It's possible that this will cause the Mod Manager to say the mod cannot be installed. If this is the case I'll try and help if you can send me a copy of the file concerned (such as templateX/index.php).

Note For the dropdown search, this mod assumes that the setting in 'Admin > General Settings > Site Design and Definition > Search link destination' is set to "Quick Search" not to "Advanced Search". Otherwise you will only be able to use this functionality from the front page.

The quick search will search all trees unless the "Default Tree" is set in 'Admin >> Configuration >> General Settings >> Site Design and Definition'.

Options

The behaviour of the mod can be changed in several ways by clicking on "Installed [Options]" then the "Edit options" button in the mod list.

  1. If you use events other than NAME and ALIA to record alternative names (e.g. AKA) then you can substitute one or the other of these. Change the name in the one of the first two boxes and click the Update button corresponding to it.
  2. If you want to make broad search the default method for quick searches, then you can set this up. In this case the box will appear with a tick but the user can untick it if the broad search is not wanted. You need to customise the particular template you are using. Templates vary, having a dropdown search box on pages other than the front page, but they may a menu on the front page or the top menu or both. You can choose which of these boxes are ticked.
    1. To set the default for the dropdown menu, put "checked" in the box for the dropdown search menu (variable $checked0) and click the Update button.
    2. To set the box on the front page, put "checked" in the box for the templateX/index.php file corresponding to your template and click the Update button.
    3. If there is a topmenu for your template then put "checked" in the box for the templateX/topmenu.php file and click the Update button.
If you subsequently decide you don't want these set, then remove the "checked" entry and click the corresponding Update button(s).

Broad search options.png

TNG User sites using this mod

If you download and install this mod, please add your TNG sites to the table below.

URL User Note Mod-Version/TNG-Version User-language
Moss Family Tree Chris Moss Template 5 11.0.0 EN, FR, DE
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here EN,DE,CS,ES
Wortelboer genealogy Bernard Wortelboer Template 12 11.0.2 NL, EN
Our Roy and Boucher Family Ken Roy I no longer user this mod since it causes excessive MySQL utilization on my multi-tree sites. Will revert back to using the Married Name in Search Mod n/a / 11.1.1 FR, EN
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Template 8 Modified to enable broad search in home-page custom search box 11.0.0.1d / 11.0.2 EN,FR,DE,ES,NL
Hooley Family Links Rick Hooley Public/Private See Here EN
Racine d'Alsace J-Louis Valory Public/Private - T17 customized 11.1.0.4c / 12.0.3 FR
Ennever/Enever Family History Barry Ennever Customised template 4 11.1.2 EN
Cole / Tanner Family Tree David Cole Public/Private see here English
Current info on my user site JPB Public site ... DE, EN, FR
Teresa's Tree Teresa Goatham Public site 11.1.0.4c/12.1 EN
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 11.1.0.4c/12.1 English
Woking Family Tree Project Pete Smee Public/Private 11.1.0.4c/12.1 English

Revision History

Version Date Contents
11.1.0.4c 19 Jul 2018 template 7 top menu option didn't show. Thanks Gershon.
11.1.0.4a, 4b 9 Feb 2018 corrections for bugs in search query
11.1.0.4 27 Dec 2017 More efficient search, particularly first name or last name only
11.1.0.3 7 Nov 2017 Optimise search, use variable names for tables
11.1.0.2b/ 11.0.0.1e 20 Jun 2017 make XHTML 1.0 compliant and correct search for ids and searches with quotes
11.1.0.2a 12 Jan 2017 correct version number
11.1.0.2 11 Jan 2017 adjust for TNG v11.1 and regularise tick boxes
11.0.0.1d 15 Dec 2016 make searches in large databases efficient
11.0.0.1b 12 Dec 2016 correct continuation search pages & syntax error in translations
11.0.0.1a 11 Dec 2016 correct numbering for multiple solutions and minimise conflict with Married Name in Search Mod