Question option to add data in entire tree
- mariannevanharten
- Topic Author
- Offline
- Premium Member
Less
More
1 year 9 months ago #1
by mariannevanharten
option to add data in entire tree was created by mariannevanharten
I want to have an option to add data in the entire tree in Gedcom mode.
E.g. in my Gedcom file:
2 PLAC Amsterdam, NH, NLD
should be:
2 PLAC Amsterdam
3 _LOC @L3120@
I know I can download the file, make changes to the downloaded file and upload it again.
Best regards,
Marianne
E.g. in my Gedcom file:
2 PLAC Amsterdam, NH, NLD
should be:
2 PLAC Amsterdam
3 _LOC @L3120@
I know I can download the file, make changes to the downloaded file and upload it again.
Best regards,
Marianne
Please Log in or Create an account to join the conversation.
- norwegian_sardines
- Offline
- Platinum Member
Less
More
- Posts: 3137
1 year 9 months ago - 1 year 9 months ago #2
by norwegian_sardines
Ken
Replied by norwegian_sardines on topic Could a regular expression add an addition line after the PLAC tag?
Interesting question!
I suspect you could use a "regular expression" search.
But I would not know how!
I suspect you could use a "regular expression" search.
But I would not know how!
Ken
Last edit: 1 year 9 months ago by norwegian_sardines.
Please Log in or Create an account to join the conversation.
- hermann
- Offline
- Elite Member
1 year 9 months ago #3
by hermann
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.21 (all custom modules installed, PHP 8.3.12, MariaDB 10.6) @ ahnen.hartenthaler.eu
Replied by hermann on topic option to add data in entire tree
Use regular expression search&Replace for individuals and families (and others if relevant):
Search: 2 PLAC Amsterdam, NH, NLD\n
Replace: 2 PLAC Amsterdam\n3 _LOC @L3120@\n
Check it before applying it to all records. And you lose the place hierarchy using PLAC. Why do you do it? I do not recommend that.
Search: 2 PLAC Amsterdam, NH, NLD\n
Replace: 2 PLAC Amsterdam\n3 _LOC @L3120@\n
Check it before applying it to all records. And you lose the place hierarchy using PLAC. Why do you do it? I do not recommend that.
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.21 (all custom modules installed, PHP 8.3.12, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
Less
More
- Posts: 2165
1 year 8 months ago #4
by WGroleau
If I had the above, I would first use search/replace to change it to
then I would use the Vesta data fixes to complete the _LOC records and sub-records.
--
Wes Groleau
UniGen.us/
Replied by WGroleau on topic option to add data in entire tree
I want to have an option to add data in the entire tree in Gedcom mode.
E.g. in my Gedcom file:
2 PLAC Amsterdam, NH, NLD
should be:
2 PLAC Amsterdam
3 _LOC @L3120@
If I had the above, I would first use search/replace to change it to
Code:
2 PLAC Amsterdam, North Holland, The Netherlands
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
1 year 8 months ago #5
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic option to add data in entire tree
I have never really understood this aspect of the _LOC record design.
There seems to be a one-to-one mapping from PLAC to _LOC.
So why does it need to be copied everywhere?
A simpler and more reliable design might be to map the place name to the corresponding location name.
i.e. if you have PLAC Amsterdam, you display data from the _LOC record with the name Amsterdam.
The links seem pointless and redundant...
There seems to be a one-to-one mapping from PLAC to _LOC.
So why does it need to be copied everywhere?
A simpler and more reliable design might be to map the place name to the corresponding location name.
i.e. if you have PLAC Amsterdam, you display data from the _LOC record with the name Amsterdam.
The links seem pointless and redundant...
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- ric2015
- Offline
- Senior Member
1 year 8 months ago #6
by ric2015
Initially I thought so as well. Therefore, there is an option in the Vesta Shared Places module to handle it just like this, i.e. link to the _LOC-records via place name, without having to enter the link explicitly. I wouldn't recommend to use it like that though:
The Gedcom-L addendum specifies otherwise, and having explicit links is anyway more efficient for calculations (list of individuals related to a _LOC etc) because the respective database table wt_link can be used. Note that when entering new events, you only have to select the _LOC link, from which the place name will be filled in automatically, so you usually do not have to copy it manually.
There is another advantage when using explicit links to _LOC-records: You can now use the proper historic place name and hierarchy for events at different times at the same actual place, while still linking to a single _LOC.
Richard
webtrees 2.2.0 at cissee.de/webtrees2
Vesta custom modules (Classic Look & Feel, Gov4webtrees, Shared Places, Extended Relationships) available at cissee.de
Replied by ric2015 on topic option to add data in entire tree
There seems to be a one-to-one mapping from PLAC to _LOC.
So why does it need to be copied everywhere?
A simpler and more reliable design might be to map the place name to the corresponding location name.
i.e. if you have PLAC Amsterdam, you display data from the _LOC record with the name Amsterdam.
Initially I thought so as well. Therefore, there is an option in the Vesta Shared Places module to handle it just like this, i.e. link to the _LOC-records via place name, without having to enter the link explicitly. I wouldn't recommend to use it like that though:
The Gedcom-L addendum specifies otherwise, and having explicit links is anyway more efficient for calculations (list of individuals related to a _LOC etc) because the respective database table wt_link can be used. Note that when entering new events, you only have to select the _LOC link, from which the place name will be filled in automatically, so you usually do not have to copy it manually.
There is another advantage when using explicit links to _LOC-records: You can now use the proper historic place name and hierarchy for events at different times at the same actual place, while still linking to a single _LOC.
Richard
webtrees 2.2.0 at cissee.de/webtrees2
Vesta custom modules (Classic Look & Feel, Gov4webtrees, Shared Places, Extended Relationships) available at cissee.de
Please Log in or Create an account to join the conversation.
- norwegian_sardines
- Offline
- Platinum Member
Less
More
- Posts: 3137
1 year 8 months ago - 1 year 8 months ago #7
by norwegian_sardines
Ken
Replied by norwegian_sardines on topic option to add data in entire tree
Greg,
I don’t know how other people do it, but my “Location” place records are for very place in the hierarchy.
So I have a location record for all the farms in Norway my family lived, and separate location records for the kommune, Fylke, and Norway itself. Same for USA, Germany, and the place hierarchy of each country.
I’m not sure how I did this, it was automatic I think. I’m also on an early version of Vesta in v2.0 of webtrees.
I use the most specific location record to detail with pictures and words the farm, city, or business, but also sometimes write up stuff about the other levels as well to support my family that don’t know about locations or regions in Norway, Germany, USA.
It was my hope to use this detail (extract it out of the database) for use in books and other documents to tell the story of the places, countries our ancestors lived or worked.
My greater hope was the we did not use _LOC links to LOCATION records, but have created the same data in the webtrees place hierarchy, but this will work too!
I don’t know how other people do it, but my “Location” place records are for very place in the hierarchy.
So I have a location record for all the farms in Norway my family lived, and separate location records for the kommune, Fylke, and Norway itself. Same for USA, Germany, and the place hierarchy of each country.
I’m not sure how I did this, it was automatic I think. I’m also on an early version of Vesta in v2.0 of webtrees.
I use the most specific location record to detail with pictures and words the farm, city, or business, but also sometimes write up stuff about the other levels as well to support my family that don’t know about locations or regions in Norway, Germany, USA.
It was my hope to use this detail (extract it out of the database) for use in books and other documents to tell the story of the places, countries our ancestors lived or worked.
My greater hope was the we did not use _LOC links to LOCATION records, but have created the same data in the webtrees place hierarchy, but this will work too!
Ken
Last edit: 1 year 8 months ago by norwegian_sardines.
Please Log in or Create an account to join the conversation.
- norwegian_sardines
- Offline
- Platinum Member
Less
More
- Posts: 3137
1 year 8 months ago - 1 year 8 months ago #8
by norwegian_sardines
Ken
Replied by norwegian_sardines on topic option to add data in entire tree
Correction:
Not all PLACes in my hierarchy have corresponding _LOC records, I guess it was not automagically done.
I’ll have to review how I did it! But never the less I still have _LOC records for each of the levels I did create!
Not all PLACes in my hierarchy have corresponding _LOC records, I guess it was not automagically done.
I’ll have to review how I did it! But never the less I still have _LOC records for each of the levels I did create!
Ken
Last edit: 1 year 8 months ago by norwegian_sardines.
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
Less
More
- Posts: 2165
1 year 8 months ago - 1 year 8 months ago #9
by WGroleau
--
Wes Groleau
UniGen.us/
Replied by WGroleau on topic option to add data in entire tree
Personally, I think PLAC should have been treated like NOTE—either inline, or an xref to a shared PLAC.
Doesn't make sense to me to repeat coordinates and such in so many records.
Would still be reasonable to have
with a
in the other one
Code:
1 BIRT
2 PLAC @X1234@
3 things that are unique to this birth
0 @X1234@ PLAC
1 NAME Hutton, Hutton Twp., Coles Co., Illinois, USA
1 LATI ____
1 etc.—all the sub records common to all instances of Hutton
Would still be reasonable to have
Code:
0 @5678@ PLAC
1 NAME Hutton Twp., Coles Co., Illinois, USA
Code:
1 PART_OF @5678@
--
Wes Groleau
UniGen.us/
Last edit: 1 year 8 months ago by WGroleau.
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
Less
More
- Posts: 2165
1 year 8 months ago #10
by WGroleau
--
Wes Groleau
UniGen.us/
Replied by WGroleau on topic option to add data in entire tree
These can be automatically created by the data fixes that Vesta installs.… Not all PLACes in my hierarchy have corresponding _LOC records, I guess it was not automagically done. …
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.