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+>
Directory of open access journals.
Index ¶
Constants ¶
const ( // Internal bookkeeping. SourceID = "28" // Collection name Collection = "DOAJ Directory of Open Access Journals" // Format for all records Format = "ElectronicArticle" Genre = "article" // Default ris.type DefaultRefType = "EJOUR" )
Variables ¶
var ( LCCPatterns = assetutil.MustLoadRegexpMap("assets/finc/lcc.json") LanguageMap = assetutil.MustLoadStringMap("assets/doaj/language-iso-639-3.json") )
Functions ¶
This section is empty.
Types ¶
type BibJSON ¶
type BibJSON struct { Abstract string `json:"abstract"` Author []Author `json:"author"` EndPage string `json:"end_page"` Identifier []Identifier `json:"identifier"` Journal Journal `json:"journal"` Link []Link `json:"link"` Month string `json:"month"` StartPage string `json:"start_page"` Subject []Subject `json:"subject"` Title string `json:"title"` Year string `json:"year"` }
type Document ¶
type Document struct { BibJson BibJSON `json:"bibjson"` Created string `json:"created_date"` ID string `json:"id"` Index Index `json:"index"` Updated string `json:"last_updated"` // make Response.Type available here Type string }
func (Document) Date ¶
Date return the document date. Journals entries usually have no date, so they will err.
func (Document) ToIntermediateSchema ¶
func (doc Document) ToIntermediateSchema() (*finc.IntermediateSchema, error)
ToIntermediateSchema converts a doaj document to intermediate schema. For now any record, that has no usable date will be skipped.
type Identifier ¶
type Index ¶
type Index struct { Classification []string `json:"classification"` Country string `json:"country"` Date string `json:"date"` ISSN []string `json:"issn"` Language []string `json:"language"` License []string `json:"license"` SchemaCode []string `json:"schema_code"` SchemaSubjects []string `json:"schema_subjects"` Subjects []string `json:"subject"` }