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+>
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+>
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+>
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+>
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+>
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+>
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+>
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+>
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+>
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+>
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+>
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+>
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 ¶
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") )
var AuthorReplacer = strings.NewReplacer(
"- -", "",
"anonym", "",
"Anonymous", "",
"EB", "",
"keine Angabe", "",
"mg", "",
"MM", "",
"mm", "",
"No authorship indicated", "",
"Not Available, Not Available", "",
"O.V.", "",
"ps", "",
"rb", "",
"et al", "",
"index", "",
"Index", "",
"Author Index", "",
"AUTHOR Index", "",
"AUTHOR INDEX", "")
AuthorReplacer is a special cleaner for author names.
Functions ¶
This section is empty.
Types ¶
type DummySchema ¶
type DummySchema struct {
Title string `json:"title"`
}
DummySchema is an example export schema, that only has one field.
func (*DummySchema) Attach ¶
func (d *DummySchema) Attach(s []string)
Attach is here, so it satisfies the interface, but implementation is a noop.
func (*DummySchema) Convert ¶
func (d *DummySchema) Convert(is finc.IntermediateSchema) error
Export converts intermediate schema into this export schema.
type Solr4Vufind13v0 ¶
type Solr4Vufind13v0 struct { AccessFacet string `json:"access_facet,omitempty"` AuthorFacet []string `json:"author_facet"` Allfields string `json:"allfields,omitempty"` Author string `json:"author,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"` SecondaryAuthors []string `json:"author2,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"` }
Solr4Vufind13v0 is the basic solr 4 schema as of 2015-06-11. It is based on VuFind 1.3, it does not contain `container_*` fields.
type Solr4Vufind13v1 ¶
type Solr4Vufind13v1 struct { Solr4Vufind13v0 FormatDe15 []string `json:"format_de15"` }
Solr4Vufind13v1 is the basic solr 4 schema as of 2015-06-11. It is based on VuFind 1.3, it does not contain `container_*` fields.
func (*Solr4Vufind13v1) Attach ¶
func (s *Solr4Vufind13v1) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v1) Convert ¶
func (s *Solr4Vufind13v1) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v10 ¶ added in v0.1.79
type Solr4Vufind13v10 struct {
Solr4Vufind13v7
}
Solr4vu13v6 add missing publishDate field (#6266)
func (*Solr4Vufind13v10) Attach ¶ added in v0.1.79
func (s *Solr4Vufind13v10) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v10) Convert ¶ added in v0.1.79
func (s *Solr4Vufind13v10) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v2 ¶
type Solr4Vufind13v2 struct { Solr4Vufind13v0 // New container volumes. 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"` // Site specific formats, TODO(miku): abstract this away FormatDe105 []string `json:"format_de105,omitempty"` FormatDe14 []string `json:"format_de14,omitempty"` FormatDe15 []string `json:"format_de15"` 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"` }
Solr4vu13v2 is the default solr 4 schema. It contains more site-specific formats and support for container_* fields.
func (*Solr4Vufind13v2) Attach ¶
func (s *Solr4Vufind13v2) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v2) Convert ¶
func (s *Solr4Vufind13v2) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v3 ¶
type Solr4Vufind13v3 struct {
Solr4Vufind13v2
}
Solr4vu13v3 is like Solr4vu13v2, only the HierarchyParentTitle won't be filled with the journal title.
func (*Solr4Vufind13v3) Attach ¶
func (s *Solr4Vufind13v3) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v3) Convert ¶
func (s *Solr4Vufind13v3) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v4 ¶
type Solr4Vufind13v4 struct {
Solr4Vufind13v2
}
Solr4vu13v4 tries to sanitize author names a bit more, refs #5702.
func (*Solr4Vufind13v4) Attach ¶
func (s *Solr4Vufind13v4) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v4) Convert ¶
func (s *Solr4Vufind13v4) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v5 ¶
type Solr4Vufind13v5 struct {
Solr4Vufind13v2
}
Solr4vu13v5 tries to sanitize author names a bit more, refs #5702.
func (*Solr4Vufind13v5) Attach ¶
func (s *Solr4Vufind13v5) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v5) Convert ¶
func (s *Solr4Vufind13v5) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v6 ¶
type Solr4Vufind13v6 struct { Solr4Vufind13v2 PublishDate []string `json:"publishDate,omitempty"` }
Solr4vu13v6 add missing publishDate field (#6266)
func (*Solr4Vufind13v6) Attach ¶
func (s *Solr4Vufind13v6) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v6) Convert ¶
func (s *Solr4Vufind13v6) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v7 ¶ added in v0.1.58
type Solr4Vufind13v7 struct { Solr4Vufind13v6 PublishDate []string `json:"publishDate,omitempty"` }
Solr4vu13v6 add missing publishDate field (#6266)
func (*Solr4Vufind13v7) Attach ¶ added in v0.1.58
func (s *Solr4Vufind13v7) Attach(isils []string)
Attach attaches the ISILs to a record.
func (*Solr4Vufind13v7) Convert ¶ added in v0.1.58
func (s *Solr4Vufind13v7) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v8 ¶ added in v0.1.64
type Solr4Vufind13v8 struct {
Solr4Vufind13v7
}
Solr4vu13v8 uses labels from intermediate schema as institutions.
func (*Solr4Vufind13v8) Attach ¶ added in v0.1.64
func (s *Solr4Vufind13v8) Attach(_ []string)
Attach attaches the ISILs to a record. Noop.
func (*Solr4Vufind13v8) Convert ¶ added in v0.1.64
func (s *Solr4Vufind13v8) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.
type Solr4Vufind13v9 ¶ added in v0.1.74
type Solr4Vufind13v9 struct {
Solr4Vufind13v8
}
Solr4Vufind13v9 supresses author facet for sid 48, refs. #7111.
func (*Solr4Vufind13v9) Attach ¶ added in v0.1.74
func (s *Solr4Vufind13v9) Attach(_ []string)
Attach attaches the ISILs to a record. Noop.
func (*Solr4Vufind13v9) Convert ¶ added in v0.1.74
func (s *Solr4Vufind13v9) Convert(is finc.IntermediateSchema) error
Export method from intermediate schema to solr 4/13 schema.