Difference between revisions of "Admin Cemetery Edit"
Robinrichm (talk | contribs) (mod version 9h, which makes backward-compatible updates for TNGv13.1 and TNGv13.1.1) |
|||
Line 4: | Line 4: | ||
| mod_validation = | | mod_validation = | ||
| mod_last_update = 22 Nov 2020 | | mod_last_update = 22 Nov 2020 | ||
− | | download_link = [[Media:admin_cemetery_edit_v13.0.0. | + | | download_link = [[Media:admin_cemetery_edit_v13.0.0.9h.zip|13.0.0.9h.zip]]{{Tv130}} |
− | |||
<div style='clear:both;font-size:90%'>See older versions in the [[#Revision_History|Revision History]]</div> | <div style='clear:both;font-size:90%'>See older versions in the [[#Revision_History|Revision History]]</div> | ||
| download_stats = | | download_stats = | ||
Line 12: | Line 11: | ||
| mod_contact = [http://www.robinrichmond.com/family/mod_support.php My Mod Support form] | | mod_contact = [http://www.robinrichmond.com/family/mod_support.php My Mod Support form] | ||
| mod_support = [http://www.robinrichmond.com/family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums] | | mod_support = [http://www.robinrichmond.com/family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums] | ||
− | | mod_version = v13.0.0. | + | | mod_version = v13.0.0.9h |
| min_TNG_ver = 10.0.1 | | min_TNG_ver = 10.0.1 | ||
− | | max_TNG_ver = 13 | + | | max_TNG_ver = 13.1.1 |
| TNG_file_list = Modifies: admin_editcemetery.php, admin_updatecemetery.php, admin_cemeteries.php, admin_newcemetery.php, admin_addcemetery.php, cemeteries_help.php, admin_genconfig.php, admin_updateconfig.php | | TNG_file_list = Modifies: admin_editcemetery.php, admin_updatecemetery.php, admin_cemeteries.php, admin_newcemetery.php, admin_addcemetery.php, cemeteries_help.php, admin_genconfig.php, admin_updateconfig.php | ||
| related_mods = [[Admin Cemeteries Search]], [[Admin Places Geocode]], [[Field Buttons]] | | related_mods = [[Admin Cemeteries Search]], [[Admin Places Geocode]], [[Field Buttons]] | ||
Line 138: | Line 137: | ||
*#* '''Starts With''' - The search string looks only at the beginning of a Place value, | *#* '''Starts With''' - The search string looks only at the beginning of a Place value, | ||
*#* '''Contains''' - The search looks anywhere within a Place value, or | *#* '''Contains''' - The search looks anywhere within a Place value, or | ||
− | *#* '''Contains Each'' - The search looks for each place component (the comma-pieces) in each Placename in the database. (This option is disabled | + | *#* '''Contains Each'' - The search looks for each place component (the comma-pieces) in each Placename in the database. (This option is disabled in mod version 9h because of Javascript behavior I cannot explain.) |
*# The "Search" button, and | *# The "Search" button, and | ||
*# An information icon next to the Search button. | *# An information icon next to the Search button. | ||
Line 196: | Line 195: | ||
! Mod Version !! TNG Version !! Date !! Note | ! Mod Version !! TNG Version !! Date !! Note | ||
|- style="vertical-align:top;" <!-- ############################################################## --> | |- style="vertical-align:top;" <!-- ############################################################## --> | ||
− | | [[Media:admin_cemetery_edit_v13.0.0.9f.zip| | + | | [[Media:admin_cemetery_edit_v13.0.0.9h.zip|13.0.0.9h]] |
+ | | 1.0-13.1.1 | ||
+ | | 14Jan2022 | ||
+ | | Made backward-compatible changes to handle TNGv13.1 and TNGv13.1.1 | ||
+ | |||
+ | |- style="vertical-align:top;" <!-- ############################################################## --> | ||
+ | | [[Media:admin_cemetery_edit_v13.0.0.9f.zip|13.0.0.9f]] | ||
| 13 | | 13 | ||
| 22Nov2020 | | 22Nov2020 | ||
Line 247: | Line 252: | ||
** Changed calls to the Field Buttons library, requiring version 3 of the Field Buttons mod (well, if the Field Buttons mod is installed at all) | ** Changed calls to the Field Buttons library, requiring version 3 of the Field Buttons mod (well, if the Field Buttons mod is installed at all) | ||
** admin_editcemetery.php now handles rounding of the geocoordinates slightly differently. Rounding is still based on the "Round to how many decimal digits" mod option in [[Admin Places Geocode]]. Installation of [[Admin Places Geocode]] is still optional, but now, this mod doesn't do any rounding unless the [[Admin Places Geocode]] is installed and the rounding option is set. | ** admin_editcemetery.php now handles rounding of the geocoordinates slightly differently. Rounding is still based on the "Round to how many decimal digits" mod option in [[Admin Places Geocode]]. Installation of [[Admin Places Geocode]] is still optional, but now, this mod doesn't do any rounding unless the [[Admin Places Geocode]] is installed and the rounding option is set. | ||
+ | |} | ||
+ | |||
+ | <div class="mw-collapsible mw-customtoggle-history1 mw-customtoggle-history2" id='mw-customcollapsible-history1' style="text-decoration:underline;color:#0645ad;"> [Show Older Versions, back to TNGv9.2 in 2014]</span> | ||
+ | <div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-history2' style="margin-left:2em; border:thin solid grey;"> | ||
+ | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" | ||
+ | ! Mod Version !! TNG Version !! Date !! Note | ||
|- style="vertical-align:top;" <!-- ############################################################## --> | |- style="vertical-align:top;" <!-- ############################################################## --> | ||
| [[Media:cemetery_edit_v12.0.0.8b.zip|12.0.0.8b]] | | [[Media:cemetery_edit_v12.0.0.8b.zip|12.0.0.8b]] | ||
Line 307: | Line 318: | ||
| Initial Release | | Initial Release | ||
|} | |} | ||
+ | <!-- BUTTON AT THE BOTTOM OF TOGGLED CONTENT --><div class="mw-customtoggle-history1 mw-customtoggle-history2" style="text-decoration:underline;color:#0645ad;text-align:right;">[Hide old versions]</div> | ||
+ | </div><!-- END TOGGLED CONTENT and END DOUBLE TOGGLE --> | ||
== Sites using this mod == | == Sites using this mod == | ||
Line 317: | Line 330: | ||
| [[User:Robinrichm|Robin Richmond]] | | [[User:Robinrichm|Robin Richmond]] | ||
| Mod developer | | Mod developer | ||
− | | 13.0.0. | + | | 13.0.0.9h |
− | | 13. | + | | 13.1.1 |
| English | | English | ||
|- | |- |
Revision as of 23:18, 14 January 2022
Admin Cemetery Edit | ||
---|---|---|
Summary | Makes workflow and presentation changes to the Cemetery Edit form and the Cemeteries "Add New" tab. | |
Validation | ||
Mod Updated | 22 Nov 2020 | |
Download link | 13.0.0.9h.zip
See older versions in the Revision History | |
Download stats | ||
Author(s) | Robin Richmond | |
Homepage | this page | |
Mod Support | My Mod Support form or TNG Community Forums | |
Contact Developer | My Mod Support form | |
Latest Mod | v13.0.0.9h | |
Min TNG V | 10.0.1 | |
Max TNG V | 13.1.1 | |
Files modified | Modifies: admin_editcemetery.php, admin_updatecemetery.php, admin_cemeteries.php, admin_newcemetery.php, admin_addcemetery.php, cemeteries_help.php, admin_genconfig.php, admin_updateconfig.php | |
Related Mods | ||
Notes |
Purpose of the Mod
This mod is intended to improve the workflow and layout of the Cemetery Edit form, and, particularly to clarify the differences among the buttons that fill in the Associated Placename field.
Functional changes in the Cemetery Edit page include:
- A new Associated Placename lookup tool (in addition to the one in the native Edit form). The new "Place Lookup & Copy" form:
- Provides buttons that copy Cemetery city, county, state, and country values to the search field,
- Has more search options,
- In the search results:
- Displays Geocodes, Tree, Number of Burials
- Separates the Cemetery Name from the City, County, State, and Country in the Placename
- Provides a way to copy the new Associated Placename's Cemetery Name, City, County, State, Country, and Geocodes to Cemetery fields.
Other page layout and content changes include:
- Mod settings control whether some form fields appear above or below the Gooogle map.
- New help links and annotation,
- The two old buttons and one new button that populate the Associated Place field are now side-by-side above that field.
- There is now an Inner Mod Menu in the page's Inner Menu.
See a detailed list of changes in the Visualizations below.
This mod also changes the Admin Cemeteries "Add New" tab so that the "Add New" tab invokes the Cemetery Edit page instead of the nearly-identical (in pristine form) Cemetery Add form. As a result, the changes this mod makes to the Cemetery Edit form do not need to be made to the Cemetery Add form.
Mod Options
These mod options are custom TNG settings, defined and edited in a Mod Settings Block in the form at Admin>>Setup>>General Settings, in a new subform named Mod Settings Blocks. The Mod Settings Blocks mod is a prerequisite for the installation of this mod. See the last visualization below
- Default country for new cemeteries
- Put Geocode fields above the map? - The pristine code put the Cemetery Image fields at the bottom of the form, below the Google map. This parameter allows them to be placed before or after the map.
- Put Image Upload fields above the map? - The pristine code put the Cemetery Image fields at the beginning of the form. This parameter allows them to be placed before or after the Google map.
- Delimiter within Placenames - Just a comma ("Erie County,Ohio,USA") or comma-space ("Erie County, Ohio, USA").
- When filling the Associated Placename, include the extra delimiter if a place-part is missing?
This is invoked when the Cemetery form fields (cemetery name, city, county, state, country) are used to create a new Associated Placename. If, say, the city is missing, the new Associated Placename can be- "Bethel Cemetery, , Erie County, Ohio, USA" (with an empty placeholder for the City), or
- "Bethel Cemetery, Erie County, Ohio, USA" (with no City placeholder).
- Count burials at the Associated Place in the Placename Lookup and Copy Widget? - The widget normally displays the number of Burial events at each Placename that matches the search, but for some large databases, it may take too long to count burials, so the burial count can be suppressed.
- In the Placename Lookup and Copy Widget results, check the boxes that copy these values to the Cemetery fields - Checkboxes cause specific (groups of) values to be copied to the Cemetery form when an Associated Placename is selected. The checkbox value are:
- Cemetery Name (which is extracted from the Associated Placename),
- City,County,State,Country (also extracted from the Associated Placename),
- Geocodes - Latitude, Longitude, Zip
Inner Menu Links
In admin_editcemetery.php, some links in the Inner Menu have been modified:
- Cemetery Report - This was labeled 'Test' in the native page, and launches showmap.php, which is effectively the "Cemetery Detail Report".
- Places Search - A pop-up link to Admin>>Places. This link makes it easy for you to find and edit a Burial Place record that you wish to associate with this Cemetery.
- Mod Information - This link drops down what I call an Inner Mod Menu, which contains these links to information about this mod:
- This Wiki Article,
- The "Mod Options" section of this Wiki article,
- The mod options editor (Admin>>Setup>>General Settings>>Robin's Mods). When you follow this link, the options edit form display only this mods options. If you want to see tall of the mod options in the subform, just click on the heading Robin's Mods. (See the visualization below, or at Inner_Mod_Menus.
- The Add/Edit section of the Cemetery help file, which has been modified to reflect the changes made by this mod.
- This mod's changes have also been highlighted with blue outlines.
Other Mods
Mod Conflicts
No known conflicts. Admin Cemeteries Search is the only other mod that targets the Cemetery add and edit modules.
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.
- Inner Mod Menus used to be implemented by a standalone mod named Inner Mod Menus, but they are now a feature of the Mod Settings Blocks mod. "Inner Mod Menus" are drop-down menus in the standard TNG "InnerMenu" and are visible only to TNG site administrators. They provide information about mods that affect a given program and links to the mod's settings (in Mod Settings Blocks).
- The old Show Mod Names mod has been retired. Its functionality (now called "Mods Used" is now implemented by the Mod Settings Blocks mod.
- This mod uses the Field Buttons mod to attach small 'field buttons' to several text fields, but it is not dependent on Field Buttons. Field buttons are configurable (and generally one-character) buttons that are attached to HTML form fields, and that reduce the typing or mouse movements needed to perform several common editing tasks. This mod is not compatible with Field Buttons mod versions earlier than version 3.
- Admin Cemeteries Search is a companion to Admin Cemetery Search (this mod). It was motivated by essentially the same purposes as this mod, and focuses on the Cemetery Search/Selection page, whereas this mod focuses on the Cemetery Edit page. Admin Cemeteries Search also changes the Cemeteries>>Add New tab to use admin_editcemetery.php rather than admin_newcemetery.php (no matter whether admin_editcemetery.php has been modified by this mod).
- This mod will round Cemetery geocoordinates to the number of decimal digits specified by the mod option for Admin Places Geocode, if and only if Admin Places Geocode version 4+ is installed.
Installation
Files Installed
- rrcemeteryedit_ajx.php - An AJAX program that helps to populate the Cemetery's "Associated Place" field. It finds Cemeteries that match specifications provided in the edit page, lists them with some of their data, and allows the user to select one.
- img/rrcemeteryedit_right.gif - A small image the points to the right when field values can be copied to the right to add specifications to the Associate Place lookup described above.
This mod includes a typical mod subfolder, with the same base name as the mod's .cfg file. The subfolder is atypical in that no files in it are installed to working TNG folders. However, it does contain critical files that contain the mod's language strings, which the mod does not add to standard cust_text.php files. Instead, the PHP code modified by this mod loads the language strings from files in the mod's languages/ subfolder. Read more about this technique.
[Show Standard Installation Process]
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
BEFORE: The unmodified Cemetery edit form, with the Google map hidden. The areas in red rectangles are moved, changed, or removed by the mod. |
- The "Cemetery Report" inner menu link used to be labeled 'Test'
- The new "Place Search" link opens the Admin>>Places>>Search in a new window. This link's purpose is to allow you to find and modify Places that will be used as as Cemetery's Associated Placename.
- The "Mod Information" link pulls down the Inner Mod Menu.
- The Cemetery Name, City, and County/Parish fields now have "field buttons", which are one-character buttons that perform editing shortcuts such as "Clear the field" and "Restore the field's initial value". The field buttons are visible only if the optional Field Buttons mod has been installed.
- The "Save and Exit" button duplicates one of the Save options at the bottom of the screen. It is most handy when the map is visible and the original Save button is not.
- The "Delete Selected" button for the Country field is disabled when the current Country value is the same as the Default Country value that is specified by a mod option. (That is, in this case, "USA" is the default Country, and cannot be deleted from the Countries table.)
- The Fill Placename button has been moved. It does virtually the same thing as before, but its action is now affected by two mod options
1. Whether Place delimiters have spaces, and
2. Whether empty Place components are shown by adjacent delimiters.
That is, it can generate names such as 'Huron County,Ohio,USA' (without spaces), 'Huron County, Ohio, USA' (with spaces), 'Peace Cemetery, , Dover County, Utah, USA', (with a placeholder for the missing city), and 'Peace Cemetery, Dover County, Utah' (with no indication of the missing city). - The spyglass button has moved, but still invokes the native Find Placename function.
- A new button opens the "Place Lookup & Copy" Widget, which is essentially an enhancement to the native Find Placename function.
- There are some enhancements to the lookup itself.
- The key enhancements affect what happens when a Placename in the lookup results is selected, and are especially useful when new Cemetery records are being created. The core purpose of the "Find Placename" and "Place Lookup & Copy" buttons is to select the Associated Placename for a Cemetery. The key "Place Lookup & Copy" enhancements, unsurprisingly, add "Copy" functionality, that is, the Place Lookup & Copy widget can use values in the selected Place record to populate
- The Cemetery name,
- The Cemetery's location components (City, State, County, Country), and/or
- The Cemetery' Geocoordinates (Latitude, Longitude, and Zoom).
- The "Associated Placename" label used to be "Associated Place". The change emphasizes that the Associated Placename is not necessarily a single Place (in a single Tree), but rather is a Placename that can match Places in multiple trees.
- The the three Geocoordinates fields are enclosed in a Fieldset, and have been moved above the map. A mod option controls whether they are above or below the map. In addition, the wording of the 'Copy this geocode information...' checkbox has been changed to emphasize that the information might be copied to multiple Place records in the Places table.
- The Cemetery Image fields are now enclosed in a Fieldset, and have been moved so that they are below the map. Their position on the page is controlled by a mod option.
- The placement of the 'On save' options and "Save" button have been adjusted to improve readability.
- The Cemetery Image is now scaled to the browser window.
AFTER INSTALLATION: The modified Cemetery edit form. Green rectangles mark what's new , and red rectangles mark things that have been moved or changed . |
The workflow of the "Placename Lookup & Copy" Widget
Cemetery Edit form After Installation- The Inner Mod Menu In admin_editcemetery.php the Inner Mod Menu links to:
|
After Installation- The Admin Cemetery Edit Mod Settings Block |
A Mod Settings Block is an outlined subform within an Admin>>Setup program that contains the options for a single mod. What is most notable about a Mod Settings Block is that a hyperlink directly to a Mod Settings Block displays only that block (i.e. only one mod's options), not all of the other options in the form or subform. Here, you see the this mod's Mod Settings Block, in admin_genconfig.php, at Admin>>Setup>>General Configuration. The triangular arrow next to the subfolder heading Mod Settings Blocks is pointing to the right, meaning that the subform is not open, and that your site's other mod settings blocks are not visible. If you were to open the subform by clicking on the heading, you would see the mod settings blocks for other mods that you have installed. |
Revision History
Mod Version | TNG Version | Date | Note |
---|---|---|---|
13.0.0.9h | 1.0-13.1.1 | 14Jan2022 | Made backward-compatible changes to handle TNGv13.1 and TNGv13.1.1 |
13.0.0.9f | 13 | 22Nov2020 | Cleaned up language strings and removed some extra characters from the page |
12.0.0.9d | 13 | 11Oct2020 | Upgraded to TNGv13 |
12.0.0.9c | 12.0-12.3 | 28Mar2020 |
|
12.0.0.9b | 12.0-12.3 | 26Feb2020 | No functional changes.
|
12.0.0.9 | 12.0 - 12.2 | 28 Sep 2019 | No significant functional changes; but several user interface and help file changes. Also see the .cfg file for bug fixes and other internal changes.
|
Mod Version | TNG Version | Date | Note |
---|---|---|---|
12.0.0.8b | 12.0-12.2 | 15 May 2018 | No functional changes; made compatible with TNGv12. |
10.1.0.8b | 10.1 - 11.1.2+ | 10 Feb 2017 | No visible changes on-screen, though the page as printed is different. Specifically:
|
10.1.0.8 | 10.1 - 11.1.1+ | 9 Sep 2017 | Production version. Additional changes include:
|
10.1.0.7 | TNGv10.1+ | 7 May 2017 |
|
10.1.0.5 | TNGv9.2.2-10.1+ | 11 Jan 2015 | TNG v10.1 compliance - Changed trimreplace directives to replace, and changed mysql_* function calls to tng_* |
9.2.2.4 | TNGv9.2.2-10.0.3 | 04Oct2014 | Fixed bug with respect to selection of default country. Added $defaultcountry parameter so that administrators can pick the default country for new cemeteries. |
9.2.0.3 | TNGv.2.2-10.0.1 | 05Apr2014 | Restored the "Fill Place" button, and allowed users to enter an associated place directly. |
9.2.0.2 | TNGv9.2.2-10.0.1 | 14Mar2014 | Initial Release |
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 |
---|---|---|---|---|---|
Robin Richmond's Genealogy Database | Robin Richmond | Mod developer | 13.0.0.9h | 13.1.1 | English |
Total Family History | Scott Bennett | Private Site (For right now) | V9.2.0.3 | TNG 10.0.1 | English |
MOTYER Family Genealogy | John Mark Motyer | Public site | see here | see here | EN, DE, RU |
R G Strong Family Genealogy | Russell G Strong | Public Site | v11.0.0.0 | v11.0.0 | EN (DE, FR, NL) |
The Cole / Tanner Family Tree | David Cole | Public/Private | see here | see here | EN, DE, FR, ES, NL |
Woking Family Tree Project | Pete Smee | Public/Private Brilliant Mod many thanks | v12.0.0.8b | v12.1 | English |
Our Family Histories | Bryan S. Larson | Public - T8 customized | see here | see here | EN |