rule "add subfield to 650"
# this rule adds a disposable subfield to all 650s.
# This subfield will get copied into the temp ABC field, and then deleted from all existing 650s
# Once in the ABC field, it gets replaced with the final contents of the subfield
salience 11
when
TRUE
then
addSubField "650.2.dcgONE" if (exists "650.{*,0}.a.Abused lesbians*|Abusive lesbian partners*|African American homosexuals*|African American lesbians*|African American lesbians in motion pictures*|African American sexual minorities*|Middle-aged lesbians*|Bible Gay interpretations*|Children of gay parents*|Children of sexual minority parents*|Children of gays*|Christian gays*|Church work with gays*|Closeted gays*|Deaf gays*|Etiquette for lesbians*|Ex-gay movement*|Homosexuals*|Gay and lesbian dance parties*|Gay and lesbian fiction*|Gay and lesbian film festivals*|Gay and lesbian studies*|Homosexuals in literature*|Hispanic American gays*|Hispanic American lesbians*|Jewish lesbians*|Legal assistance to gays*|Lesbian Girl Scouts*|Lesbians*|Lesbian high school students*|Lesbians in literature*|Lesbians in mass media*|Lesbians in motion pictures*|Lesbian librarians*|Lesbians on postage stamps*|Lesbian activists*|Lesbian actresses*|Lesbians and sports*|Lesbian anthropologists*|Lesbian artists in popular culture*|Lesbian couples as parents*|Lesbian athletes*|Lesbian authors*|Lesbian bars*|Lesbian business enterprises*|Lesbian cartoonists*|Lesbian clergy*|Lesbian college students*|Lesbian college teachers*|Lesbian community*|Lesbian composers*|Lesbian consumers*|Lesbian couples*|Lesbians in art*|Lesbian musicians*|Lesbian nuns*|Lesbian partner abuse*|Lesbian police officers*|Lesbian private investigators*|Lesbian psychotherapists*|Lesbian separatism*|Lesbian students*|Lesbian teachers*|Lesbian teenagers*|Lesbian theater*|Lesbian vampires*|Lesbian youth*|Lesbians' writings*|Lesbians' writings, American*|Lesbians' writings, Australian*|Lesbians' writings, Canadian*|Lesbians' writings, English*|Lesbians' writings, French*|Lesbians' writings, German*|Lesbian culture*|Lesbian erotica*|Lesbian feminism*|Lesbian feminist theory*|Lesbian artists*|Gay accommodations*|Gay activists*|Gay actors*|Gay adoption*|Gay anthropologists*|Gay artists*|Gay athletes*|Gay authors*|Gay bars*|Gay broadcasters*|Gay business enterprises*|Gay clergy*|Gay college students*|Sexual minority college students*|Gay college teachers*|Gay columns in newspapers*|Gay community*|Sexual minority community*|Gay conservatives*|Gay consumers*|Gay counselors*|Gay couples*|Gay critics*|Gay culture*|Gay culture in literature*|Gay deacons*|Gay detectives*|Gay discotheques*|Gay erotic art*|Gay erotic comic books, strips, etc*|Gay erotic drama, American*|Gay erotic drawing*|Gay erotic films*|Gay erotic literature*|Gay erotic literature, French*|Gay erotic photography*|Gay erotic poetry*|Gay erotic poetry, American*|Gay erotic poetry, English*|Gay erotic poetry, French*|Gay erotic poetry, Greek*|Gay erotic stories*|Gay erotic stories, American*|Gay erotic stories, Canadian*|Gay erotic stories, English*|Gay erotica*|Gay figure skaters*|Gay heroes*|Gay high school students*|Gay journalists*|Gay kings and rulers*|Gay labor union members*|Gay lawyers*|Gay legislators*|Gay liberation movement*|Gay librarians*|Gay military cadets*|Gay military personnel*|Gay motion picture actors and actresses*|Gay motion picture producers and directors*|Gay musicians*|Gay online chat groups*|Gay parents*|Gays*|Sexual minorities in art*|Sexual minorities in higher education*|Sexual minorities on television*|Sexual minorities with disabilities*|Gay personals*|Gay photographers*|Gay police officers*|Gay politicians*|Gay pornographic films*|Gay pornography*|Gay press*|Gay press publications*|Gay pride celebrations*|Gay Pride Day*|Gay pride parades*|Gay prisoners*|Gay private investigators*|Gay psychiatrists*|Gay real estate agents*|Gay rights*|Gay sailors*|Gay singers*|Gay skinheads*|Gay social workers*|Gay spies*|Gay students*|Sexual minority students*|Gay studies*|Gay teachers*|Gay teenagers*|Gay theater*|Gay theatrical producers and directors*|Gay travelers*|Gay wit and humor*|Gay youth*|Sexual minority youth*|Gay youths' writings*|Libraries and bisexuals*|Libraries and lesbians*|Libraries and gays*|Libraries and sexual minorities*|National socialism and homosexuality*|Older gays*|Older lesbians*|Ordination of gays*|Pacific Islander American bisexuals*|Pacific Islander American lesbians*|Pacific Islander American gays*|Parents of transsexuals*|Psychoanalysis and homosexuality*|Rural lesbians*|Social work with lesbians*|Social work with gays*|Social work with gay youth*|Television programs for gays*|Female-to-male transsexuals*|Transsexual college students*|Transsexual students*|Transsexual youth*|Transsexualism*")
end
rule "copy 650 fields to ABC based on the contents of the 650"
# This copies over all 650s that we want to edit to a temp ABC field
salience 10
when
TRUE
then
copyField "650" to "ABC.{-,7}" if (exists "650.{*,0}.a.Abused lesbians*|Abusive lesbian partners*|African American homosexuals*|African American lesbians*|African American lesbians in motion pictures*|African American sexual minorities*|Middle-aged lesbians*|Bible Gay interpretations*|Children of gay parents*|Children of sexual minority parents*|Children of gays*|Christian gays*|Church work with gays*|Closeted gays*|Deaf gays*|Etiquette for lesbians*|Ex-gay movement*|Homosexuals*|Gay and lesbian dance parties*|Gay and lesbian fiction*|Gay and lesbian film festivals*|Gay and lesbian studies*|Homosexuals in literature*|Hispanic American gays*|Hispanic American lesbians*|Jewish lesbians*|Legal assistance to gays*|Lesbian Girl Scouts*|Lesbians*|Lesbian high school students*|Lesbians in literature*|Lesbians in mass media*|Lesbians in motion pictures*|Lesbian librarians*|Lesbians on postage stamps*|Lesbian activists*|Lesbian actresses*|Lesbians and sports*|Lesbian anthropologists*|Lesbian artists in popular culture*|Lesbian couples as parents*|Lesbian athletes*|Lesbian authors*|Lesbian bars*|Lesbian business enterprises*|Lesbian cartoonists*|Lesbian clergy*|Lesbian college students*|Lesbian college teachers*|Lesbian community*|Lesbian composers*|Lesbian consumers*|Lesbian couples*|Lesbians in art*|Lesbian musicians*|Lesbian nuns*|Lesbian partner abuse*|Lesbian police officers*|Lesbian private investigators*|Lesbian psychotherapists*|Lesbian separatism*|Lesbian students*|Lesbian teachers*|Lesbian teenagers*|Lesbian theater*|Lesbian vampires*|Lesbian youth*|Lesbians' writings*|Lesbians' writings, American*|Lesbians' writings, Australian*|Lesbians' writings, Canadian*|Lesbians' writings, English*|Lesbians' writings, French*|Lesbians' writings, German*|Lesbian culture*|Lesbian erotica*|Lesbian feminism*|Lesbian feminist theory*|Lesbian artists*|Gay accommodations*|Gay activists*|Gay actors*|Gay adoption*|Gay anthropologists*|Gay artists*|Gay athletes*|Gay authors*|Gay bars*|Gay broadcasters*|Gay business enterprises*|Gay clergy*|Gay college students*|Sexual minority college students*|Gay college teachers*|Gay columns in newspapers*|Gay community*|Sexual minority community*|Gay conservatives*|Gay consumers*|Gay counselors*|Gay couples*|Gay critics*|Gay culture*|Gay culture in literature*|Gay deacons*|Gay detectives*|Gay discotheques*|Gay erotic art*|Gay erotic comic books, strips, etc*|Gay erotic drama, American*|Gay erotic drawing*|Gay erotic films*|Gay erotic literature*|Gay erotic literature, French*|Gay erotic photography*|Gay erotic poetry*|Gay erotic poetry, American*|Gay erotic poetry, English*|Gay erotic poetry, French*|Gay erotic poetry, Greek*|Gay erotic stories*|Gay erotic stories, American*|Gay erotic stories, Canadian*|Gay erotic stories, English*|Gay erotica*|Gay figure skaters*|Gay heroes*|Gay high school students*|Gay journalists*|Gay kings and rulers*|Gay labor union members*|Gay lawyers*|Gay legislators*|Gay liberation movement*|Gay librarians*|Gay military cadets*|Gay military personnel*|Gay motion picture actors and actresses*|Gay motion picture producers and directors*|Gay musicians*|Gay online chat groups*|Gay parents*|Gays*|Sexual minorities in art*|Sexual minorities in higher education*|Sexual minorities on television*|Sexual minorities with disabilities*|Gay personals*|Gay photographers*|Gay police officers*|Gay politicians*|Gay pornographic films*|Gay pornography*|Gay press*|Gay press publications*|Gay pride celebrations*|Gay Pride Day*|Gay pride parades*|Gay prisoners*|Gay private investigators*|Gay psychiatrists*|Gay real estate agents*|Gay rights*|Gay sailors*|Gay singers*|Gay skinheads*|Gay social workers*|Gay spies*|Gay students*|Sexual minority students*|Gay studies*|Gay teachers*|Gay teenagers*|Gay theater*|Gay theatrical producers and directors*|Gay travelers*|Gay wit and humor*|Gay youth*|Sexual minority youth*|Gay youths' writings*|Libraries and bisexuals*|Libraries and lesbians*|Libraries and gays*|Libraries and sexual minorities*|National socialism and homosexuality*|Older gays*|Older lesbians*|Ordination of gays*|Pacific Islander American bisexuals*|Pacific Islander American lesbians*|Pacific Islander American gays*|Parents of transsexuals*|Psychoanalysis and homosexuality*|Rural lesbians*|Social work with lesbians*|Social work with gays*|Social work with gay youth*|Television programs for gays*|Female-to-male transsexuals*|Transsexual college students*|Transsexual students*|Transsexual youth*|Transsexualism*")
end
rule "remove 650 2"
# This takes out the disposable subfield 2 that I added earlier
salience 8
when
TRUE
then
removeSubField "650.2" if (exists "650.2.dcgONE")
end
rule "replace contents of the ABC field"
# This is the main replacement. Here we're replacing the LCSH contents of the temp ABC field with the new contents which we'll soon copy back into a 650
salience 7
when
TRUE
then
replaceContents "ABC.a.Abused lesbians" with "Abused lesbian women" if (exists "ABC.a.Abused lesbians*")
replaceContents "ABC.a.Abusive lesbian partners" with "Abusive lesbian women partners" if (exists "ABC.a.Abusive lesbian partners*")
replaceContents "ABC.a.African American homosexuals" with "African American gay men and lesbian women" if (exists "ABC.a.African American homosexuals*")
replaceContents "ABC.a.African American lesbians" with "African American lesbian women" if (exists "ABC.a.African American lesbians*")
replaceContents "ABC.a.African American lesbians in motion pictures" with "African American lesbian women in motion pictures" if (exists "ABC.a.African American lesbians in motion pictures*")
replaceContents "ABC.a.African American sexual minorities" with "African American LGBTQ+ people" if (exists "ABC.a.African American sexual minorities*")
replaceContents "ABC.a.Middle-aged lesbians" with "Middle-aged lesbian women" if (exists "ABC.a.Middle-aged lesbians*")
replaceContents "ABC.a.Bible Gay interpretations" with "Bible LGBTQ+ interpretations" if (exists "ABC.a.Bible Gay interpretations*")
replaceContents "ABC.a.Children of gay parents" with "Children of LGBTQ+ parents" if (exists "ABC.a.Children of gay parents*")
replaceContents "ABC.a.Children of sexual minority parents" with "Children of LGBTQ+ parents" if (exists "ABC.a.Children of sexual minority parents*")
replaceContents "ABC.a.Children of gays" with "Children of LGBTQ+ people" if (exists "ABC.a.Children of gays*")
replaceContents "ABC.a.Christian gays" with "Christian LGBTQ+ people" if (exists "ABC.a.Christian gays*")
replaceContents "ABC.a.Church work with gays" with "Church work with LGBTQ+ people" if (exists "ABC.a.Church work with gays*")
replaceContents "ABC.a.Closeted gays" with "Closeted LGBTQ+ people" if (exists "ABC.a.Closeted gays*")
replaceContents "ABC.a.Deaf gays" with "Deaf LGBTQ+ people" if (exists "ABC.a.Deaf gays*")
replaceContents "ABC.a.Etiquette for lesbians" with "Etiquette for lesbian women" if (exists "ABC.a.Etiquette for lesbians*")
replaceContents "ABC.a.Ex-gay movement" with "Ex-LGBTQ+ movement" if (exists "ABC.a.Ex-gay movement*")
replaceContents "ABC.a.Homosexuals" with "Lesbian women" if (exists "ABC.a.Homosexuals*")
replaceContents "ABC.a.Gay and lesbian dance parties" with "Gay men and lesbian women dance parties" if (exists "ABC.a.Gay and lesbian dance parties*")
replaceContents "ABC.a.Gay and lesbian fiction" with "Gay men and lesbian women fiction" if (exists "ABC.a.Gay and lesbian fiction*")
replaceContents "ABC.a.Gay and lesbian film festivals" with "Gay men and lesbian women film festivals" if (exists "ABC.a.Gay and lesbian film festivals*")
replaceContents "ABC.a.Gay and lesbian studies" with "Gay men and lesbian women studies" if (exists "ABC.a.Gay and lesbian studies*")
replaceContents "ABC.a.Homosexuals in literature" with "Lesbian women in literature" if (exists "ABC.a.Homosexuals in literature*")
replaceContents "ABC.a.Hispanic American gays" with "Hispanic American LGBTQ people" if (exists "ABC.a.Hispanic American gays*")
replaceContents "ABC.a.Hispanic American lesbians" with "Hispanic American lesbian women" if (exists "ABC.a.Hispanic American lesbians*")
replaceContents "ABC.a.Jewish lesbians" with "Jewish lesbian women" if (exists "ABC.a.Jewish lesbians*")
replaceContents "ABC.a.Legal assistance to gays" with "Legal assistance to LGBTQ people" if (exists "ABC.a.Legal assistance to gays*")
replaceContents "ABC.a.Lesbian Girl Scouts" with "Lesbian girls" if (exists "ABC.a.Lesbian Girl Scouts*")
replaceContents "ABC.a.Lesbians" with "Lesbian women" if (exists "ABC.a.Lesbians*")
replaceContents "ABC.a.Lesbian high school students" with "Lesbian women high school students" if (exists "ABC.a.Lesbian high school students*")
replaceContents "ABC.a.Lesbians in literature" with "Lesbian women in literature" if (exists "ABC.a.Lesbians in literature*")
replaceContents "ABC.a.Lesbians in mass media" with "Lesbian women in mass media" if (exists "ABC.a.Lesbians in mass media*")
replaceContents "ABC.a.Lesbians in motion pictures" with "Lesbian women in motion pictures" if (exists "ABC.a.Lesbians in motion pictures*")
replaceContents "ABC.a.Lesbian librarians" with "Lesbian women librarians" if (exists "ABC.a.Lesbian librarians*")
replaceContents "ABC.a.Lesbians on postage stamps" with "Lesbian women on postage stamps" if (exists "ABC.a.Lesbians on postage stamps*")
replaceContents "ABC.a.Lesbian activists" with "Lesbian women activists" if (exists "ABC.a.Lesbian activists*")
replaceContents "ABC.a.Lesbian actresses" with "Lesbian women actors" if (exists "ABC.a.Lesbian actresses*")
replaceContents "ABC.a.Lesbians and sports" with "Lesbian women and sports" if (exists "ABC.a.Lesbians and sports*")
replaceContents "ABC.a.Lesbian anthropologists" with "Lesbian women anthropologists" if (exists "ABC.a.Lesbian anthropologists*")
replaceContents "ABC.a.Lesbian artists in popular culture" with "Lesbian women artists in popular culture" if (exists "ABC.a.Lesbian artists in popular culture*")
replaceContents "ABC.a.Lesbian couples as parents" with "Lesbian women as parents" if (exists "ABC.a.Lesbian couples as parents*")
replaceContents "ABC.a.Lesbian athletes" with "Lesbian women athletes" if (exists "ABC.a.Lesbian athletes*")
replaceContents "ABC.a.Lesbian authors" with "Lesbian women authors" if (exists "ABC.a.Lesbian authors*")
replaceContents "ABC.a.Lesbian bars" with "Lesbian women bars" if (exists "ABC.a.Lesbian bars*")
replaceContents "ABC.a.Lesbian business enterprises" with "Lesbian women business enterprises" if (exists "ABC.a.Lesbian business enterprises*")
replaceContents "ABC.a.Lesbian cartoonists" with "Lesbian women cartoonists" if (exists "ABC.a.Lesbian cartoonists*")
replaceContents "ABC.a.Lesbian clergy" with "Lesbian women clergy" if (exists "ABC.a.Lesbian clergy*")
replaceContents "ABC.a.Lesbian college students" with "Lesbian women college students" if (exists "ABC.a.Lesbian college students*")
replaceContents "ABC.a.Lesbian college teachers" with "Lesbian women college teachers" if (exists "ABC.a.Lesbian college teachers*")
replaceContents "ABC.a.Lesbian community" with "Lesbian women community" if (exists "ABC.a.Lesbian community*")
replaceContents "ABC.a.Lesbian composers" with "Lesbian women composers" if (exists "ABC.a.Lesbian composers*")
replaceContents "ABC.a.Lesbian consumers" with "Lesbian women consumers" if (exists "ABC.a.Lesbian consumers*")
replaceContents "ABC.a.Lesbian couples" with "Lesbian women couples" if (exists "ABC.a.Lesbian couples*")
replaceContents "ABC.a.Lesbians in art" with "Lesbian women in art" if (exists "ABC.a.Lesbians in art*")
replaceContents "ABC.a.Lesbian musicians" with "Lesbian women musicians" if (exists "ABC.a.Lesbian musicians*")
replaceContents "ABC.a.Lesbian nuns" with "Lesbian women nuns" if (exists "ABC.a.Lesbian nuns*")
replaceContents "ABC.a.Lesbian partner abuse" with "Lesbian women partner abuse" if (exists "ABC.a.Lesbian partner abuse*")
replaceContents "ABC.a.Lesbian police officers" with "Lesbian women police officers" if (exists "ABC.a.Lesbian police officers*")
replaceContents "ABC.a.Lesbian private investigators" with "Lesbian women private investigators" if (exists "ABC.a.Lesbian private investigators*")
replaceContents "ABC.a.Lesbian psychotherapists" with "Lesbian women psychotherapists" if (exists "ABC.a.Lesbian psychotherapists*")
replaceContents "ABC.a.Lesbian separatism" with "Lesbian women separatism" if (exists "ABC.a.Lesbian separatism*")
replaceContents "ABC.a.Lesbian students" with "Lesbian women students" if (exists "ABC.a.Lesbian students*")
replaceContents "ABC.a.Lesbian teachers" with "Lesbian women teachers" if (exists "ABC.a.Lesbian teachers*")
replaceContents "ABC.a.Lesbian teenagers" with "Lesbian women teenagers" if (exists "ABC.a.Lesbian teenagers*")
replaceContents "ABC.a.Lesbian theater" with "Lesbian women theater" if (exists "ABC.a.Lesbian theater*")
replaceContents "ABC.a.Lesbian vampires" with "Lesbian women vampires" if (exists "ABC.a.Lesbian vampires*")
replaceContents "ABC.a.Lesbian youth" with "Lesbian women youth" if (exists "ABC.a.Lesbian youth*")
replaceContents "ABC.a.Lesbians' writings" with "Lesbian women's writings" if (exists "ABC.a.Lesbians' writings*")
replaceContents "ABC.a.Lesbians' writings, American" with "Lesbian women's writings, American" if (exists "ABC.a.Lesbians' writings, American*")
replaceContents "ABC.a.Lesbians' writings, Australian" with "Lesbian women's writings, Australian" if (exists "ABC.a.Lesbians' writings, Australian*")
replaceContents "ABC.a.Lesbians' writings, Canadian" with "Lesbian women's writings, Canadian" if (exists "ABC.a.Lesbians' writings, Canadian*")
replaceContents "ABC.a.Lesbians' writings, English" with "Lesbian women's writings, English" if (exists "ABC.a.Lesbians' writings, English*")
replaceContents "ABC.a.Lesbians' writings, French" with "Lesbian women's writings, French" if (exists "ABC.a.Lesbians' writings, French*")
replaceContents "ABC.a.Lesbians' writings, German" with "Lesbian women's writings, German" if (exists "ABC.a.Lesbians' writings, German*")
replaceContents "ABC.a.Lesbian culture" with "Lesbian women's culture" if (exists "ABC.a.Lesbian culture*")
replaceContents "ABC.a.Lesbian erotica" with "Lesbian women's erotica" if (exists "ABC.a.Lesbian erotica*")
replaceContents "ABC.a.Lesbian feminism" with "Lesbian women's feminism" if (exists "ABC.a.Lesbian feminism*")
replaceContents "ABC.a.Lesbian feminist theory" with "Lesbian women's feminist theory" if (exists "ABC.a.Lesbian feminist theory*")
replaceContents "ABC.a.Lesbian artists" with "Lesbian womenartists" if (exists "ABC.a.Lesbian artists*")
replaceContents "ABC.a.Gay accommodations" with "LGBTQ+ accommodations" if (exists "ABC.a.Gay accommodations*")
replaceContents "ABC.a.Gay activists" with "LGBTQ+ activists" if (exists "ABC.a.Gay activists*")
replaceContents "ABC.a.Gay actors" with "LGBTQ+ actors" if (exists "ABC.a.Gay actors*")
replaceContents "ABC.a.Gay adoption" with "LGBTQ+ adoption" if (exists "ABC.a.Gay adoption*")
replaceContents "ABC.a.Gay anthropologists" with "LGBTQ+ anthropologists" if (exists "ABC.a.Gay anthropologists*")
replaceContents "ABC.a.Gay artists" with "LGBTQ+ artists" if (exists "ABC.a.Gay artists*")
replaceContents "ABC.a.Gay athletes" with "LGBTQ+ athletes" if (exists "ABC.a.Gay athletes*")
replaceContents "ABC.a.Gay authors" with "LGBTQ+ authors" if (exists "ABC.a.Gay authors*")
replaceContents "ABC.a.Gay bars" with "LGBTQ+ bars" if (exists "ABC.a.Gay bars*")
replaceContents "ABC.a.Gay broadcasters" with "LGBTQ+ broadcasters" if (exists "ABC.a.Gay broadcasters*")
replaceContents "ABC.a.Gay business enterprises" with "LGBTQ+ business enterprises" if (exists "ABC.a.Gay business enterprises*")
replaceContents "ABC.a.Gay clergy" with "LGBTQ+ clergy" if (exists "ABC.a.Gay clergy*")
replaceContents "ABC.a.Gay college students" with "LGBTQ+ college students" if (exists "ABC.a.Gay college students*")
replaceContents "ABC.a.Sexual minority college students" with "LGBTQ+ college students" if (exists "ABC.a.Sexual minority college students*")
replaceContents "ABC.a.Gay college teachers" with "LGBTQ+ college teachers" if (exists "ABC.a.Gay college teachers*")
replaceContents "ABC.a.Gay columns in newspapers" with "LGBTQ+ columns in newspapers" if (exists "ABC.a.Gay columns in newspapers*")
replaceContents "ABC.a.Gay community" with "LGBTQ+ community" if (exists "ABC.a.Gay community*")
replaceContents "ABC.a.Sexual minority community" with "LGBTQ+ community" if (exists "ABC.a.Sexual minority community*")
replaceContents "ABC.a.Gay conservatives" with "LGBTQ+ conservatives" if (exists "ABC.a.Gay conservatives*")
replaceContents "ABC.a.Gay consumers" with "LGBTQ+ consumers" if (exists "ABC.a.Gay consumers*")
replaceContents "ABC.a.Gay counselors" with "LGBTQ+ counselors" if (exists "ABC.a.Gay counselors*")
replaceContents "ABC.a.Gay couples" with "LGBTQ+ couples" if (exists "ABC.a.Gay couples*")
replaceContents "ABC.a.Gay critics" with "LGBTQ+ critics" if (exists "ABC.a.Gay critics*")
replaceContents "ABC.a.Gay culture" with "LGBTQ+ culture" if (exists "ABC.a.Gay culture*")
replaceContents "ABC.a.Gay culture in literature" with "LGBTQ+ culture in literature" if (exists "ABC.a.Gay culture in literature*")
replaceContents "ABC.a.Gay deacons" with "LGBTQ+ deacons" if (exists "ABC.a.Gay deacons*")
replaceContents "ABC.a.Gay detectives" with "LGBTQ+ detectives" if (exists "ABC.a.Gay detectives*")
replaceContents "ABC.a.Gay discotheques" with "LGBTQ+ discotheques" if (exists "ABC.a.Gay discotheques*")
replaceContents "ABC.a.Gay erotic art" with "LGBTQ+ erotic art" if (exists "ABC.a.Gay erotic art*")
replaceContents "ABC.a.Gay erotic comic books, strips, etc" with "LGBTQ+ erotic comic books, strips, etc" if (exists "ABC.a.Gay erotic comic books, strips, etc*")
replaceContents "ABC.a.Gay erotic drama, American" with "LGBTQ+ erotic drama, American" if (exists "ABC.a.Gay erotic drama, American*")
replaceContents "ABC.a.Gay erotic drawing" with "LGBTQ+ erotic drawing" if (exists "ABC.a.Gay erotic drawing*")
replaceContents "ABC.a.Gay erotic films" with "LGBTQ+ erotic films" if (exists "ABC.a.Gay erotic films*")
replaceContents "ABC.a.Gay erotic literature" with "LGBTQ+ erotic literature" if (exists "ABC.a.Gay erotic literature*")
replaceContents "ABC.a.Gay erotic literature, French" with "LGBTQ+ erotic literature, French" if (exists "ABC.a.Gay erotic literature, French*")
replaceContents "ABC.a.Gay erotic photography" with "LGBTQ+ erotic photography" if (exists "ABC.a.Gay erotic photography*")
replaceContents "ABC.a.Gay erotic poetry" with "LGBTQ+ erotic poetry" if (exists "ABC.a.Gay erotic poetry*")
replaceContents "ABC.a.Gay erotic poetry, American" with "LGBTQ+ erotic poetry, American" if (exists "ABC.a.Gay erotic poetry, American*")
replaceContents "ABC.a.Gay erotic poetry, English" with "LGBTQ+ erotic poetry, English" if (exists "ABC.a.Gay erotic poetry, English*")
replaceContents "ABC.a.Gay erotic poetry, French" with "LGBTQ+ erotic poetry, French" if (exists "ABC.a.Gay erotic poetry, French*")
replaceContents "ABC.a.Gay erotic poetry, Greek" with "LGBTQ+ erotic poetry, Greek" if (exists "ABC.a.Gay erotic poetry, Greek*")
replaceContents "ABC.a.Gay erotic stories" with "LGBTQ+ erotic stories" if (exists "ABC.a.Gay erotic stories*")
replaceContents "ABC.a.Gay erotic stories, American" with "LGBTQ+ erotic stories, American" if (exists "ABC.a.Gay erotic stories, American*")
replaceContents "ABC.a.Gay erotic stories, Canadian" with "LGBTQ+ erotic stories, Canadian" if (exists "ABC.a.Gay erotic stories, Canadian*")
replaceContents "ABC.a.Gay erotic stories, English" with "LGBTQ+ erotic stories, English" if (exists "ABC.a.Gay erotic stories, English*")
replaceContents "ABC.a.Gay erotica" with "LGBTQ+ erotica" if (exists "ABC.a.Gay erotica*")
replaceContents "ABC.a.Gay figure skaters" with "LGBTQ+ figure skaters" if (exists "ABC.a.Gay figure skaters*")
replaceContents "ABC.a.Gay heroes" with "LGBTQ+ heroes" if (exists "ABC.a.Gay heroes*")
replaceContents "ABC.a.Gay high school students" with "LGBTQ+ high school students" if (exists "ABC.a.Gay high school students*")
replaceContents "ABC.a.Gay journalists" with "LGBTQ+ journalists" if (exists "ABC.a.Gay journalists*")
replaceContents "ABC.a.Gay kings and rulers" with "LGBTQ+ kings and rulers" if (exists "ABC.a.Gay kings and rulers*")
replaceContents "ABC.a.Gay labor union members" with "LGBTQ+ labor union members" if (exists "ABC.a.Gay labor union members*")
replaceContents "ABC.a.Gay lawyers" with "LGBTQ+ lawyers" if (exists "ABC.a.Gay lawyers*")
replaceContents "ABC.a.Gay legislators" with "LGBTQ+ legislators" if (exists "ABC.a.Gay legislators*")
replaceContents "ABC.a.Gay liberation movement" with "LGBTQ+ liberation movement" if (exists "ABC.a.Gay liberation movement*")
replaceContents "ABC.a.Gay librarians" with "LGBTQ+ librarians" if (exists "ABC.a.Gay librarians*")
replaceContents "ABC.a.Gay military cadets" with "LGBTQ+ military cadets" if (exists "ABC.a.Gay military cadets*")
replaceContents "ABC.a.Gay military personnel" with "LGBTQ+ military personnel" if (exists "ABC.a.Gay military personnel*")
replaceContents "ABC.a.Gay motion picture actors and actresses" with "LGBTQ+ motion picture actors" if (exists "ABC.a.Gay motion picture actors and actresses*")
replaceContents "ABC.a.Gay motion picture producers and directors" with "LGBTQ+ motion picture producers and directors" if (exists "ABC.a.Gay motion picture producers and directors*")
replaceContents "ABC.a.Gay musicians" with "LGBTQ+ musicians" if (exists "ABC.a.Gay musicians*")
replaceContents "ABC.a.Gay online chat groups" with "LGBTQ+ online chat groups" if (exists "ABC.a.Gay online chat groups*")
replaceContents "ABC.a.Gay parents" with "LGBTQ+ parents" if (exists "ABC.a.Gay parents*")
replaceContents "ABC.a.Gays" with "LGBTQ+ people" if (exists "ABC.a.Gays*")
replaceContents "ABC.a.Sexual minorities in art" with "LGBTQ+ people in art" if (exists "ABC.a.Sexual minorities in art*")
replaceContents "ABC.a.Sexual minorities in higher education" with "LGBTQ+ people in higher education" if (exists "ABC.a.Sexual minorities in higher education*")
replaceContents "ABC.a.Sexual minorities on television" with "LGBTQ+ people on television" if (exists "ABC.a.Sexual minorities on television*")
replaceContents "ABC.a.Sexual minorities with disabilities" with "LGBTQ+ people with disabilities" if (exists "ABC.a.Sexual minorities with disabilities*")
replaceContents "ABC.a.Gay personals" with "LGBTQ+ personals" if (exists "ABC.a.Gay personals*")
replaceContents "ABC.a.Gay photographers" with "LGBTQ+ photographers" if (exists "ABC.a.Gay photographers*")
replaceContents "ABC.a.Gay police officers" with "LGBTQ+ police officers" if (exists "ABC.a.Gay police officers*")
replaceContents "ABC.a.Gay politicians" with "LGBTQ+ politicians" if (exists "ABC.a.Gay politicians*")
replaceContents "ABC.a.Gay pornographic films" with "LGBTQ+ pornographic films" if (exists "ABC.a.Gay pornographic films*")
replaceContents "ABC.a.Gay pornography" with "LGBTQ+ pornography" if (exists "ABC.a.Gay pornography*")
replaceContents "ABC.a.Gay press" with "LGBTQ+ press" if (exists "ABC.a.Gay press*")
replaceContents "ABC.a.Gay press publications" with "LGBTQ+ press publications" if (exists "ABC.a.Gay press publications*")
replaceContents "ABC.a.Gay pride celebrations" with "LGBTQ+ pride celebrations" if (exists "ABC.a.Gay pride celebrations*")
replaceContents "ABC.a.Gay Pride Day" with "LGBTQ+ Pride Day" if (exists "ABC.a.Gay Pride Day*")
replaceContents "ABC.a.Gay pride parades" with "LGBTQ+ pride parades" if (exists "ABC.a.Gay pride parades*")
replaceContents "ABC.a.Gay prisoners" with "LGBTQ+ prisoners" if (exists "ABC.a.Gay prisoners*")
replaceContents "ABC.a.Gay private investigators" with "LGBTQ+ private investigators" if (exists "ABC.a.Gay private investigators*")
replaceContents "ABC.a.Gay psychiatrists" with "LGBTQ+ psychiatrists" if (exists "ABC.a.Gay psychiatrists*")
replaceContents "ABC.a.Gay real estate agents" with "LGBTQ+ real estate agents" if (exists "ABC.a.Gay real estate agents*")
replaceContents "ABC.a.Gay rights" with "LGBTQ+ rights" if (exists "ABC.a.Gay rights*")
replaceContents "ABC.a.Gay sailors" with "LGBTQ+ sailors" if (exists "ABC.a.Gay sailors*")
replaceContents "ABC.a.Gay singers" with "LGBTQ+ singers" if (exists "ABC.a.Gay singers*")
replaceContents "ABC.a.Gay skinheads" with "LGBTQ+ skinheads" if (exists "ABC.a.Gay skinheads*")
replaceContents "ABC.a.Gay social workers" with "LGBTQ+ social workers" if (exists "ABC.a.Gay social workers*")
replaceContents "ABC.a.Gay spies" with "LGBTQ+ spies" if (exists "ABC.a.Gay spies*")
replaceContents "ABC.a.Gay students" with "LGBTQ+ students" if (exists "ABC.a.Gay students*")
replaceContents "ABC.a.Sexual minority students" with "LGBTQ+ students" if (exists "ABC.a.Sexual minority students*")
replaceContents "ABC.a.Gay studies" with "LGBTQ+ studies" if (exists "ABC.a.Gay studies*")
replaceContents "ABC.a.Gay teachers" with "LGBTQ+ teachers" if (exists "ABC.a.Gay teachers*")
replaceContents "ABC.a.Gay teenagers" with "LGBTQ+ teenagers" if (exists "ABC.a.Gay teenagers*")
replaceContents "ABC.a.Gay theater" with "LGBTQ+ theater" if (exists "ABC.a.Gay theater*")
replaceContents "ABC.a.Gay theatrical producers and directors" with "LGBTQ+ theatrical producers and directors" if (exists "ABC.a.Gay theatrical producers and directors*")
replaceContents "ABC.a.Gay travelers" with "LGBTQ+ travelers" if (exists "ABC.a.Gay travelers*")
replaceContents "ABC.a.Gay wit and humor" with "LGBTQ+ wit and humor" if (exists "ABC.a.Gay wit and humor*")
replaceContents "ABC.a.Gay youth" with "LGBTQ+ youth" if (exists "ABC.a.Gay youth*")
replaceContents "ABC.a.Sexual minority youth" with "LGBTQ+ youth" if (exists "ABC.a.Sexual minority youth*")
replaceContents "ABC.a.Gay youths' writings" with "LGBTQ+ youths' writings" if (exists "ABC.a.Gay youths' writings*")
replaceContents "ABC.a.Libraries and bisexuals" with "Libraries and bisexual people" if (exists "ABC.a.Libraries and bisexuals*")
replaceContents "ABC.a.Libraries and lesbians" with "Libraries and lesbian women" if (exists "ABC.a.Libraries and lesbians*")
replaceContents "ABC.a.Libraries and gays" with "Libraries and LGBTQ+ people" if (exists "ABC.a.Libraries and gays*")
replaceContents "ABC.a.Libraries and gays" with "Libraries and gay men" if (exists "ABC.a.Libraries and gays*")
replaceContents "ABC.a.Libraries and sexual minorities" with "Libraries and LGBTQ+ people" if (exists "ABC.a.Libraries and sexual minorities*")
replaceContents "ABC.a.National socialism and homosexuality" with "National socialism and LGBTQ+ people" if (exists "ABC.a.National socialism and homosexuality*")
replaceContents "ABC.a.Older gays" with "Older LGBTQ people" if (exists "ABC.a.Older gays*")
replaceContents "ABC.a.Older lesbians" with "Older lesbian women" if (exists "ABC.a.Older lesbians*")
replaceContents "ABC.a.Ordination of gays" with "Ordination of LGBTQ + people" if (exists "ABC.a.Ordination of gays*")
replaceContents "ABC.a.Pacific Islander American bisexuals" with "Pacific Islander American bisexual people" if (exists "ABC.a.Pacific Islander American bisexuals*")
replaceContents "ABC.a.Pacific Islander American lesbians" with "Pacific Islander American lesbian women" if (exists "ABC.a.Pacific Islander American lesbians*")
replaceContents "ABC.a.Pacific Islander American gays" with "Pacific Islander American LGBTQ+ people" if (exists "ABC.a.Pacific Islander American gays*")
replaceContents "ABC.a.Parents of transsexuals" with "Parents of transgender children" if (exists "ABC.a.Parents of transsexuals*")
replaceContents "ABC.a.Rural lesbians" with "Rural lesbian women" if (exists "ABC.a.Rural lesbians*")
replaceContents "ABC.a.Social work with lesbians" with "Social work with lesbian women" if (exists "ABC.a.Social work with lesbians*")
replaceContents "ABC.a.Social work with gays" with "Social work with LGBTQ+ people" if (exists "ABC.a.Social work with gays*")
replaceContents "ABC.a.Social work with gay youth" with "Social work with LGBTQ+ youth" if (exists "ABC.a.Social work with gay youth*")
replaceContents "ABC.a.Television programs for gays" with "Television programs for LGBTQ people" if (exists "ABC.a.Television programs for gays*")
replaceContents "ABC.a.Female-to-male transsexuals" with "Trans men" if (exists "ABC.a.Female-to-male transsexuals*")
replaceContents "ABC.a.Transsexual college students" with "Transgender college students" if (exists "ABC.a.Transsexual college students*")
replaceContents "ABC.a.Transsexual students" with "Transgender students" if (exists "ABC.a.Transsexual students*")
replaceContents "ABC.a.Transsexual youth" with "Transgender youth" if (exists "ABC.a.Transsexual youth*")
replaceContents "ABC.a.Transsexualism" with "Transgenderism" if (exists "ABC.a.Transsexualism*")
end
rule "add 910"
# Adds a 910 field to any record with the relevant fields
# This 910 will mean we're able to pull together all the records to which we've made changes as part of this project.
salience 5
when
(TRUE)
then
addField "910.a.DCGOne" if (not exists "910.a.DCGOne")
end
rule "change back to 650"
# Changes the temp ABC field back to a 650
salience 4
when
TRUE
then
changeField "ABC" to "650"
end
rule "replace subfield 2"
# changes the temp contents of the subfield 2 to the permanent contents.
salience 2
when
(TRUE)
then
replaceContents "650.2.dcgONE" with "local"
end
rule "remove duplicate 650 fields"
# deletes duplicate 650 and 910 fields (for example, if this rule has been run twice. Theoretically this could be done in rule 'add 910' but I wanted it at the bottom in case I accidentally duplicated it elsewhere.
salience 1
when
(TRUE)
then
correctDuplicateFields "650"
end