Jump to content
Kathy C

Change [CIT:] to non-bracketed text?

Recommended Posts

I am trying to help a friend who has been using UFT to switch over to TMG.

 

This is the problem: In UFT, she made the huge mistake of not entering her source citations in the proper place .... because she did not know how. She entered then in the Endnote field. So, when I imported her data into TMG, the source info came over in the Memo field for each event like this: [CIT:]Film 339 St. Joseph's Church, Mission San Jose, San Francisco Archives at 320 Middlefield Road, Menlo Park, CA 415-328-6502

Baptisms New book page 126

Have photo of page from book.[:CIT]

 

So, her sources are all in the memo field for each event. That's not too bad, at least the data is there.Those citation "fields" within the Memo do not export. I know that they are source elements and so do not print either.

 

Is there a way to either eliminate the [CIT:] and [:CIT] brackets altogether, possibly replacing them with some unbracketed text in each memo that will export in a gedcom or print in a report? Something like "Source:" or something else OR a way to do a gedcom export that would include them as they are? I even tried doing that with John Cardinal's fine Utility, but was not successful.

 

If anyone knows of a way to do this, I'd really appreciate the insight. (She has over 13,000 people in her family database ...... too many to edit each event individually.)

 

Thanks for any help!

 

Kathy

Share this post


Link to post
Share on other sites

Kathy,

 

You can use TMG Utility to change "[CIT:]...[:CIT]" to something else. The Find and Replace feature should do the trick. One way to do it would be to change "[CIT:]" to "Source:" and then follow that by changing "[:CIT]" to an empty string.

 

John

Share this post


Link to post
Share on other sites
Kathy,

 

You can use TMG Utility to change "[CIT:]...[:CIT]" to something else. The Find and Replace feature should do the trick. One way to do it would be to change "[CIT:]" to "Source:" and then follow that by changing "[:CIT]" to an empty string.

 

John

 

John, I have tried that but no success. I am using version 7.0 of your Utility. Using the Find and Replace pane, I choose Event Memo as the field; Find What = [CIT:]; Replace with = SOURCE:. When i check the option that Contents must match Find What exactly, I get 0 results found. When I choose another option instead such as Find whole Word Only, then i get lots of results, but unfortunately, they include the end of the tag as well ( [:CIT] so that won't work for me. Am I doing something wrong here?

 

Thanks for your help!

Kathy

Share this post


Link to post
Share on other sites

Kathy,

 

Set the options like this to change "[CIT:]" to " Source: ":

 

Field: Event Memo

Find what: [CIT:]

Replace with: Source:

Contents must match Find What exactly: False

Use Pattern Matching: False

Match Case: False

Find Whole Word Only: False

 

"False" means "unchecked". Note that there is one space before and one space after "Source:" in the "Replace with" value.

Share this post


Link to post
Share on other sites

Kathy,

 

As I understand John's utility, "Contents must match Find What exactly" means that the entire contents of that field must be exactly and only what you put in the "Find What". That is why that option should be False in your case to find all of your memos that have "[CIT:]" plus other stuff. But that "exactly" option will only replace the text you put in "Find What" with the text you put in "Replace with". Look at the log it produces to verify that before you turn off "Log Only". The rest of the memo, with your source and the trailing "[:CIT]" will remain unaffected. Which is why John said that you will need to run a second pass to remove the trailing "[:CIT]" text.

 

Hope this helps to understand,

Share this post


Link to post
Share on other sites
Kathy,

 

Set the options like this to change "[CIT:]" to " Source: ":

 

Field: Event Memo

Find what: [CIT:]

Replace with: Source:

Contents must match Find What exactly: False

Use Pattern Matching: False

Match Case: False

Find Whole Word Only: False

 

"False" means "unchecked". Note that there is one space before and one space after "Source:" in the "Replace with" value.

 

Thank you, John! That (of course) worked perfectly. I thank you and my friend most certainly thanks you!!!

 

Kathy

Share this post


Link to post
Share on other sites
Thank you, John! That (of course) worked perfectly. I thank you and my friend most certainly thanks you!!!

You're welcome. Remember that you have to do another "Replace" to remove the trailing [:CIT]. Set the options like this:

 

Field: Event Memo

Find what: [:CIT]

Replace with:

Contents must match Find What exactly: False

Use Pattern Matching: False

Match Case: False

Find Whole Word Only: False

 

The "Replace with" value is empty above, but you might want to key a single space.

Share this post


Link to post
Share on other sites
Thank you, John! That (of course) worked perfectly. I thank you and my friend most certainly thanks you!!!

You're welcome. Remember that you have to do another "Replace" to remove the trailing [:CIT]. Set the options like this:

 

Field: Event Memo

Find what: [:CIT]

Replace with:

Contents must match Find What exactly: False

Use Pattern Matching: False

Match Case: False

Find Whole Word Only: False

 

The "Replace with" value is empty above, but you might want to key a single space.

Thanks! I did both and it worked great. Her sources aren't where they should be but, at least they're there! I also used your Utility to globally change some of the event types to conform them to TMG and the Gedcom 5 Standard. She had events with their gedcom tags that aren't in the standard used today. So, when she has shared gedcoms with other researchers, all her events are not being exported. Thank you for a wonderful tool!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×