How can I hide foreign language subject headings from display?
Answer
- Go to Config>Institution>Discovery>Display Configuration>Manage Display and Local Fields
- If the subject field isn't showing for you, click on Add Field, Add Display Field, and search for "subject" in field to edit.
- Click the three dots to the right of the field to edit it. Once you save it, it will show up in your list of fields the next time you go to Manage Display and Local Fields.
- Inside of the field, scroll down until you see the 650 rule:
rule "Primo VE Display- Subject 650"
when
MARC."650" has any "a-u,w-z" AND NOT
MARC."650".ind"2" equals "2"
then
set TEMP"1" to MARC."650" subfields "a-u,w" delimited by " " remove substring using regex "\\.+$"
set TEMP"2" to MARC."650" sub without sorting "x-z" delimited by " -- "
remove substring using regex (TEMP"2","\\.+$")
concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
create pnx."display"."subject" with TEMP"1"
end
Change this section to:
rule "Primo VE Display- Subject 650"
when
MARC."650" has any "a-u,w-z,2" AND
((MARC."650"."2" match "Change the Subject Project" AND MARC."650".ind"2" equals "7") OR
MARC."650".ind"2" equals "0" OR
MARC."650".ind"2" equals "1") AND NOT
MARC."650".ind"2" equals "2" AND NOT
MARC."650".ind"2" equals "3" AND NOT
MARC."650".ind"2" equals "4" AND NOT
MARC."650".ind"2" equals "5" AND NOT
MARC."650".ind"2" equals "6" AND NOT
MARC."650".ind"2" equals "8" AND NOT
MARC."650"."a" match "Aliens"
then
when
MARC."650" has any "a-u,w-z,2" AND
((MARC."650"."2" match "Change the Subject Project" AND MARC."650".ind"2" equals "7") OR
MARC."650".ind"2" equals "0" OR
MARC."650".ind"2" equals "1") AND NOT
MARC."650".ind"2" equals "2" AND NOT
MARC."650".ind"2" equals "3" AND NOT
MARC."650".ind"2" equals "4" AND NOT
MARC."650".ind"2" equals "5" AND NOT
MARC."650".ind"2" equals "6" AND NOT
MARC."650".ind"2" equals "8" AND NOT
MARC."650"."a" match "Aliens"
then
set TEMP"1" to MARC."650" subfields "a-u,w" delimited by " -- " remove substring using regex "\\.+$"
set TEMP"2" to MARC."650" sub without sorting "x-z,2" delimited by " -- "
remove substring using regex (TEMP"2","\\.+$")
concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
set TEMP"3" to multilingual by "650" "Subject" "display"
concatenate with delimiter (TEMP"1",TEMP"3","")
replace string by string (TEMP"1","Illegal alien","Undocumented immigrant")
replace string by string (TEMP"1","illegal alien","undocumented immigrant")
replace string by string (TEMP"1","Illegal immigrants","Undocumented immigrants")
replace string by string (TEMP"1","Relations with aliens","Relations with immigrants")
replace string by string (TEMP"1","Taxation of aliens","Taxation of immigrants")
replace string by string (TEMP"1","Church work with aliens","Church work with immigrants")
replace string by string (TEMP"1","Deportation of aliens","Deportation of immigrants")
replace string by string (TEMP"1","Alien detention centers","Immigrant detention centers")
replace string by string (TEMP"1","Alien criminal","Criminal")
replace string by string (TEMP"1","Alien labor","Foreign workers")
replace string by string (TEMP"1","Alien property","Foreign-owned property")
create pnx."display"."subject" with TEMP"1"
end
You'll also want to change the 880 equivalent rule for 650. You'll need to change the code between "when" and "then" to:
MARC."880" has any "a-u,w-z" AND NOT
MARC."880".ind"2" equals "3" AND NOT
MARC."880".ind"2" equals "4" AND NOT
MARC."880".ind"2" equals "5" AND NOT
MARC."880".ind"2" equals "6" AND NOT
MARC."880".ind"2" equals "7" AND NOT
MARC."880".ind"2" equals "8" AND
MARC."880"."6" match "650-.*"
MARC."880".ind"2" equals "3" AND NOT
MARC."880".ind"2" equals "4" AND NOT
MARC."880".ind"2" equals "5" AND NOT
MARC."880".ind"2" equals "6" AND NOT
MARC."880".ind"2" equals "7" AND NOT
MARC."880".ind"2" equals "8" AND
MARC."880"."6" match "650-.*"
- Once you've changed the code and saved it, click on "Apply rules" next to "Add Field" in the initial list of fields. You should see your changes take effect right away in Primo. You can make this change for any of the 600/800 fields.