Change Any Fact Tag ~ Usage Example 3

The scenario for this example is that Ancestral Sources has been used to capture Census information with Occupation Facts for Occupations on the Census Return. Often children have their Occupation recorded as Scholar that might be better recorded as an Education Fact.

Thus every Occupation Fact of Scholar needs to become an Education Fact with all other data and Citations retained. You could set Source Tag to Standard » Occupation and Target Tag to Standard » Education, then use the Confirm Edit window to inspect each entry to decide which ones to change. But setting the Value Filter Option to Scholar, automatically excludes all Occupation Facts with the wrong Occupation.

The Family Historian Sample Project has no Occupation Facts of Scholar, so this example uses teacher instead, to select one of the Occupation Facts.

A more rigorous Filter Option value is ^[Tt]eacher$, where [Tt] allows the initial letter to be upper or lower case, and ^ & $ exclude all other text by anchoring the string to the start and end of the field, but ensure the Status & Settings tab Pattern Filters ? option is ticked.

Set the filter Value to ^[Tt]eacher$, and set Source Tag to Standard » Occupation and Target Tag to Standard » Education, then click the Occupation to Education button.

In the Confirm Edit window click the Change all the Rest button and one Fact will be changed, as evidenced by the Status & Settings tab Data Counts, the View & Delete Log Files, and the Output Result Set.

Note how the Date and Note fields, and the Source Citation are all retained by the conversion.

Return to Change Any Fact Tag Plugin Introduction.

CC Attribution-Noncommercial-Share Alike 4.0 International
Runs using DokuWiki Recent changes RSS feed