Another update. Added 546 and 520 tags.

Ray
Ray Schwartz 2024-08-24 17:42:13 -04:00 committed by GitHub
parent cc7cb7a791
commit d413eed86d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 39 additions and 0 deletions

View File

@ -66,6 +66,19 @@ def stub(dc):
record.add_ordered_field(field010)
for att in dc.book.attributes:
if att.fk_attriblist == 20:
field010 = pymarc.Field(
tag='020',
indicators=[' ', ' '],
subfields=[
Subfield(code='a', value=str(att.text)),
]
)
record.add_ordered_field(field020)
field040 = pymarc.Field(
tag='040',
indicators=[' ', ' '],
@ -201,6 +214,32 @@ def stub(dc):
)
record.add_ordered_field(field508)
for att in dc.book.attributes:
if att.fk_attriblist == 520:
field508 = pymarc.Field(
tag='520',
indicators=[' ', ' '],
subfields=[
Subfield(code='a', value=str(att.text)),
]
)
record.add_ordered_field(field520)
for att in dc.book.attributes:
if att.fk_attriblist == 546:
field508 = pymarc.Field(
tag='546',
indicators=[' ', ' '],
subfields=[
Subfield(code='a', value=str(att.text)),
]
)
record.add_ordered_field(field546)
for subject in dc.subjects:
field653 = pymarc.Field(