Versions in this module Expand all Collapse all v0 v0.1.1 Nov 7, 2023 Changes in this version + const Authority + const Bibliography + const Classification + const CollectionXMLFooter + const CollectionXMLHeader + const Community + const FmtUnknown + const Holdings + func NextRecord(r io.Reader) (rawRec []byte, err error) + type Collection struct + Name xml.Name + Records []*Record + func LoadXML(filename string) (Collection, error) + func (c Collection) AsXML() (ret string, err error) + type Controlfield struct + Tag string + Text string + func (cf Controlfield) GetTag() string + func (cf Controlfield) GetText() string + func (cf Controlfield) String() string + type Datafield struct + Ind1 string + Ind2 string + Subfields []*Subfield + Tag string + func (df Datafield) GetInd1() string + func (df Datafield) GetInd2() string + func (df Datafield) GetSubfields(codes string) (sfs []*Subfield) + func (df Datafield) GetTag() string + type Leader struct + Text string + func (ldr Leader) GetText() string + type Record struct + Controlfields []*Controlfield + Datafields []*Datafield + Leader Leader + func ParseNextRecord(r io.Reader) (rec *Record, err error) + func ParseRecord(rawRec []byte) (rec *Record, err error) + func (rec Record) AsXML() (ret string, err error) + func (rec Record) BibliographyMaterialType() (code, label string) + func (rec Record) CharacterCodingScheme() (code, label string) + func (rec Record) GetControlfield(tag string) string + func (rec Record) GetControlfields(tags string) (cfs []*Controlfield) + func (rec Record) GetDatafields(tags string) (dfs []*Datafield) + func (rec Record) RecordAsMARC() (marc []byte, err error) + func (rec Record) RecordFormat() int + func (rec Record) RecordFormatName() string + func (rec Record) RecordType() (code, label string) + func (rec Record) String() string + type Subfield struct + Code string + Text string + func (sf Subfield) GetCode() string + func (sf Subfield) GetText() string