* Reversing a Place Name
Reversing a Place Name
I am trying to reverse how a Place name appears in the Source Records field. I have "Grand Rapids, Kent, MI, USA" I would like the USA to not show, and the order to be reversed, such as: "MI, Kent, Grand Rapids".
I found a reference to a Qualifier in one in the forums called TextPart that may assist, but I did not understand how it would work in my application, as explained in the help files at https://www.family-historian.co.uk/help ... tpart.html
Does anyone know how I can accomplish this, and give some insight/examples of using textpart??
I found a reference to a Qualifier in one in the forums called TextPart that may assist, but I did not understand how it would work in my application, as explained in the help files at https://www.family-historian.co.uk/help ... tpart.html
Does anyone know how I can accomplish this, and give some insight/examples of using textpart??
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
I presume your Source record Place name Fields are linked to Place records.
So in the Source record Property Box the Place field can only be displayed in the format held in the Place record.
If you rearrange the Place record format then that will affect everywhere that Place names are displayed.
It is not advisable to remove the country 'USA' from Place record names.
Can you explain where you want the reversed Place name to be displayed. i.e. Is it just in Records Window columns?
If only in specific dialogues then it may be possible to devise an Expression to reverse Place name parts in those displays.
BTW: TextParts(...) is a function (not a Qualifier) that can be used in an Expression and would be involved in the reversal.
So in the Source record Property Box the Place field can only be displayed in the format held in the Place record.
If you rearrange the Place record format then that will affect everywhere that Place names are displayed.
It is not advisable to remove the country 'USA' from Place record names.
Can you explain where you want the reversed Place name to be displayed. i.e. Is it just in Records Window columns?
If only in specific dialogues then it may be possible to devise an Expression to reverse Place name parts in those displays.
BTW: TextParts(...) is a function (not a Qualifier) that can be used in an Expression and would be involved in the reversal.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reversing a Place Name
The reversal and USA omission will only be used in the Source Record field as shown below.
I should also add that some of the records will be originating from AS - but that shouldn't make a difference, I don't think.
I should also add that some of the records will be originating from AS - but that shouldn't make a difference, I don't think.
- Attachments
-
- Source Record Reversal.PNG (10.07 KiB) Viewed 2247 times
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Re: Reversing a Place Name
Have you tried Mike's Search and Replace plugin with LUA Pattern Mode for swapping parts. You can decide to reject each change if you do not like the outcome. If you are competent with Plugins a similar LUA pattern should work.
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Re: Reversing a Place Name
With AS, with {PLACE} in the Title Template, it will create a Source name of whatever you enter in the Place field.
I suspect you may want this to sort things more easily so you may like to check out my take on PLACe structure convention see https://www.fhug.org.uk/forum/viewtopic ... ce#p104363
I suspect you may want this to sort things more easily so you may like to check out my take on PLACe structure convention see https://www.fhug.org.uk/forum/viewtopic ... ce#p104363
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
Chris, with templated Sources, the Title is governed by the Source Template definition of the Record Title Format.
Use Tools > Source Template Definitions..., select the template and View/Edit... the Record Title Format as shown below.
The place name field comma separated parts are formatted using =TextPart(...) as below:
{=TextPart(%SOUR.~PL-LOCATION%,3)}, {=TextPart(%SOUR.~PL-LOCATION%,2)}, {=TextPart(%SOUR.~PL-LOCATION%,1)}
After saving the changed templated use Compare/Sync with Source Template Record and update the Source Template Record.
Then in each Source record that uses that template, the Title must be updated using the cog Autogenerate Record Title option.
Use Tools > Source Template Definitions..., select the template and View/Edit... the Record Title Format as shown below.
The place name field comma separated parts are formatted using =TextPart(...) as below:
{=TextPart(%SOUR.~PL-LOCATION%,3)}, {=TextPart(%SOUR.~PL-LOCATION%,2)}, {=TextPart(%SOUR.~PL-LOCATION%,1)}
After saving the changed templated use Compare/Sync with Source Template Record and update the Source Template Record.
Then in each Source record that uses that template, the Title must be updated using the cog Autogenerate Record Title option.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reversing a Place Name
I am following all the parts of Mike's instructions of using the =TextPart(...), but for the life of me, I can't find the ...
I can't find this under any of the cogs, or in the help or KB??the Title must be updated using the cog Autogenerate Record Title option.
- LornaCraig
- Megastar
- Posts: 2991
- Joined: 11 Jan 2005 17:36
- Family Historian: V7
- Location: Oxfordshire, UK
Re: Reversing a Place Name
See below. (If the cog icon is not visible, just click in the Title field and it will appear.)
Lorna
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
It is also in the Property Box of the Source records. Click the cog wheel to the right of the Title box.
You must choose a Source record that uses the Source Template that has the new Record Title Format.
You must choose a Source record that uses the Source Template that has the new Record Title Format.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reversing a Place Name
Jim Orrell,
Having the dates show as you recommend in the Source Records window will be my next challenge.
Can you explain the reasoning of using the double comma?
This is exactly what I am trying to accomplish, for the same reason, but only to the Places detail and only in the Source Records window (at least for now).I store my PLACes in Highest order first with strict comma separation e.g.
England, , Greater Manchester, Bolton, Westhoughton:Chequerbent, Brancker Street, 51
England, , Lincolnshire, Lincoln
Having the dates show as you recommend in the Source Records window will be my next challenge.
Can you explain the reasoning of using the double comma?
Re: Reversing a Place Name
Thanks, I guess I never noticed that cog wheel.
Sorry Guys, but I'm still struggling. I am using {Jurisdiction} for {Place}, as shown below. I've tried inserting {JURISDICTION} into the function, but that didn't work and I suspect I may need to swap my {Jurisdiction} with {place}, or can I change the function somehow??
Appreciate the help!
Sorry Guys, but I'm still struggling. I am using {Jurisdiction} for {Place}, as shown below. I've tried inserting {JURISDICTION} into the function, but that didn't work and I suspect I may need to swap my {Jurisdiction} with {place}, or can I change the function somehow??
Appreciate the help!
- Attachments
-
- Jurisdiction, not Place.PNG (94.97 KiB) Viewed 2051 times
Re: Reversing a Place Name
HOLD THE PHONE!
It works! I had done an oops in my entering.
It works Great!
Thank You!
It works! I had done an oops in my entering.
It works Great!
Thank You!
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Re: Reversing a Place Name
From the other post examples
If you move onto the other links from the post, the 2nd comma separation is for "state or similar" within a country, so USA, State, etcEngland, , Greater Manchester, Bolton, Westhoughton:Chequerbent, Brancker Street, 51
England, , Lincolnshire, Lincoln
England, , North Yorkshire, Richmondshire, Leyburn, Market Place, , Bolton Arms, DL8 5BW
USA, New York, New York, Manhattan, , 10th Avenue, 1000, St Luke's; Roosevelt Hospital
So, as you correctly ponder, technically the England, , County should be UK, England, County
so I might/should change that in future to make it strict "modern day" nomenclature. Of course each "Sovereign state" or country or postal system may need it's own nomenclature to tie in with for example the comma separated street position. For instance before getting to street, I have 2 positions for town e.g. Wigan, Leigh Leigh being a very distinct district of present day Wigan, should I need to delineate further I have to use a semicolon to keep the comma separated structure, e.g. Wigan, Leigh;Westleigh. The reason I use semicolon is that it does not upset the Records Window Filter like say ~ does.
There are many posts and ponderings on PLACe nomenclature!!
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
Re: Reversing a Place Name
Now that it is working (Thanks again), I still don't understand the Help file's explanation of HOW it works. I want to understand the logic so I can apply it to future situations.
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
Maybe you need to review how Source MetaField Data Reference Shortcuts are constructed.
See FH Help page Understanding Data References and scroll down to Data References And Metafields where it explains how to use the Field Type and the Filed Name to construct the shortcut.
Your field is a Place type of field and its name is Jurisdiction so its shortcut is %SOUR.~PL-JURISDICTION% and not %SOUR.~PL-LOCATION%. I fail to understand how you got that working!
Exactly what do you not understand?
To format Dates with year then month and day use the ABBREV3 qualifier.
e.g. {%SOUR.~DT-EVENT_DATE:ABBREV3%}
Also, in Tools > Preferences > General tab set the Preferred Short Date Format to any that put yyyy first.
Unfortunately, months 1-9 and days 1-9 are displayed without a leading 0. I am not aware of any workaround.
See FH Help page Understanding Data References and scroll down to Data References And Metafields where it explains how to use the Field Type and the Filed Name to construct the shortcut.
Your field is a Place type of field and its name is Jurisdiction so its shortcut is %SOUR.~PL-JURISDICTION% and not %SOUR.~PL-LOCATION%. I fail to understand how you got that working!
Exactly what do you not understand?
To format Dates with year then month and day use the ABBREV3 qualifier.
e.g. {%SOUR.~DT-EVENT_DATE:ABBREV3%}
Also, in Tools > Preferences > General tab set the Preferred Short Date Format to any that put yyyy first.
Unfortunately, months 1-9 and days 1-9 are displayed without a leading 0. I am not aware of any workaround.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
PostScript.
I have just realised there is a neater way of displaying the Jurisdiction Place first 3 parts in reverse:
{=TextPart(%SOUR.~PL-JURISDICTION%,1,3,TIDY_REV)}
That replaces the entire expression:
{=TextPart(%SOUR.~PL-JURISDICTION%,3)}, {=TextPart(%SOUR.~PL-JURISDICTION%,2)}, {=TextPart(%SOUR.~PL-JURISDICTION%,1)}
I have just realised there is a neater way of displaying the Jurisdiction Place first 3 parts in reverse:
{=TextPart(%SOUR.~PL-JURISDICTION%,1,3,TIDY_REV)}
That replaces the entire expression:
{=TextPart(%SOUR.~PL-JURISDICTION%,3)}, {=TextPart(%SOUR.~PL-JURISDICTION%,2)}, {=TextPart(%SOUR.~PL-JURISDICTION%,1)}
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reversing a Place Name
I got it working by realising my mistake and swapping out Location with Jurisdiction after making the screenshot, and then I realised the title I was looking at had been manually adjusted and was not showing the revised title properly.
Thanks for the even neater way of displaying this.
I now have a real-life example that is working, and that I can apply to other situations. Now I can go back to the Help pages and I think it will start to make a lot more sense. The key to my understanding is having working examples pertaining to my project.
I have absolutely no programming experience, but I do have a lot of experience writing complex Excel expressions and have used them extensively for years, but for some reason, I am having problems with some of FH functions and data references.
Obviously, this is all new to me, but come hell or high water, I will conquer them! I'll study the FH Help page, Understanding Data References and if I still have questions, I will ask.
Thanks for all your input everybody!
Thanks for the even neater way of displaying this.
I now have a real-life example that is working, and that I can apply to other situations. Now I can go back to the Help pages and I think it will start to make a lot more sense. The key to my understanding is having working examples pertaining to my project.
I have absolutely no programming experience, but I do have a lot of experience writing complex Excel expressions and have used them extensively for years, but for some reason, I am having problems with some of FH functions and data references.
Obviously, this is all new to me, but come hell or high water, I will conquer them! I'll study the FH Help page, Understanding Data References and if I still have questions, I will ask.
Thanks for all your input everybody!
Re: Reversing a Place Name
For those new to updating the Title after making changes to the Source Template Record (see below)
- you have to tap the Cog button twice in order for the change to take effect. First you must remove the Autogenerate Record Title check mark. You then need to add the check mark back for the changes to take effect.
- you have to tap the Cog button twice in order for the change to take effect. First you must remove the Autogenerate Record Title check mark. You then need to add the check mark back for the changes to take effect.
- Attachments
-
- Cog Check Mark.jpg (91.57 KiB) Viewed 1986 times
- cwhermann
- Famous
- Posts: 155
- Joined: 20 Mar 2021 22:04
- Family Historian: V7
- Location: New Hampshire, US
Re: Reversing a Place Name
I am working through the same issue with my source/citation templates and want to make sure I understand how FH handles the fields I create.
If I have a field in my template I titled, for example, "Jurisdiction" and set the Field Type as Place - then FH will create a link to and pull in the information from the Place Record, is this correct?
If I have a field in my template I titled, for example, "Jurisdiction" and set the Field Type as Place - then FH will create a link to and pull in the information from the Place Record, is this correct?
Curtis Hermann
FH 7.0.15
FH 7.0.15
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
Yes, correct, Curtis.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- cwhermann
- Famous
- Posts: 155
- Joined: 20 Mar 2021 22:04
- Family Historian: V7
- Location: New Hampshire, US
Re: Reversing a Place Name
Will have to "ponder" on a new/different strategy for source/citation templates. In the context of sources, I defined "Jurisdiction" as the entity that was responsible for the records being cited. Sometimes that was a "geographical place" that would fit the definition of a place record, but in other instances, the jurisdiction might be an entity that does not fit the definition of a place, e.g., a taxing entity, a state agency, etc.
In RM there was no connection/link between the place fields in templates and the place records so the distinction didn't matter. Now that I have the flexibility in FH to designate the field as a place or text - need to determine best way to utilize the flexibility.
In RM there was no connection/link between the place fields in templates and the place records so the distinction didn't matter. Now that I have the flexibility in FH to designate the field as a place or text - need to determine best way to utilize the flexibility.
Curtis Hermann
FH 7.0.15
FH 7.0.15
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
I suggest you relax the concept of 'Place' to incorporate 'authorities' such as you mention.
Presumably, such 'authorities' have a head office that you can use to set the State and Country, etc.
Presumably, such 'authorities' have a head office that you can use to set the State and Country, etc.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reversing a Place Name
I'm not on V7 so these considerations remain theoretical for me, but I have always regarded "jurisdiction" as having some "legal" meaning which in genealogical terms could be one of two things:cwhermann wrote: ↑24 Apr 2022 23:42... In the context of sources, I defined "Jurisdiction" as the entity that was responsible for the records being cited. Sometimes that was a "geographical place" that would fit the definition of a place record, but in other instances, the jurisdiction might be an entity that does not fit the definition of a place, e.g., a taxing entity, a state agency, etc.
...
- The "jurisdiction" in which the original creator of the source operated. A Will under "English and Welsh" jurisdiction, is handled differently (at least in terms of language) to a Will under "Scottish" jurisdiction - so this aspect could be worthy of capture.
- The "jurisdiction" of the copyright holder of the "source" being examined - again this may be something that needs to be captured.
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)
- cwhermann
- Famous
- Posts: 155
- Joined: 20 Mar 2021 22:04
- Family Historian: V7
- Location: New Hampshire, US
Re: Reversing a Place Name
In my "pondering", the light bulb came on that I better decide what approach/methodology I was going to use with place and addresses and what impact that might have on utilizing place records in the source record entry.
Within the context of sources/citations, I have decided on the approach to enter the “Jurisdictional” information within a text field based on the following:
Within the context of sources/citations, I have decided on the approach to enter the “Jurisdictional” information within a text field based on the following:
- Data entry is simpler in that I don’t have to worry about comma placements to conform to my place record format. (Although I have not made a definitive decision on what approach I want to use with addresses and places – I am leaning towards the entire address and place in the place record)
- A text field will accommodate both geographical based and non-geographical based jurisdictions.
- The =TextPart(..) function can be used to accommodate the order of the jurisdiction text elements as needed in the Footnote, Short Footnote and Bibliography templates.
- If the jurisdiction has an address, (thank you to Mike for pointing that out) it can be included as a repository with an appropriately formatted place entry.
Curtis Hermann
FH 7.0.15
FH 7.0.15
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reversing a Place Name
Probably unlikely in this instance, but the benefits of linking to a Place record arise if the same 'Jurisdiction' Place applies to more than one Source record and you wish to add Notes, Media, or other details that can be held in the Place record.
With the text alternative, such information would have to be repeated in each Source record or a shared Note record.
With the text alternative, such information would have to be repeated in each Source record or a shared Note record.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry