1 of 12

$3 and $5 in Primo VE Norm Rules

Kelley McGrath

9/29/22

2 of 12

Numbered subfields in MARC 21

  • $0 - Authority record control number or standard number
  • $1 - Real World Object URI
  • $3 - Materials specified
  • $5 - Institution to which field applies [contains MARC organizational code for the institution to which the data applies]
  • $6 - Linkage [used to link Romanized and vernacular character fields]
  • $7 - Data provenance
  • $8 - Field link and sequence number

3 of 12

Numbered subfields in MARC 21

  • Usually have the same meaning in whatever field they appear in

  • Except for $3, not intended for display

  • Where possible, we should treat the subfields consistently across norm rules using the same logic

4 of 12

$3 - Materials specified

  • Free text field
  • Used to specify the scope of the data in the field when it does not apply to the entire resource

384 0# ǂ3 no. 1: ǂa A major

384 0# ǂ3 no. 2: ǂa B♭ major

5 of 12

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

6 of 12

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

7 of 12

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

8 of 12

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

9 of 12

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

10 of 12

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

11 of 12

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

  1. $3 Use copy $f Restrictions unspecified $5 MiAaHDL $2 star

506 $a Item is part of Pitts Theology Library Special Collections. $c Access during Special Collections open hours. $5 GEU-T

12 of 12

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