-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerated-normalization-rule.txt
43 lines (37 loc) · 1.17 KB
/
generated-normalization-rule.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
rule "Add LCSH to local tags"
priority 4
when
(exists "650.a.Fugitive slaves*")
then
addSubField "650.2.lcsh" if (exists "650.{*,0}.a.Fugitive slaves*")
copyField "650" to "690" if (exists "650.a.Fugitive slaves*")
removeSubField "650.2" if (exists "650.{*,0}")
end
rule "Flip from LCSH to NULA"
priority 3
when
(true)
then
replaceContents "650.a.Fugitive slaves\\\\." with "Fugitive enslaved persons." if(exists "650.{*,0}.a.Fugitive slaves\\\\.")
replaceContents "650.a.Fugitive slaves" with "Fugitive enslaved persons" if(exists "650.{*,0}.a.Fugitive slaves")
changeSecondIndicator "650" to "7" if (exists "650.a.Fugitive enslaved persons\\\\.")
changeSecondIndicator "650" to "7" if (exists "650.a.Fugitive enslaved persons")
addSubField "650.2.local" if (exists "650.{*,7}.a.Fugitive enslaved persons\\\\.")
addSubField "650.2.local" if (exists "650.{*,7}.a.Fugitive enslaved persons")
end
rule "Delete FAST headings"
priority 2
when
(true)
then
removeField "650" if (exists "650.{*,7}.a.Fugitive slaves*")
end
rule "Add note"
priority 1
when
(true)
then
addField "949.a.nula"
addSubField "949.e.jdc" if (exists "949.a.nula")
addSubField "949.c.20210615" if (exists "949.a.nula")
end