Documentation ¶
Index ¶
- Constants
- type Article
- type Record
- func (r Record) Abstract() string
- func (r Record) Authors() (authors []finc.Author)
- func (r Record) GetControlField(tag string) (string, error)
- func (r Record) GetDataFields(spec string) (result []string, err error)
- func (r Record) GetFirstDataField(spec string) (string, error)
- func (r Record) ID() (string, error)
- func (r Record) ISBN() (values []string)
- func (r Record) ISSN() (values []string)
- func (r Record) Issue() string
- func (r Record) Languages() (langs []string)
- func (r Record) Links() []string
- func (r Record) MustGetControlField(tag string) string
- func (r Record) MustGetDataFields(spec string) []string
- func (r Record) MustGetFirstDataField(spec string) string
- func (r Record) Places() (places []string)
- func (r Record) PublicationYear() string
- func (r Record) Publisher() []string
- func (r Record) RecordFormat() string
- func (r Record) SubjectHeadings() []string
- func (r Record) Title() (string, error)
- func (r Record) ToIntermediateSchema() (*finc.IntermediateSchema, error)
- func (r Record) Volume() string
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) GetControlField ¶ added in v0.1.268
func (Record) GetDataFields ¶ added in v0.1.268
func (Record) GetFirstDataField ¶ added in v0.1.268
func (Record) ID ¶ added in v0.1.268
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) Issue ¶ added in v0.1.268
Issue tries to parse the issue from "Vol. 6, no. 4 (2014)-" and similar.
func (Record) MustGetControlField ¶ added in v0.1.268
func (Record) MustGetDataFields ¶ added in v0.1.268
func (Record) MustGetFirstDataField ¶ added in v0.1.268
func (Record) PublicationYear ¶ added in v0.1.268
func (Record) RecordFormat ¶ added in v0.1.268
RecordFormat returns "book", "article" or "unknown".
func (Record) SubjectHeadings ¶ added in v0.1.268
func (Record) ToIntermediateSchema ¶ added in v0.1.268
func (r Record) ToIntermediateSchema() (*finc.IntermediateSchema, error)
ToIntermediateSchema converts CEEOL marcxml data into intermediate schema.
Click to show internal directories.
Click to hide internal directories.