Version: v0.1.330 Latest Latest

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 9 Imported by: 0



Copyright 2015 by Leipzig University Library,
                  The Finc Authors,
                  Martin Czygan, <>

This file is part of some open source application.

Some open source application is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Some open source application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Foobar. If not, see <>.

@license GPL-3.0+ <>



View Source
const (
	// SourceID for internal bookkeeping.
	SourceID = "48"
	// Format is mapped per site later.
	Format = "ElectronicArticle"
	// Collection is the base name of the collection.
	Collection = "Genios"
	// Genre default.
	Genre = "article"
	// DefaultRefType is the default ris.type.
	DefaultRefType = "EJOUR"


This section is empty.


This section is empty.


type Document

type Document struct {
	XMLName     xml.Name `xml:"Document"`
	Chardata    string   `xml:",chardata"`
	ID          string   `xml:"ID,attr"`
	IDNAME      string   `xml:"IDNAME,attr"`
	DB          string   `xml:"DB,attr"`
	Abstract    string   `xml:"Abstract"` // This interview deals with...
	RawAuthors  []string `xml:"Authors>Author"`
	Descriptors string   `xml:"Descriptors>Descriptor"`
	RawDate     string   `xml:"Date"`         // 20050101, 20050501
	Issue       string   `xml:"Issue"`        // 1, 2
	ISSN        string   `xml:"ISSN"`         // 1861-1303
	ISBN        string   `xml:"ISBN"`         // n.n.
	Subtitle    string   `xml:"Subtitle"`     // n.n.
	SeriesTitle string   `xml:"Series-Title"` // n.n.
	Editors     struct {
		Text   string `xml:",chardata"`
		Editor string `xml:"Editor"` // n.n.
	} `xml:"Editors"`
	Edition          string   `xml:"Edition"`           // n.n.
	Language         string   `xml:"Language"`          // n.n.
	Page             string   `xml:"Page"`              // 9, 43, 69, 87, 99, 121, 1...
	PublicationTitle string   `xml:"Publication-Title"` // International Journal of ...
	Source           string   `xml:"Source"`            // IJAR
	Title            string   `xml:"Title"`             // "One sows the seed, but i...
	Text             string   `xml:"Text"`
	Volume           string   `xml:"Volume"`          // 1
	Year             string   `xml:"Year"`            // 2005
	Affiliation      string   `xml:"Affiliation"`     // n.n.
	DOI              string   `xml:"DOI"`             // n.n.
	PersistentLink   string   `xml:"Persistent_Link"` //
	Publisher        string   `xml:"Publisher"`       // Rainer Hampp Verlag
	Available        string   `xml:"available"`       // n.n.
	Copyright        string   `xml:"Copyright"`
	Modules          []string `xml:"Modules>Module"`
	XPackage         string   `xml:"X-Package"` // fachzeitschriften

Document was generated 2019-06-12 19:13:21 by tir on hayiti, edited.

func (Document) Authors

func (doc Document) Authors() (authors []finc.Author)

Authors returns a list of authors. Formatting is not cleaned up, so you'll get any combination of surname and given names.

func (Document) Date

func (doc Document) Date() (time.Time, error)

Date returns the date as noted in the document. There might be two values: Date and Year. Defaults to Year, fallback to Date, refs #12193.

func (Document) Headings

func (doc Document) Headings() []string

Headings returns subject headings.

func (Document) ISSNList

func (doc Document) ISSNList() []string

ISSNList returns a list of ISSN.

func (Document) Languages

func (doc Document) Languages() []string

Languages returns the given and guessed languages found in abstract and fulltext. Note: This is slow. Skip detection on too short strings.

func (Document) SourceAndID

func (doc Document) SourceAndID() string

SourceAndID will probably be a unique identifier. An ID alone might not be enough.

func (Document) ToIntermediateSchema

func (doc Document) ToIntermediateSchema() (output *finc.IntermediateSchema, err error)

ToIntermediateSchema converts a genios document into an intermediate schema document. Will fail/skip records with unusable dates.

func (Document) URL

func (doc Document) URL() string

URL returns a constructed URL at the publishers site, refs #15177.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL