Open main menu

Gramps β

Changes

Addon:PlaceUpdate Gramplet

432 bytes added, 23:59, 16 November 2025
Notes
{{languages|Addon:PlaceUpdate Gramplet}}{{Third-party pluginaddon}}
[[File:PlaceUpdate-Gramplet-Addon-103.png|right|thumb|450px|PlaceUpdate Gramplet - Data entry - detached view]]
The {{man label|PlaceUpdate}} Gramplet was created allows you to manipulate and change properties of multiple places at the same time.
The properties that can be changed are:
* Enclosing Place
Place names can be edited by substituting substrings sub-strings with new values.
The gramplet can also generate a place hierarchy from place names or titles.
== Usage ==
The gramplet {{man label|PlaceUpdate}} Gramplet should be installed on the sidebar gramplet pane of the Places Category view.
The Place list is then used to select which places are affected.
=== Setting enclosing place ===
For the enclosing place first select the place that should enclose the other places and click the {{man button|Select enclosing place}} button. The selected place {{man label|Select Place}} selector will be displayedand you can select your place. Then select any number of places that should be enclosed by the first one and click the {{man button|Apply to selected places}} button.
A place might already have an enclosing place. In that case the new place will be added and the place will end up being enclosed by multiple places. This is quite OK ok but you can also remove the previous enclosing places by checking the box "{{man label|Clear original enclosing places"}}. This can e.g. be used to "move" the places under another place.
Attempts to set a duplicate enclosing place or a loop (so that a place contains itself) are quietly bypassed.
=== Setting place type or tag ===
[[File:PlaceUpdateGramplet-Addon-example-51.png|right|Thumbthumb|450px|PlaceUpdate Gramplet shown in sidebar]]You can also set the type of the selected places or assign any tag if needed. The operations can be combined so that e.g. the place type and enclosing place can be set at the same time. Type and tag can be selected from pre-existing ones or you can type a new name if needed.
Any existing tags can also be first removed if the "{{man label|Clear tags" }} checkbox is marked. Otherwise the new tag is added to the set of the tags for the places.
If the enclosing place, type or tag is not specified, then the corresponding setting is not changed.
=== Editing place names ===
The "{{man label|Replace text" }} function allows substituting a specified text string in the place names with another. Regular expressions can also be used.
;Example:
* Select "United States" as the new enclosing places and select the three states. Set the place {{man label|Place type :}} to "State":
* Setting enclosing place
* Click "{{man button|Apply to selected places"}}. The result is:
* Setting enclosing place
== Notes ==
The "{{man button|Clear selections" }} button will clear the form.
All changes are done under a single transaction and they can be undone from the Gramps menu "{{man menu|Edit > Undo Setting place properties"}}.
This gramplet does not have direct support for filters. The "Filter" gramplet can be used to search for the places that need changes.
This gramplet can only be added on the Places view and it requires Gramps 5.x.or greater
Author: [email protected] (19 Jan 2020)
==Issues==
* Help button goes to https://gramps-project.org/wiki/index.php?title=Gramps_{{man version}}_Wiki_Manual_-_Gramplets#PlaceUpdate
 
[[Category:Addons]]
[[Category:Plugins]]
[[Category:Developers/General]]
[[Category:Gramplets]]
15,091
edits