exporter

package
v0.1.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

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+>

WIP.

Index

Constants

This section is empty.

Variables

View Source
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")
)
View Source
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.

func (*Solr4Vufind13v0) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v0) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v0) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v0) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v0) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v0) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v0) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v0) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v1) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v1) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v1) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v1) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v1) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v1) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v1) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v1) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v10) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v10) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v10) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v10) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v10) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v10) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v10) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v10) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v2) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v2) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v2) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v2) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v2) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v2) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v2) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v2) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v3) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v3) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v3) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v3) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v3) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v3) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v3) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v3) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v4) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v4) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v4) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v4) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v4) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v4) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v4) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v4) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v5) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v5) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v5) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v5) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v5) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v5) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v5) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v5) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v6) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v6) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v6) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v6) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v6) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v6) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v6) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v6) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v7) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v7) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v7) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v7) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v7) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v7) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v7) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v7) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v8) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v8) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v8) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v8) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v8) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v8) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v8) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v8) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

Export method from intermediate schema to solr 4/13 schema.

func (*Solr4Vufind13v9) MarshalJSON added in v0.1.84

func (mj *Solr4Vufind13v9) MarshalJSON() ([]byte, error)

func (*Solr4Vufind13v9) MarshalJSONBuf added in v0.1.84

func (mj *Solr4Vufind13v9) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Solr4Vufind13v9) UnmarshalJSON added in v0.1.84

func (uj *Solr4Vufind13v9) UnmarshalJSON(input []byte) error

func (*Solr4Vufind13v9) UnmarshalJSONFFLexer added in v0.1.84

func (uj *Solr4Vufind13v9) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type Solr5Vufind3v11 added in v0.1.83

type Solr5Vufind3v11 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"`
}

func (*Solr5Vufind3v11) Attach added in v0.1.83

func (s *Solr5Vufind3v11) Attach(_ []string)

Attach attaches the ISILs to a record. Noop.

func (*Solr5Vufind3v11) Convert added in v0.1.83

Export method from intermediate schema to solr 4/13 schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL