ceeol

package
v0.1.350 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceIdentifier      = "53"
	Format                = "ElectronicArticle"
	Genre                 = "article"
	DefaultRefType        = "EJOUR"
	Collection            = "CEEOL Central and Eastern European Online Library"
	TechnicalCollectionID = "sid-53-col-ceeol"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	XMLName                 xml.Name `xml:"Article"`
	UniqueID                string   `xml:"UniqueID"`
	ISSN                    string   `xml:"ISSN"`
	EISSN                   string   `xml:"eISSN"`
	PublicationTitle        string   `xml:"PublicationTitle"`
	PublicationTitleEnglish string   `xml:"PublicationTitleEnglish"`
	ArticleTitle            string   `xml:"ArticleTitle"`
	ArticleTitleEnglish     string   `xml:"ArticleTitleEnglish"`
	IsOpenAccess            string   `xml:"IsOpenAccess"`
	PublicationYear         string   `xml:"PublicationYear"`
	Volume                  string   `xml:"Volume"`
	Issue                   string   `xml:"Issue"`
	StartPage               string   `xml:"StartPage"`
	ArticleURL              string   `xml:"ArticleURL"`
	Authors                 []string `xml:"Authors>Author"`
	Languages               []string `xml:"Languages>Language"`
	ArticleSubtitle         string   `xml:"ArticleSubtitle"`
	PublicationSubtitle     string   `xml:"PublicationSubtitle"`
	EndPage                 string   `xml:"EndPage"`
	PageCount               string   `xml:"PageCount"`
	SubjectTerms            []string `xml:"SubjectTerms>SubjectTerm"`
	Publisher               string   `xml:"Publisher"`
	PublisherEnglish        string   `xml:"PublisherEnglish"`
	Keywords                string   `xml:"Keywords"`
	Description             string   `xml:"Description"`
	FileID                  string   `xml:"FileID"`
}

Article from CEEOL, refs #9398.

func (*Article) ToIntermediateSchema

func (article *Article) ToIntermediateSchema() (*finc.IntermediateSchema, error)

ToIntermediateSchema converts an article to intermediate schema.

type Record added in v0.1.268

type Record struct {
	XMLName        xml.Name `xml:"record"`
	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"`
	} `xml:"leader"`
	Controlfield []struct {
		Text string `xml:",chardata"`
		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"`
			Code string `xml:"code,attr"`
		} `xml:"subfield"`
	} `xml:"datafield"`
}

Record for MARC-XML data, Ceeol style.

func (Record) Abstract added in v0.1.268

func (r Record) Abstract() string

func (Record) Authors added in v0.1.268

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

func (Record) GetControlField added in v0.1.268

func (r Record) GetControlField(tag string) (string, error)

func (Record) GetDataFields added in v0.1.268

func (r Record) GetDataFields(spec string) (result []string, err error)

func (Record) GetFirstDataField added in v0.1.268

func (r Record) GetFirstDataField(spec string) (string, error)

func (Record) ID added in v0.1.268

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

ID returns the identifier, the identifier might be hidden in the URL (e.g. <marc:subfield code="u">https://www.ceeol.com/search/book-detail?id=279462</marc:subfield>), was <UniqueID>279462</UniqueID>.

func (Record) ISBN added in v0.1.268

func (r Record) ISBN() (values []string)

ISBN returns a list of ISBN.

func (Record) ISSN added in v0.1.268

func (r Record) ISSN() (values []string)

ISSN returns a list of ISSN.

func (Record) Issue added in v0.1.268

func (r Record) Issue() string

Issue tries to parse the issue from "Vol. 6, no. 4 (2014)-" and similar.

func (Record) Languages added in v0.1.268

func (r Record) Languages() (langs []string)
func (r Record) Links() []string

func (Record) MustGetControlField added in v0.1.268

func (r Record) MustGetControlField(tag string) string

func (Record) MustGetDataFields added in v0.1.268

func (r Record) MustGetDataFields(spec string) []string

func (Record) MustGetFirstDataField added in v0.1.268

func (r Record) MustGetFirstDataField(spec string) string

func (Record) Places added in v0.1.268

func (r Record) Places() (places []string)

func (Record) PublicationYear added in v0.1.268

func (r Record) PublicationYear() string

func (Record) Publisher added in v0.1.268

func (r Record) Publisher() []string

func (Record) RecordFormat added in v0.1.268

func (r Record) RecordFormat() string

RecordFormat returns "book", "article" or "unknown".

func (Record) SubjectHeadings added in v0.1.268

func (r Record) SubjectHeadings() []string

func (Record) Title added in v0.1.268

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

Title returns some title.

func (Record) ToIntermediateSchema added in v0.1.268

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

ToIntermediateSchema converts CEEOL marcxml data into intermediate schema.

func (Record) Volume added in v0.1.268

func (r Record) Volume() string

Volume tries to parse volume from "Vol. 6, no. 4 (2014)-" and similar.

Jump to

Keyboard shortcuts

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