Skip to main content

Recommended WRLC Primo Display Norm Rules

The following are various Primo VE display normalization rules that can be used by WRLC institutions to display local WRLC Network Zone fields (for a full list, see the Local Network Zone MARC Fields wiki page). 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 new display and local fields for Primo VE, see the following Wiki page:

https://alma.wrlc.org/books/discovery-primo-ve/page/how-to-hide-change-add-marc-fields-for-display-in-primo-primo-ve-display-rules-and-dei-list-of-terms-to-exclude 

Display Field MARC21 Norm Rules

See this page on the workflow for editing Primo VE display fields : https://alma.wrlc.org/books/discovery-primo-ve/page/how-to-hide-change-add-marc-fields-for-display-in-primo-primo-ve-display-rules-and-dei-list-of-terms-to-exclude#bkmrk-editing-primo-ve-dis 

Subjects

For all of the Subjects display norm rules below, first delete the pre-existing code for the specific field (in this case, either 650 or 651) before the "then" portion of the code in the out-of-the-box Primo norm rules, then replace it with the appropriate block of code below.

primo-display-field.PNG


Hide "America, Gulf of" in a 650 subfield $$z

rule "Primo VE Display - Subject 650 (hide 650 $$z Gulf of America LCSH 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 "2"

Hide "Illegal aliens" and other related LCSH in a 650 subfield $$a

rule "Primo VE Display - Subject 650 (hide 650 $$a Illegal aliens and related LCSH headings)"
	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 "2"

All 650 field rules listed above combined

rule "Primo VE Display - Subject 650 (display 650 local supplement WRLC headings and hide 650 $$z Gulf of America, $$a Illegal aliens, and related LCSH headings)"
	when
		MARC."650" has any "a-u,w-z" AND NOT
		MARC."650"."z" match "America, Gulf of*" 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 "2"

Hide "Gulf of America", "America, Gulf of", and "McKinley, Mount (Alaska)"in a 651 subfield $$a

rule "Prima_Display - Subject 651 (hide 651 $$a Gulf of America and Mount McKinley LCSH headings)"
	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"  

Local Field MARC21 Norm Rules

See this page on the workflow to configuring a Primo VE local fields : https://alma.wrlc.org/books/discovery-primo-ve/page/how-to-hide-change-add-marc-fields-for-display-in-primo-primo-ve-display-rules-and-dei-list-of-terms-to-exclude#bkmrk-configuring-a-primo-

Display local WRLC subject headings in a 690 field (these are added to CZ records)

First delete the entire pre-existing code for the local field in the out-of-the-box Primo norm rules, then replace it with the block of code below.

rule "Primo VE - display local WRLC subject headings in CZ records, 690 field"
	when
		MARC "XXX" has any "a-z"
	then
		set TEMP"1" to MARC."XXX" subfields "a-w" delimited by " " remove substring using regex "\\.+$"
		set TEMP"2" to MARC."XXX" subfields "x-z" delimited by " -- " remove substring using regex "\\.+$"
		concatenate with delimiter (TEMP"1",TEMP"2"," -- ")
        create pnx."display"."subject" with TEMP"1"
end

Resources

For more information on Normalization Rule Syntax, see the following Primo Knowledge Center page:

https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/020Primo_VE/Primo_VE_(English)/050Display_Configuration/Configuring_Normalization_Rules_for_Display_and_Local_Fields#Normalization_Rule_Syntax  

For instructions on how to configure new display and local fields for Primo VE, see the following Wiki page:

https://alma.wrlc.org/books/discovery-primo-ve/page/how-to-hide-change-add-marc-fields-for-display-in-primo-primo-ve-display-rules-and-dei-list-of-terms-to-exclude