Issue string `xml:"Issue"` RawAuthors []string `xml:"Authors>Author"` Language string `xml:"Language"` Abstract string `xml:"Abstract"` Descriptors string `xml:"Descriptors>Descriptor"` Text string `xml:"Text"` XGroup string `xml:"x-group"` XIssue string `xml:"x-issue"` } var ( rawDateReplacer = strings.NewReplacer(`"`, "", "\n", "", "\t", "") // acceptedLanguages restricts the possible languages for detection. acceptedLanguages = container.NewStringSet("deu", "eng") // dbmap maps a database name to one or more "package names" dbmap = assetutil.MustLoadStringSliceMap("assets/genios/dbmap.json") ) type Genios struct{} // Iterate emits Converter elements via XML decoding. func (s Genios) Iterate(r io.Reader) (<-chan []span.Importer, error) { return span.FromXML(r, "Document", func(d *xml.Decoder, se xml.StartElement) (span.Importer, error) { doc := new(Document) err := d.DecodeElement(&doc, &se) return doc, err }) } // Headings returns subject headings. func (doc Document) Headings() []string {
// // 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+> // package exporter import ( "strings" "github.com/miku/span/assetutil" ) 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")