rule "Primo VE - Format 300" when MARC is "300" AND NOT MARC."351" has any "a" then set TEMP"1" to MARC."300" subfields "a" delimited by " : " remove substring using regex "(/|:|;|=|,)+$" set TEMP"2" to MARC."300" subfields "b" delimited by " ; " remove substring using regex "(/|:|;|=|,)+$" set TEMP"3" to MARC."300" subfields "c" delimited by " : " remove substring using regex "(/|:|;|=|,)\\.+$" set TEMP"4" to MARC."300" sub without sort "e,f,g" concatenate with delimiter (TEMP"1",TEMP"2"," : ") concatenate with delimiter (TEMP"1",TEMP"3"," ; ") concatenate with delimiter (TEMP"1",TEMP"4"," ") add prefix (TEMP"1","300 ") create pnx."display"."format" with TEMP"1" end rule "Primo VE - Format 351" when MARC is "300" AND MARC."351" has any "a" then set TEMP"1" to MARC."300" excluding num subfields without sort set TEMP"2" to MARC."351" excluding num subfields without sort add prefix (TEMP"1","351 ") create pnx."display"."format" with TEMP"1" end