I have tried using the Change Any Fact Tag plugin to convert attributes to events. However, the attribute value is placed in the event Source Note field. I would like the attribute value to be placed in the event Note field.
If anyone can tell me what changes I would have to make to the plugin to do this, it would be greatly appreciated.
Brian
* Change Attributes to Events
- tatewise
- Megastar
- Posts: 28488
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Change Attributes to Events
At about line 4133 in the plugin script, it handles new Event or Residence facts where an Attribute value exists.
Instead of "SOUR2" use the "NOTE2" tag, but you must cope with the possibility that a local Note already exists.
If it exists the Attribute value text must be appended to the existing Note text before saving.
Do you need help with how to do that?
Instead of "SOUR2" use the "NOTE2" tag, but you must cope with the possibility that a local Note already exists.
If it exists the Attribute value text must be appended to the existing Note text before saving.
Do you need help with how to do that?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Change Attributes to Events
Thanks Mike,
I made the change suggested and the attribute value was placed in the event note field. However, "Note=" was added as a prefix to the note. Is there a way to prevent this?
Brian
I made the change suggested and the attribute value was placed in the event note field. However, "Note=" was added as a prefix to the note. Is there a way to prevent this?
Brian
- tatewise
- Megastar
- Posts: 28488
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Change Attributes to Events
It would make things easier for me if you posted the script that you used, so I'm having to guess.
I assume you continued to use fhSetValueAsText(ptrVal,StrOldData.."="..strOldText)
So the variable StrOldData must hold the text Note
Thus fhSetValueAsText(ptrVal,strOldText) should eliminate the prefix.
I assume you continued to use fhSetValueAsText(ptrVal,StrOldData.."="..strOldText)
So the variable StrOldData must hold the text Note
Thus fhSetValueAsText(ptrVal,strOldText) should eliminate the prefix.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Change Attributes to Events
Thanks Mike.
It worked great.
Brian
It worked great.
Brian