ssoar

package
v0.1.344 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	marc.Record
}

func (Record) FindFormat

func (r Record) FindFormat() string

FindFormat tries to parse a format.

func (Record) FindPages

func (r Record) FindPages() (string, string, string)

FindPages returns start, end and page count as string.

func (Record) FindYear

func (r Record) FindYear() string

FindYear tries to find a year.

func (Record) HasEmbargo

func (r Record) HasEmbargo() (time.Time, bool)

HasEmbargo looks for a fixed string in the MARC record and tries to find out, whether the embargo holds. Some example text (mixed date formats): "Der Volltext unterliegt einer Embargofrist bis zum 18. Okt. 2018."

func (Record) ID

func (r Record) ID() (string, error)

ID returns an identifier.

func (Record) JournalTitle

func (r Record) JournalTitle() string

JournalTitle tries to parse out a journal title.

func (Record) Title

func (r Record) Title() string

Title returns the a record title.

func (Record) ToIntermediateSchema

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

ToIntermediateSchema converts a MarcXML-ish record.

Jump to

Keyboard shortcuts

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