This example scenario adds content statements to a set of finding aids that already have a processing information section. Open the Find window by either pressing Ctrl + F or using the "Find" tab in the top menu. "Search → Find → Find in Files" in Notepad++ or "Find in Files" in Oxygen. Select the "Find in Files" tab and choose the folder of files to edit in the "Directory" dialog box. This view can be seen in the screenshot below. Screenshot of Notepad++ with directory filepath of files to be edited written in. Screenshot of Oxygen with directory filepath of files to be edited written in. Next, determine where to insert the content statement text. Following UT Libraries guidelines, this should be entered in the processing information section. In these finding aid examples, there is already a statement in the processing information section, indicating who created the finding aid. The content statement will need to be placed after it, as well as being properly indented underneath the <processinfo> and <head> tags.
Before implementing any find + replace actions, the following options should be chosen in the "Find in Files" menu. For Notepad++, these are located in the "Search Mode" box. Choosing "Regular expression" allows regex syntax to be interpreted, while "wrap around" allows for long text to wrap to the next line, and "matches newline" allows for regex syntax to create new lines of text. Screenshot of Notepad++ Search Mode box. In Oxygen, the "Regular expression" box should be checked so regex syntax can be interpreted. Screenshot of Oxygen's search options. First, use the "Find All" button in the "Find in Files" window to see all instances of the ending </processinfo> tag. Using "Find All" returns a list of results as seen in the screenshot below, indicating what line of the finding aid the content is on. This action identifies how many finding aids do have the section (if not, another strategy will need to be used) and if the tag is repeated elsewhere in other sections. In this case, the tag is unique enough to ensure the content statement will be added only in that section. Screenshot of Notepad++ with all instances of </processinfo>. Screenshot of Oxygen with all instances of </processinfo>. Next, enter in the "Replace with" dialog box the content statement text and related <p> tags (paragraph). \t means "tab" and will create a space/indent. \n means "newline" and will put the </processinfo> tag on the following line. The following statement will indent the content statement twice, then create a new line, and finally indent twice again to put the </processinfo> tag underneath the content statement. Screenshot of Notepad++ with the "Find in Files" window open. Screenshot of Oxygen with the "Find in Files" window open. In Oxygen, you can preview the results of the regex expression before running it on the folder of finding aids. Here we can see that the content statement is being added correctly after the processing statement. Select "Replace in Files" in the "Find in Files" menu to make this change to all finding aids in the folder. The following screenshot shows the results of the find + replace regex action.