$3 and $5 in Primo VE Norm Rules
Kelley McGrath
9/29/22
Numbered subfields in MARC 21
Numbered subfields in MARC 21
$3 - Materials specified
384 0# ǂ3 no. 1: ǂa A major
384 0# ǂ3 no. 2: ǂa B♭ major
rule "Primo VE - Lds84"
when
MARC."384" has any "3,a"
then
set TEMP"1" to MARC."384" subfields "3"
set TEMP"2" to MARC."384" subfields "a"
# combine $3 and $a so $3 comes first; add colon in case missing
concatenate existing with delimiter (TEMP"1",TEMP"2",": ")
# remove extra colon if it was already there in data
replace string by string (TEMP"1","::",":")
create pnx."display"."lds84" with TEMP"1"
end
rule "Primo VE - Lds84"
when
MARC."384" has any "3,a"
#1145799732 | #1200737739 | #1113859921 | #123897619 |
$a E♭ major | $3 no. 1: $a A major | $3 op. 34 $a F major | $a C♯ minor $3 1st work |
rule "Primo VE - Lds84"
then
set TEMP"1" to MARC."384" subfields "3"
set TEMP"2" to MARC."384" subfields "a"
| #1145799732 | #1200737739 | #1113859921 | #123897619 |
| $a E♭ major | $3 no. 1: $a A major | $3 op. 34 $a F major | $a C♯ minor $3 1st work |
TEMP"1" | | no. 1: | op. 34 | 1st work |
TEMP“2" | E♭ major | A major | F major | C♯ minor |
rule "Primo VE - Lds84"
# combine $3 and $a so $3 comes first; add colon in case missing
concatenate existing with delimiter (TEMP"1",TEMP"2",": ")
| #1145799732 | #1200737739 | #1113859921 | #123897619 |
| $a E♭ major | $3 no. 1: $a A major | $3 op. 34 $a F major | $a C♯ minor $3 1st work |
TEMP"1" | | no. 1: | op. 34 | 1st work |
TEMP“2" | E♭ major | A major | F major | C♯ minor |
TEMP"1" | E♭ major | no. 1:: A major | op. 34: F major | 1st work: C♯ minor |
rule "Primo VE - Lds84"
# remove extra colon if it was already there in data
replace string by string (TEMP"1","::",":")
| #1145799732 | #1200737739 | #1113859921 | #123897619 |
| $a E♭ major | $3 no. 1: $a A major | $3 op. 34 $a F major | $a C♯ minor $3 1st work |
TEMP"1" | | no. 1: | op. 34 | 1st work |
TEMP“2" | E♭ major | A major | F major | C♯ minor |
TEMP"1" | E♭ major | no. 1:: A major | op. 34: F major | 1st work: C♯ minor |
TEMP"1" | E♭ major | no. 1: A major | op. 34: F major | 1st work: C♯ minor |
rule "Primo VE - Lds84"
create pnx."display"."lds84" with TEMP"1"
end
| #1145799732 | #1200737739 | #1113859921 | #123897619 |
| $a E♭ major | $3 no. 1: $a A major | $3 op. 34 $a F major | $a C♯ minor $3 1st work |
TEMP"1" | | no. 1: | op. 34 | 1st work |
TEMP“2" | E♭ major | A major | F major | C♯ minor |
TEMP"1" | E♭ major | no. 1:: A major | op. 34: F major | 1st work: C♯ minor |
TEMP"1" | E♭ major | no. 1: A major | op. 34: F major | 1st work: C♯ minor |
rule "Primo VE - $5 Example"
when
MARC is "506" AND NOT
MARC."506"."5" match ".*"
then
create pnx."display"."lds??" with MARC."506" excluding num subfields without sort
end
506 $a Item is part of Pitts Theology Library Special Collections. $c Access during Special Collections open hours. $5 GEU-T
rule "Primo VE - $5 Alternative Example"
when
MARC is "506" AND
(MARC."506"."5" match "OrU" OR NOT
MARC."506"."5" match ".*")
then
create pnx."display"."lds??" with MARC."506" excluding num subfields without sort
end