oai

package
v0.1.157 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DublinCore

type DublinCore struct{}

func (DublinCore) Iterate

func (s DublinCore) Iterate(r io.Reader) (<-chan []span.Importer, error)

Iterate emits Converter elements via XML decoding.

type Record

type Record struct {
	XMLName xml.Name `xml:"Record"`
	Header  struct {
		Status     string `xml:"status,attr"`
		Identifier string `xml:"identifier"`
		Datestamp  string `xml:"datestamp"`
		SetSpec    string `xml:"setSpec"`
	} `xml:"header"`
	About string `xml:"about"`

	Metadata struct {
		// http://www.openarchives.org/OAI/2.0/oai_dc.xsd
		Dc struct {
			Title       []string `xml:"title"`
			Creator     []string `xml:"creator"`
			Subject     []string `xml:"subject"`
			Description []string `xml:"description"`
			Publisher   []string `xml:"publisher"`
			Contributor []string `xml:"contributor"`
			Date        []string `xml:"date"`
			Type        []string `xml:"type"`
			Identifier  []string `xml:"identifier"`
			Language    []string `xml:"language"`
			Rights      []string `xml:"rights"`
			Format      []string `xml:"format"`
			Source      []string `xml:"source"`
			Relation    []string `xml:"relation"`
			Coverage    []string `xml:"coverage"`
		} `xml:"dc"`
	} `xml:"metadata"`
}

func (*Record) Authors

func (r *Record) Authors() []finc.Author

func (*Record) DOI

func (r *Record) DOI() string

func (*Record) Date

func (r *Record) Date() (time.Time, error)

func (*Record) Description

func (r *Record) Description() string
func (r *Record) Links() []string

func (*Record) Title

func (r *Record) Title() string

func (*Record) ToIntermediateSchema

func (r *Record) ToIntermediateSchema() (*finc.IntermediateSchema, error)

ToInternalSchema converts a jats article into an internal schema. This is a basic implementation, different source might implement their own.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL