Documentation
¶
Overview ¶
Package marc transforms MARC records in JSON format into a tabular form.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marc ¶
type Marc struct { Line int16 Field string Ind1 string Ind2 string Ord int16 SF string Content string }
Marc is a single "row" of data extracted from part of a MARC record.
func Transform ¶
Transform converts marcjson, a MARC record in JSON format, into a table. Only a MARC record considered to be current is transformed, where current is defined as having state == "ACTUAL" and some content present in 999 ff $i which is presumed to be the FOLIO instance identifer. Transform returns the resultant table as a slice of Marc structs and the instance identifer as a string. If the MARC record is not current, Transform returns an empty slice and the instance identifier as "".