utils

package
v0.0.0-...-8798514 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Schlagwoerter []Schlagwoerter `xml:"subject"`
	Subjects      []Subjects      `xml:"classification"`
}

Info This is the tag of greatest interest for us; it contains all the importants subtags

type Mods

type Mods struct {
	Infos Info `xml:"mods"`
}

Mods Format tag, contains info about the version of the format and the URL to the specs

type Records

type Records struct {
	XMLName xml.Name
	Record  []SingleResult `xml:"record"`
}

Records list of found items

type Root

type Root struct {
	XMLName xml.Name
	Records Records `xml:"records"`
}

Root tag

type Schlagwoerter

type Schlagwoerter struct {
	XMLName              xml.Name `xml:"subject"`
	Authority            string   `xml:"authority,attr"`
	SchlagwortGeneral    string   `xml:"topic"`
	SchlagwortTemporal   string   `xml:"temporal"`
	SchlagwortGeographic string   `xml:"geographic"`
}

Schlagwoerter finds the subjects and the assigning authority

type SingleResult

type SingleResult struct {
	Position int  `xml:"recordPosition"` // index
	Mods     Mods `xml:"recordData"`
}

SingleResult : main node for single items, contains all the relevant informations

type Subjects

type Subjects struct {
	XMLName   xml.Name
	Authority string `xml:"authority,attr"`
	Subject   string `xml:",innerxml"`
}

Subjects finds the categories (codes) and the assigning authority

Jump to

Keyboard shortcuts

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