Admin Places Search
Admin Places Search | ||
---|---|---|
Summary | Adds search options and results details to the Admin>>Places>>Search program | |
Validation | ||
Mod Updated | 17 Nov 2023 | |
Download link | 14.0.0.6g
See the Revision History for older versions | |
Download stats | ||
Author(s) | Robin Richmond | |
Homepage | Robin's Roots | |
Mod Support | My Mod Support form | |
Contact Developer | My Mod Support form | |
Latest Mod | 14.0.0.6g | |
Min TNG V | 11.0 | |
Max TNG V | 14 | |
Files modified | admin_places.php, admin_genconfig.php, admin_updateconfig.php, English places_help.php | |
Related Mods | Mod Settings Blocks(required), Admin Places Geocode | |
Notes |
Purpose of the Mod
Adds features to the Admin >> Places >> Search form and results list as follows:
- In the search form
- Draws a fieldset border around the search form to help distinguish it from the action/pagination form.
- Changes and adds some Search options:
- Adds a '+' button to expand the Search field
- Allows the Regular Expression anchor characters ^ and $ to be placed at the beginning and/or the end of the search string. (See the visualizations for a specific example.)
- Adds a Placeholder text message in the Search field to note that the anchor characters can be used there.
- Adds an information icon next to the Search field that pops up help text describing the changes to the Search field
- Changes the "Has Geocodes" option to radio buttons for "Geocodes: yes/no/either"
- Adds radio buttons for "Place Level: yes/no/either"
- Adds checkbox options to require a cemetery link or notes.
- Adds some Display options:
- "Results Per Page", which overrides the system value ($maxsearchresults), but defaults to it.
- "Show Place Notes", which are displayed in a new column.
- "Show Cemetery Links", which are displayed as hyperlinks in a new column. When the Cemetery Links column is displayed, a table footnote describes that column.
- In TNGv13, "Show Modification Date". That is, the sortable modification date column added by TNG is not displayed by default.
- Displays the search parameters just above the results table.
- In the results table:
- Rounds longitude and latitude values to the number of decimal digits supplied by a mod option defined by the optional Admin Places Geocode mod.
- In the Placelevel column, optionally displays descriptive names such as "Location" and "City/Town". Handles mods that add placelevels.
- Omits the Tree column if a tree was selected
Mod Options
Mod settings are defined and edited in a Mod Settings Block at Admin>>Setup>>General Settings, in the new subform 'Mod Settings .
The mod has three options. Each of them has the ability to turn off one or more features of the mod and simplify the search form.
- Display Placelevel names as well as numbers: This option works even if most that increase the number of placelevels have been installed.
- Show Cemetery Options: Two of the new options on the search form are optional themselves. Both are checkboxes:
- The search option "Has a cemetery link" and
- The display option "Show cemetery links".
- Show the "Has Notes" option. This option does affects just the search option. It does not affect the "Show notes" option.
Compatibility
This mod is compatible with Admin Places Geocode, Places Subject to Deletion, and two mods, Google Maps - More Place Levels Mod and Google maps 15 that add Placelevel definitions. It is not compatible with Tree ID Mod, but is compatible with TreeID-One Column, which accomplishes the same purpose as Tree ID Mod. TreeID-One Column just uses one column instead of two to display the Tree ID and Tree Name, and avoids a couple of mod conflicts.
Related Mods
- The Mod Settings Blocks mod packages this mod's options into what I call a "Mod Settings Block", which is a set of form fields that formatted and labeled so that it stands out among other options in an Admin>>Setting form. Mod Settings Blocks is a prerequisite for this mod; it must be installed before this mod can be installed.
- The optional Admin Places Geocode mod defines a mod option that controls the number of decimal digits in Latitude and Longitude values. If that option has been defined, then this mod rounds the Latitude and Longitude as they are read from the database, and as they are written to the database.
language
This mod does not install any files, but it does still have a mod subfolder, which contains the mod's language strings. That is, this mod's language strings are not defined in its .cfg file nor copied to cust_text.php files. As a result
- This mod's language strings are loaded only into the TNG programs that need them, not into all TNG programs, and
- It is easier to create, edit, test, and save translation for this mod than for mods that use standard cust_text.php strings.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
languageonly
This mod does not install any files, but it does still have a mod subfolder, which contains the mod's language strings. That is, this mod's language strings are not defined in its .cfg file nor copied to cust_text.php files. As a result
- This mod's language strings are loaded only into the TNG programs that need them, not into all TNG programs, and
- It is easier to create, edit, test, and save translation for this mod than for mods that use standard cust_text.php strings.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
languagesubsection
The Mod Subfolder
This mod does not install any files, but it does still have a mod subfolder, which contains the mod's language strings. That is, this mod's language strings are not defined in its .cfg file nor copied to cust_text.php files. As a result
- This mod's language strings are loaded only into the TNG programs that need them, not into all TNG programs, and
- It is easier to create, edit, test, and save translation for this mod than for mods that use standard cust_text.php strings.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
languageandfilessubsection
Language Strings
This mod's language strings are defined, distributed and files in its mod subfolder rather than in its .cfg file. TNG programs affected by this mod then load language strings from those mod subfolder files rather than from cust_text.php files. This non-standard technique for handling language strings has several advantages, including that
- It loads language strings only into the pages that need them rather than into all TNG pages, and
- It simplifies the process of defining and editing translations.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
installdetails
Standard Installation Process
[See details]
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager.
- You should backup files listed in the panel on the right.
Procedure
- Remove and delete previous version of this mod.
- Backup the files updated by this mod. They are listed in the panel at the upper right.
- Download the .zip file, Extract its .cfg file to the mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.
Problems?
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support form.
Installation
Files Modified
- admin_places.php, as described above
- admin_genconfig.php, where the mod options are edited
- admin_updateconfig.php, the action script for admin_genconfig.php, and
- places_help.php
The Mod Subfolder
This mod does not install any files, but it does still have a mod subfolder, which contains the mod's language strings. That is, this mod's language strings are not defined in its .cfg file nor copied to cust_text.php files. As a result
- This mod's language strings are loaded only into the TNG programs that need them, not into all TNG programs, and
- It is easier to create, edit, test, and save translation for this mod than for mods that use standard cust_text.php strings.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
Standard Installation Process
[See details]
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager.
- You should backup files listed in the panel on the right.
Procedure
- Remove and delete previous version of this mod.
- Backup the files updated by this mod. They are listed in the panel at the upper right.
- Download the .zip file, Extract its .cfg file to the mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.
Problems?
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support form.
Visualizations
(These visualizations are not perfectly up-to-date, but they are close.) from mod version 3a, but most of them also apply well to mod version 4. See update notes in the Revision History section of this article.)
BEFORE: The Pristine Admin >> Places screen, with the system variable $maxresults (Results per page) set to 30. Note that |
AFTER: Search results without a search string, highlighting some of the new features
|
AFTER: Results for the search string "cemetery", with the "Show notes" and "Show Cemetery Links" options selected. |
AFTER: When the "Missing Latitude or Longitude" option is selected. |
AFTER: The help text added by this mod |
AFTER: Field Buttons
Field buttons are described further in the Field Buttons mod article. The Field Buttons mod is necessary to make the field buttons visible. Buttons that would not change the value are shaded out, as shown below.
|
Revision History
Mod Version | TNG Versions | Date | Note |
---|---|---|---|
14.0.0.6g |
rraps
|
17Nov2023 | The search string now supports the regular expression anchor characters '^' and '$',The option to search for "Placelevel not set" is now 'Placelevel: yes/no/either'. Display options in the search form are now "Results per page", ShowPlace notes, Show links to cemeteries. Search parameters are shown above the search results. In the results table: The Place Level column shows descriptions, whether Placelevel numbers are displayed,PlaceLevel, Latitude, Longitude, and Tree columns are displayed differently, The "geoignore" field is included when displaying places without a lat or long value. This mod works with the mods that add Place Levels for Google Maps, thanks to changes made by Ken Roy. |
14.0.0.6f |
rraps
|
10Feb2023 | Upgrade for TNGv14 |
13.0.0.6d | 13.1 | 30Oct2021 | Updated the mod for TNGv13.1, and incorporated the changes made by mod v13.0.4.6c so one mod version can handle TNGv13.*
|
13.0.4.6c | 13.0.4 | 09Jun2021 |
|
13.0.0.6b | 13-13.0.3 | 05Nov2020 |
v6a 18 Oct 2020
|
14.0.0.6f | 13 | 30Aug2020 |
|
12.0.0.4b | 12.0-12.3 | 26Feb2020 |
|
12.0.0.4 (beta) | 12.0+ | 18Aug2019 | No significant changes to the search and display functionality.
|
12.0.0.3a | 12.0+ | 14Nov2018 | No functional changes; made compatible with TNGv12. |
11.0.0.3a | 11.0+ | 28Dec2017 | Visibly, added "field buttons". Technical changes include
|
11.0.0.2a | 11.0+ | 30May2017 | Added the Insert Links function to the Place Notes so that URLs and and FindAGrave ID's are displayed as hyperlinks. First non-beta version |
11.0.0.2 | 11.0+ | 26May2017 | Now compatible with Google Maps - More Place Levels Mod and Google maps 15. Also added the two mod parameters. |
11.0.0.1 | 11.0+ | 13Apr2017 | New mod. |
Sites using this mod
If you download and install this mod, please add your site to the table below.
URL | User | Note | Mod-Version | TNG-Version | User-language |
---|---|---|---|---|---|
Sample Page on Robin's Roots userid/pw: a/a | Robin Richmond | Mod developer | 14.0.0.6g |
rraps
|
English |
Our Roy and Boucher Family | Ken Roy | Modified to display correct Place Level description to support Google Maps - More Place Levels Mod and Google maps 15. | 11.0.0.1 | 11.1.1 | English, French |
The Cole / Tanner Family Tree | David Cole | Public/Private | see here | see here | EN, DE, FR, ES, NL |
Hooley Family Links | Rick Hooley | Public/Private | See Here | See Here | EN |