MARCSubrecord structure¶
-
class
marcxml_parser.structures.marcsubrecord.
MARCSubrecord
(val, i1, i2, other_subfields)[source]¶ Bases:
str
This class is used to store data returned from
MARCXMLParser.get_datafield()
.It may look like overshot, but when you are parsing the MARC XML, values from subrecords, you need to know the context in which the subrecord is put.
This context is provided by the
i1
/i2
values, but sometimes it is also useful to have access to the other subfields from this subrecord.-
val
¶ str – Value of subrecord.
-
ind1
¶ char – Indicator one.
-
ind2
¶ char – Indicator two.
-
other_subfields
¶ dict – Dictionary with other subfields from the same subrecord.
-