Another update. Added 546 and 520 tags.
parent
cc7cb7a791
commit
d413eed86d
39
marc3h.py
39
marc3h.py
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue