genios

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2015 by Leipzig University Library, http://ub.uni-leipzig.de
               by The Finc Authors, http://finc.info
               by Martin Czygan, <martin.czygan@uni-leipzig.de>

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 <http://www.gnu.org/licenses/>.

@license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>

Index

Constants

View Source
const (
	SourceID = "48"

	Format = "ElectronicArticle"
	// Collection is the base name of the collection.
	Collection = "Genios"
	Genre      = "article"
)

Variables

This section is empty.

Functions

func NomenNescio

func NomenNescio(s string) bool

NomenNescio returns true, if the field is de-facto empty.

Types

type Document

type Document struct {
	ID               string   `xml:"ID,attr"`
	DB               string   `xml:"DB,attr"`
	IDNAME           string   `xml:"IDNAME,attr"`
	ISSN             string   `xml:"ISSN"`
	Source           string   `xml:"Source"`
	PublicationTitle string   `xml:"Publication-Title"`
	Title            string   `xml:"Title"`
	Year             string   `xml:"Year"`
	RawDate          string   `xml:"Date"`
	Volume           string   `xml:"Volume"`
	Issue            string   `xml:"Issue"`
	RawAuthors       []string `xml:"Authors>Author"`
	Language         string   `xml:"Language"`
	Abstract         string   `xml:"Abstract"`
	Group            string   `xml:"x-group"`
	Descriptors      string   `xml:"Descriptors>Descriptor"`
	Text             string   `xml:"Text"`
}

func (Document) Authors

func (doc Document) Authors() []string

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.

func (Document) Headings

func (doc Document) Headings() []string

Headings returns subject headings.

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) RecordID

func (doc Document) RecordID() string

RecordID uses SourceAndID as starting point.

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() (*finc.IntermediateSchema, 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.

type Genios

type Genios struct{}

func (Genios) Iterate

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

Iterate emits Converter elements via XML decoding.

Jump to

Keyboard shortcuts

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