Documentation ¶
Overview ¶
Copyright 2015 by Leipzig University Library, http://ub.uni-leipzig.de The Finc Authors, http://finc.info 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 ¶
const ( SourceID = "60" Format = "ElectronicArticle" Collection = "Thieme E-Journals" Genre = "article" DefaultRefType = "EJOUR" )
Variables ¶
var LanguageMap = assetutil.MustLoadStringMap("assets/doaj/language-iso-639-3.json")
Functions ¶
This section is empty.
Types ¶
type Article ¶ added in v0.1.94
type Article struct { xml.Name `xml:"article"` Xsi string `xml:"xsi,attr"` NoNamespaceSchemaLocation string `xml:"noNamespaceSchemaLocation,attr"` Lang string `xml:"lang,attr"` ArticleType string `xml:"article-type,attr"` Front struct { JournalMeta struct { JournalId string `xml:"journal-id"` JournalTitleGroup struct { Title string `xml:"journal-title"` } `xml:"journal-title-group"` Issn []string `xml:"issn"` Publisher struct { Name string `xml:"publisher-name"` } `xml:"publisher"` } `xml:"journal-meta"` ArticleMeta struct { Abstract struct { Text string `xml:",innerxml"` } `xml:"abstract"` ArticleID []struct { Value string `xml:",chardata"` Type string `xml:"pub-id-type,attr"` } `xml:"article-id"` ArticleCategories string `xml:"article-categories"` TitleGroup struct { ArticleTitle string `xml:"article-title"` TransTitleGroup struct { Lang string `xml:"lang,attr"` TransTitle string `xml:"trans-title"` } `xml:"trans-title-group"` } `xml:"title-group"` ContribGroup string `xml:"contrib-group"` PubDate struct { Month string `xml:"month"` Year string `xml:"year"` Day string `xml:"day"` } `xml:"pub-date"` Volume string `xml:"volume"` Issue string `xml:"issue"` Fpage string `xml:"fpage"` Lpage string `xml:"lpage"` } `xml:"article-meta"` } `xml:"front"` }
func (Article) ToIntermediateSchema ¶ added in v0.1.94
func (article Article) ToIntermediateSchema() (*finc.IntermediateSchema, error)
type Document ¶
type Document struct { xml.Name `xml:"Article"` 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 { Authors []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"` }
func (Document) ToIntermediateSchema ¶
func (doc Document) ToIntermediateSchema() (*finc.IntermediateSchema, error)