Skip to main content

Recommended WRLC Display and Local Rules

UNDER CONSTRUCTION

The following are various Primo VE display rules that are used by some of the institutions in the WRLC. It is not a requirement to have these configured in a WRLC Institution Zone, but they can be helpful, depending on your institution's policies. 

For instructions on how to configure a new display rule for Primo VE, see the following Wiki page:

https://alma.wrlc.org/books/discovery-primo-ve/page/how-to-hide-change-subject-headings-primo-ve-display-rules-and-dei-list-of-terms-to-exclude#bkmrk-editing-primo-ve-dis

SUBJECTS Display Rule

 


Gulf of Mexico in a 650 $$z subfield

rule "Primo VE Display - Subject 650 (including Gulf of Mexico* and Mt Denali* WRLC local subject heading)"
	when
		MARC."650" has any "a-u,w-z" AND NOT
		MARC."650"."z" match "America, Gulf of*" 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 "7" 
	then
		set TEMP"1" to MARC."650" subfields "a-u,w" delimited by " " remove substring using regex "\\.+$"
		set TEMP"2" to MARC."650" subfields "x-z" delimited by " -- " remove substring using regex "\\.+$"
		concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
        create pnx."display"."subject" with TEMP"1"
end

 

rule "Prima_Display - Subject 651 (including Gulf of America and Mount McKinley)"
	when
		MARC."651" has any "a-z" AND NOT
        MARC."651"."a" match "America, Gulf of*" AND NOT
        MARC."651"."a" match "Gulf of America*" AND NOT
        MARC."651"."a" match "McKinley, Mount (Alaska)*" AND NOT
		MARC."651".ind"2"  equals "2"  
	then
		set TEMP"1" to MARC."651" subfields "a-u,w" delimited by " " remove substring using regex "\\.+$"
		set TEMP"2" to MARC."651" sub without sorting "x-z" delimited by " -- "
        remove substring using regex (TEMP"2","\\.+$")
		concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
		set TEMP"3" to multilingual by "651" "Subject" "display"
		concatenate with delimiter (TEMP"1",TEMP"3","")
		set TEMP"4" to MARC."651" sub without sort "v"
		remove substring using regex (TEMP"4","\\.+$")
		add suffix (TEMP"4",".")	
        concatenate with delimiter (TEMP"1",TEMP"1","$$Q")
        concatenate with delimiter (TEMP"1",TEMP"4"," -- ")
		remove substring using regex (TEMP"1","\\$\\$Q.+[^.]$")
		remove substring using regex (TEMP"1","\\.$")
        create operational."prima_display"."subject" with TEMP"1"
end

 

rule "Primo VE Display - Subject 650 (including Illegal alien* WRLC local subject heading)"
	when
		MARC."650" has any "a-u,w-z" AND NOT
		MARC."650"."a" match "Illegal alien.*" AND NOT
		MARC."650"."a" match "Alien criminals" AND NOT
		MARC."650"."a" match "Alien detention centers" AND NOT
		MARC."650"."a" match "Alien property" AND NOT
		MARC."650"."a" match "Church work with aliens" 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 "7" 
	then
		set TEMP"1" to MARC."650" subfields "a-u,w" delimited by " " remove substring using regex "\\.+$"
		set TEMP"2" to MARC."650" subfields "x-z" delimited by " -- " remove substring using regex "\\.+$"
		concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
        create pnx."display"."subject" with TEMP"1"
end

rule "Primo VE Display - Subject 650 local supplemental WRLC subject headings"
	when
		MARC."650" has any "a-u,w-z" AND
		MARC."650".ind"2"  equals "7" AND 
		MARC."650"."2" match "local" AND
		MARC."650"."5" match "CAO"
	then
		set TEMP"1" to MARC."650" subfields "a-u,w" delimited by " " remove substring using regex "\\.+$"
		set TEMP"2" to MARC."650" subfields "x-z" delimited by " -- " remove substring using regex "\\.+$"
		concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
        create pnx."display"."subject" with TEMP"1"
end