thieme

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: 7 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   = "60"
	Format     = "ElectronicArticle"
	Collection = "Thieme"
	Genre      = "article"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Identifier string `xml:"header>identifier"`
	Metadata   struct {
		ArticleSet struct {
			Article struct {
				Journal struct {
					PublisherName string `xml:"PublisherName"`
					JournalTitle  string `xml:"JournalTitle"`
					ISSN          string `xml:"Issn"`
					EISSN         string `xml:"E-Issn"`
					Volume        string `xml:"Volume"`
					Issue         string `xml:"Issue"`
					PubDate       struct {
						Year  string `xml:"Year"`
						Month string `xml:"Month"`
						Day   string `xml:"Day"`
					} `xml:"PubDate"`
				} `xml:"Journal"`
				AuthorList struct {
					Author []struct {
						FirstName string `xml:"FirstName"`
						LastName  string `xml:"LastName"`
					} `xml:"Author"`
				} `xml:"AuthorList"`
				ArticleIdList []struct {
					ArticleId struct {
						OpenAccess string `xml:"OpenAccess,attr"`
						IdType     string `xml:"IdType,attr"`
						Id         string `xml:",chardata"`
					}
				} `xml:"ArticleIdList"`
				ArticleType        string   `xml:"ArticleType"`
				ArticleTitle       string   `xml:"ArticleTitle"`
				VernacularTitle    string   `xml:"VernacularTitle"`
				FirstPage          string   `xml:"FirstPage"`
				LastPage           string   `xml:"LastPage"`
				VernacularLanguage string   `xml:"VernacularLanguage"`
				Language           string   `xml:"Language"`
				Subject            []string `xml:"subject"`
				Links              []string `xml:"Links>Link"`
				History            []struct {
					PubDate struct {
						Status string `xml:"PubStatus,attr"`
						Year   string `xml:"Year"`
						Month  string `xml:"Month"`
						Day    string `xml:"Day"`
					} `xml:"PubDate"`
				} `xml:"History"`
				Abstract           string `xml:"Abstract"`
				VernacularAbstract string `xml:"VernacularAbstract"`
				Format             struct {
					HTML string `xml:"html,attr"`
					PDF  string `xml:"pdf,attr"`
				} `xml:"format"`
				CopyrightInformation string `xml:"CopyrightInformation"`
			} `xml:"Article"`
		} `xml:"ArticleSet"`
	} `xml:"metadata"`
}

func (Document) Date

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

func (Document) ToIntermediateSchema

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

type Thieme

type Thieme struct{}

func (Thieme) Iterate

func (s Thieme) 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