rule "Primo VE - Lds64" priority 30 when MARC.control."LDR"(7-8) does not equal "s" AND MARC.control is "008" then set TEMP"1" to MARC.control."008".Date1 set TEMP"2" to MARC.control."008".Date2 replace string by string (TEMP"1","[^0-9]","\\?") replace string by string (TEMP"1","9{4}","") replace string by string (TEMP"2","[^0-9]","\\?") replace string by string (TEMP"2","9{4}","") remove substring using regex (TEMP"1","^(0|\\?)+$") remove substring using regex (TEMP"2","^(0|\\?)+$") concatenate with delimiter (TEMP"1",TEMP"2"," - ") set pnx."display"."lds64" to TEMP"1" end rule "Primo VE - Lds64 260/3" priority 40 when MARC.control."LDR"(7-8) does not equal "s" AND MARC is "260"."c" AND MARC."260".ind"1" equals "3" then set TEMP"1" to MARC."260"."c" remove substring using regex (TEMP"1","\\[+") remove substring using regex (TEMP"1","(\\]|:|,|=|/|\\.)+$") remove substring using regex (TEMP"1","(\\])+") set pnx."display"."lds64" to TEMP"1" end rule "Primo VE - Lds64 264/3/1" priority 50 when MARC.control."LDR"(7-8) does not equal "s" AND MARC is "264"."c" AND MARC."264".ind"1" equals "3" AND MARC."264".ind"2" equals "1" then set TEMP"1" to MARC."264"."c" remove substring using regex (TEMP"1","\\[+") remove substring using regex (TEMP"1","(\\]|:|,|=|/|\\.)+$") remove substring using regex (TEMP"1","(\\])+") set pnx."display"."lds64" to TEMP"1" end rule "Primo VE - Lds64 260" priority 10 when MARC.control."LDR"(7-8) does not equal "s" AND MARC is "260"."c" then set TEMP"1" to MARC."260"."c" remove substring using regex (TEMP"1","\\[+") remove substring using regex (TEMP"1","(\\]|:|,|=|/|\\.)+$") remove substring using regex (TEMP"1","(\\])+") set pnx."display"."lds64" to TEMP"1" end rule "Primo VE - Lds64 264" priority 20 when MARC.control."LDR"(7-8) does not equal "s" AND MARC is "264"."c" then set TEMP"1" to MARC."264"."c" remove substring using regex (TEMP"1","\\[+") remove substring using regex (TEMP"1","(\\]|:|,|=|/|\\.)+$") remove substring using regex (TEMP"1","(\\])+") set pnx."display"."lds64" to TEMP"1" end