Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controlfield ¶
type Controlfield struct { Tag string `xml:"tag,attr" json:"tag"` Text string `xml:",chardata" json:"text"` Type string `xml:"-" json:"-"` }
Controlfield contains a controlfield entry
type Controlfields ¶
type Controlfields []*Controlfield
type Datafield ¶
type Datafield struct { Tag string `xml:"tag,attr" json:"tag"` Ind1 string `xml:"ind1,attr" json:"ind1,omitempty"` Ind2 string `xml:"ind2,attr" json:"ind2,omitempty"` Subfields []*Subfield `xml:"subfield" json:"subfield,omitempty"` }
Datafield contains a datafield entry
type Leader ¶
type Leader struct {
Text string `xml:",chardata" json:"text"`
}
Leader is for containing the text string of the MARC record Leader
type MARCIJ ¶
type MARCIJ struct { Leader string `json:"leader"` Fields []*MARCIJField `json:"fields"` }
type MARCIJContent ¶
type MARCIJField ¶
type MARCIJField struct { MARCIJContent Code string Text string }
func (*MARCIJField) FromMarc ¶
func (f *MARCIJField) FromMarc(dataField *Datafield) error
func (*MARCIJField) MarshalJSON ¶
func (f *MARCIJField) MarshalJSON() ([]byte, error)
func (*MARCIJField) UnmarshalJSON ¶
func (f *MARCIJField) UnmarshalJSON(data []byte) error
type QueryStruct ¶
type QueryStruct struct { Name string `json:"name"` Field *Datafield `json:"field"` Datafields []*Datafield `json:"datafield"` Controlfields []*Controlfield `json:"controlfield"` Leader string `json:"LDR"` }
type QueryStructMARCIJ ¶
type QueryStructMARCIJ struct { Name string `json:"name"` Field *MARCIJField `json:"field"` Object *MARCIJ `json:"object"` }
type Record ¶
type Record struct { Leader Leader `xml:"leader" json:"LDR"` Controlfields Controlfields `xml:"controlfield" json:"controlfield"` Datafields []*Datafield `xml:"datafield" json:"datafield"` }
Record is for containing a MARC record
Click to show internal directories.
Click to hide internal directories.