Documentation ¶
Index ¶
- type Record
- func (r Record) FindFormat() string
- func (r Record) FindPages() (string, string, string)
- func (r Record) FindYear() string
- func (r Record) GetDataFields(spec string) (result []string, err error)
- func (r Record) GetFirstDataField(spec string) (string, error)
- func (r Record) ID() (string, error)
- func (r Record) JournalTitle() string
- func (r Record) MustGetDataFields(spec string) []string
- func (r Record) MustGetFirstDataField(spec string) string
- func (r Record) Title() string
- func (r Record) ToIntermediateSchema() (*finc.IntermediateSchema, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { XMLName xml.Name `xml:"Record"` Text string `xml:",chardata"` Header struct { Text string `xml:",chardata"` Status string `xml:"status,attr"` Identifier struct { Text string `xml:",chardata"` // oai:gesis.izsoz.de:docume... } `xml:"identifier"` Datestamp struct { Text string `xml:",chardata"` // 2012-08-29T21:40:31Z, 201... } `xml:"datestamp"` SetSpec []struct { Text string `xml:",chardata"` // com_community_10100, com_... } `xml:"setSpec"` } `xml:"header"` Metadata struct { Text string `xml:",chardata"` Record struct { Text string `xml:",chardata"` Xmlns string `xml:"xmlns,attr"` Doc string `xml:"doc,attr"` Xalan string `xml:"xalan,attr"` Xsi string `xml:"xsi,attr"` SchemaLocation string `xml:"schemaLocation,attr"` Leader struct { Text string `xml:",chardata"` // 00000nam a2200000 u 4500,... } `xml:"leader"` Controlfield []struct { Text string `xml:",chardata"` // 20080514135900.0, cr|||||... Tag string `xml:"tag,attr"` } `xml:"controlfield"` Datafield []struct { Text string `xml:",chardata"` Ind2 string `xml:"ind2,attr"` Ind1 string `xml:"ind1,attr"` Tag string `xml:"tag,attr"` Subfield []struct { Text string `xml:",chardata"` // b, http://www.ssoar.info/... Code string `xml:"code,attr"` } `xml:"subfield"` } `xml:"datafield"` } `xml:"record"` } `xml:"metadata"` About struct { Text string `xml:",chardata"` } `xml:"about"` }
func (Record) FindFormat ¶
func (Record) GetDataFields ¶ added in v0.1.226
func (Record) GetFirstDataField ¶ added in v0.1.226
func (Record) JournalTitle ¶
func (Record) MustGetDataFields ¶ added in v0.1.226
func (Record) MustGetFirstDataField ¶ added in v0.1.226
func (Record) ToIntermediateSchema ¶
func (r Record) ToIntermediateSchema() (*finc.IntermediateSchema, error)
ToIntermediateSchema converts a MarcXML-ish record.
Click to show internal directories.
Click to hide internal directories.