Expand Search

From TNG_Wiki
Jump to navigation Jump to search
Caution Expand Search replaces: Direct Line Search, Search Page Expansion. You must uninstall them both first.
TNG version: 13.0.0
Caution


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Expand Search
Summary Adds search functionality and a user search page with filters.
Validation
Mod Updated 25 May 2023
Download link For
TNG 14.0

Expand Search for TNG 14.1b
For
TNG 13.0

Expand Search for TNG 13
For
TNG 12.0

Expand Search for TNG 12
Download stats
Author(s) A.S. DuPree
Homepage Expand Search (This page)
Mod Support TNG Community Forums
Contact Developer adupree.com
Latest Mod 14.0.0.1b
Min TNG V 12
Max TNG V 14
Files modified
search.php
searchform.php
searchlib.php
famsearch.php
getperson.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
Related Mods
Notes
An amalgam of Direct Line Search and Search Page Expansion - UNINSTALL them before installing this mod.

Purpose of the mod

This TNG modification adds search functionality and a user search page with filters.

In larger and larger databases, it can be frustrating to hone in attention on the people we need to research.

This mod helps by providing searching aids to get right to the right people.

It adds the following functionality:
To the Search Page

  1. Search end of lines - finds individuals with no parents. Use with branches or Sosa to find top of the line ancestors
  2. No sources - returns records that do not have citations. Useful for improving your data
  3. Sosa search - Search for folks with sosa numbers. Shows up if you have Sosa installed
  4. New Search criteria - Adds CAPS (for capital letters) and does not contain to the search criteria
  5. A "residence" search that allows searching across all places -- birth, death, burial and baptism -- at once. An "all residence" option includes all events.

To the Search Results Only for logged in users:

  1. Sources, notes and media numbers are added to the table
  2. A filter bar for branches, sosa (shows if mod installed), sources, notes and media.

It can be used as a stand alone or in conjunction with the Bold Ancestor Child Links mod or Sosa mod to identify direct and end-of-line ancestors where many of us want to focus our attention.

Developer

This mod was developed by A.S. DuPree (a novice, happy for any help on improving it).

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site

Revision History

  1. (14) V1.b - Missing code line returned.
  2. (14) V1a - Removes hard coded Sosa table name
  3. (14) V1 - Errors and improvements for working with Expand Statistics
  4. (14) V0a - Cleaned for php 8 (thanks Ron and Ken)
  5. (14) V0 - Can be installed on tng 14.
  6. V7 - Includes search code from Expand Statistics and fixes long url strings.
  7. V6 - Note there was no V5. V6 provides functionality to Expand_Statistics. Also some small fixes. Adds search in residence for All USA places.
  8. V4a - Adds an option to control the way the Residence search field displays.
  9. V4 - Fixes error when sosa is not installed.
  10. V3 - Adds residence search.
  11. V2 - filters are now persistent across pages and the next time you search. Also a message tells you how many records are displayed on the page.

Conflicts and Issues

No known conflicts.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and any tables if created, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Visualization

The following screen captures show the changes made by the mod:

Search Page

What this looks like on your search page:

Es1.png

Search Results

Es2.png

Languages

English is used for this Mod. If you want to use it with a different language, add the correct text (between double quotes) in the code below and add to your cust_text.php file in the appropriate language folder.

// Expand Search
$text['displaying'] = "Displaying";
$text['recordsfrom'] = "records from";
$text['srcmsg'] = "No citations - person and one family (slow)";	
$text['eolmsg'] = "Search end of lines (children but no parents)";
$text['allcaps'] = "All CAPS for";	
$text['dncontain'] = "does not contain";
$text['residence'] = "Residence";
$text['residenceisin'] = "residence is in";
$text['withoutparents'] = "without parents";
$text['noattachedsources'] = "no attached sources";
$text['allresidences'] = "all residences";
// Expand Search

Sites using this mod

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

URL User Note Mod-Version TNG-Version User-language
Adupree.com A.S. DuPree Mod Developer 14.0.0.1 14.0.1b EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See here See here EN,DE,CS
Racines Luxo-hennuyères Michel Kirsch Public site (registration) 14.0.0.1b 14.0.2 FR,EN,DE,NL
Racine d'Alsace J-Louis Valory Public (registration) 13.0.0.0 13.0.4 FR
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.0.0.0 13.1.2 NL
Scealta Ton van Lil Public & Private 14.0.0.0a 14.0.1 NL,EN
GénéaKat Katryne Public & Private 14.0.0.1b 14.0.4 FR,EN,SP
La saga BIGEY François B Public 13​.0​.0​.10a 14.0.2 FR