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+>
WIP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SubjectMapping = assetutil.MustLoadStringSliceMap("assets/finc/subjects.json") LanguageMap = assetutil.MustLoadStringMap("assets/finc/iso-639-3-language.json") AIAccessFacet = "Electronic Resources" FormatDe105 = assetutil.MustLoadStringMap("assets/finc/formats/de105.json") FormatDe14 = assetutil.MustLoadStringMap("assets/finc/formats/de14.json") FormatDe15 = assetutil.MustLoadStringMap("assets/finc/formats/de15.json") FormatDe520 = assetutil.MustLoadStringMap("assets/finc/formats/de520.json") FormatDe540 = assetutil.MustLoadStringMap("assets/finc/formats/de540.json") FormatDeCh1 = assetutil.MustLoadStringMap("assets/finc/formats/dech1.json") FormatDed117 = assetutil.MustLoadStringMap("assets/finc/formats/ded117.json") FormatDeGla1 = assetutil.MustLoadStringMap("assets/finc/formats/degla1.json") FormatDel152 = assetutil.MustLoadStringMap("assets/finc/formats/del152.json") FormatDel189 = assetutil.MustLoadStringMap("assets/finc/formats/del189.json") FormatDeZi4 = assetutil.MustLoadStringMap("assets/finc/formats/dezi4.json") FormatDeZwi2 = assetutil.MustLoadStringMap("assets/finc/formats/dezwi2.json") FormatNrw = assetutil.MustLoadStringMap("assets/finc/formats/nrw.json") )
var AuthorReplacer = strings.NewReplacer(
"anonym", "",
"Anonymous", "",
"keine Angabe", "",
"No authorship indicated", "",
"Not Available, Not Available", "",
"Author Index", "",
"AUTHOR Index", "",
"AUTHOR INDEX", "")
AuthorReplacer is a special cleaner for author names.
Functions ¶
This section is empty.
Types ¶
type Solr5Vufind3 ¶ added in v0.1.120
type Solr5Vufind3 struct {
AccessFacet string `json:"access_facet,omitempty"`
AuthorFacet []string `json:"author_facet,omitempty"`
Authors []string `json:"author,omitempty"`
SecondaryAuthors []string `json:"author2,omitempty"`
Allfields string `json:"allfields,omitempty"`
FincClassFacet []string `json:"finc_class_facet,omitempty"`
Formats []string `json:"format,omitempty"`
Fullrecord string `json:"fullrecord,omitempty"`
Fulltext string `json:"fulltext,omitempty"`
HierarchyParentTitle []string `json:"hierarchy_parent_title,omitempty"`
ID string `json:"id,omitempty"`
Institutions []string `json:"institution,omitempty"`
Imprint string `json:"imprint,omitempty"`
ISSN []string `json:"issn,omitempty"`
Languages []string `json:"language,omitempty"`
MegaCollections []string `json:"mega_collection,omitempty"`
PublishDateSort int `json:"publishDateSort,omitempty"`
Publishers []string `json:"publisher,omitempty"`
RecordType string `json:"recordtype,omitempty"`
Series []string `json:"series,omitempty"`
SourceID string `json:"source_id,omitempty"`
Subtitle string `json:"title_sub,omitempty"`
Title string `json:"title,omitempty"`
TitleFull string `json:"title_full,omitempty"`
TitleShort string `json:"title_short,omitempty"`
TitleSort string `json:"title_sort,omitempty"`
Topics []string `json:"topic,omitempty"`
URL []string `json:"url,omitempty"`
PublishDate []string `json:"publishDate,omitempty"`
VF1Author string `json:"vf1_author,omitempty"`
VF1SecondaryAuthors []string `json:"vf1_author2,omitempty"`
ContainerIssue string `json:"container_issue,omitempty"`
ContainerStartPage string `json:"container_start_page,omitempty"`
ContainerTitle string `json:"container_title,omitempty"`
ContainerVolume string `json:"container_volume,omitempty"`
FormatDe105 []string `json:"format_de105,omitempty"`
FormatDe14 []string `json:"format_de14,omitempty"`
FormatDe15 []string `json:"format_de15,omitempty"`
FormatDe520 []string `json:"format_de520,omitempty"`
FormatDe540 []string `json:"format_de540,omitempty"`
FormatDeCh1 []string `json:"format_dech1,omitempty"`
FormatDed117 []string `json:"format_ded117,omitempty"`
FormatDeGla1 []string `json:"format_degla1,omitempty"`
FormatDel152 []string `json:"format_del152,omitempty"`
FormatDel189 []string `json:"format_del189,omitempty"`
FormatDeZi4 []string `json:"format_dezi4,omitempty"`
FormatDeZwi2 []string `json:"format_dezwi2,omitempty"`
FormatNrw []string `json:"format_nrw,omitempty"`
}
WIP: Solr5Vufind3 is the basic solr 5 schema as of 2016-04-14. It is based on VuFind 3. Same as Solr5Vufind3v12, but with fullrecord field, refs. #8031.
func (*Solr5Vufind3) Convert ¶ added in v0.1.120
func (s *Solr5Vufind3) Convert(is finc.IntermediateSchema, withFullrecord bool) error
Export method from intermediate schema to solr 4/13 schema.