Documentation
¶
Overview ¶
package fields provides methods for working with individual fields in MARC records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coord ¶
type Coord struct {
// DD is the coordinate in decimal degrees.
DD float64
// Hemisphere is a geographic hemisphere of the coordinate.
Hemisphere string
}
type Coord wraps a geographic coordinate defined in a MARC 034 field.
func Parse034Coordinate ¶
Parse034Coordinate parses an individual coordinate string from a MARC 034 field.
type Parsed ¶
type Parsed struct {
// The scale used in the parsed MARC 034 field.
Scale *Scale
// The ring used in the parsed MARC 034 field.
Ring *Ring
// The subfields listed in the parsed MARC 034 field.
Subfields map[string]*Subfield
}
type Parsed encapsulates the result of a MARC 034 field that has been parsed.
func Parse034 ¶
Parse034 parses a MARC 034 field as defined by https://www.loc.gov/marc/bibliographic/bd034.html in to a `Parsed` instance.
type Ring ¶
type Ring struct {
Code string
}
type Ring encapsulates the type of ring used in a MARC 034 field.
type Scale ¶
type Scale struct {
// Code is the
Code string
}
type Scale encapsulates the type of scale used in a MARC 034 field.
type Subfield ¶
type Subfield encapsulates the different types of subfield used in a MARC 034 field.
func NewSubfield ¶
NewSubfield returns a new `Subfield` instance for code and value.