IDs: string -> int

This commit is contained in:
Simon Martens
2025-02-19 22:03:40 +01:00
parent aa7c5f4d6c
commit 107a9d9f70
21 changed files with 94 additions and 63 deletions

View File

@@ -8,7 +8,7 @@ type Akteure struct {
}
type Akteur struct {
ID string `xml:"ID"`
ID int `xml:"ID"`
Name string `xml:"NAME"`
Körperschaft bool `xml:"ORGANISATION"`
Beruf string `xml:"BERUF"`

View File

@@ -8,7 +8,7 @@ type Bände struct {
}
type Band struct {
ID string `xml:"ID"`
ID int `xml:"ID"`
BiblioID int `xml:"BIBLIO-ID"`
Titelangabe string `xml:"TITEL"`
Ortsangabe string `xml:"ORT-ALT"`
@@ -26,7 +26,7 @@ type Band struct {
}
type Ortverweis struct {
Value string `xml:"Value"`
Value int `xml:"Value"`
}
type Status struct {

View File

@@ -8,10 +8,10 @@ type Inhalte struct {
}
type Inhalt struct {
ID string `xml:"ID"`
ID int `xml:"ID"`
Titelangabe string `xml:"TITEL"`
Urheberangabe string `xml:"AUTOR"`
Band string `xml:"BAND"`
Band int `xml:"BAND"`
Objektnummer string `xml:"OBJEKTNUMMER"`
Incipit string `xml:"INCIPIT"`
Paginierung string `xml:"PAGINIERUNG"`

View File

@@ -8,7 +8,7 @@ type Orte struct {
}
type Ort struct {
ID string `xml:"ID"`
ID int `xml:"ID"`
Name string `xml:"NAME"`
Fiktiv bool `xml:"FIKTIV"`
Anmerkungen string `xml:"Anmerkungen"`

View File

@@ -8,7 +8,7 @@ type Reihentitel struct {
}
type Reihe struct {
ID string `xml:"ID"`
ID int `xml:"ID"`
Titel string `xml:"NAME"`
Sortiername string `xml:"SORTIERNAME"`
Nachweis string `xml:"NACHWEIS"`
@@ -16,7 +16,7 @@ type Reihe struct {
}
func SanitizeReihen(reihentitel Reihentitel, relationen Relationen_Bände_Reihen) Reihentitel {
m := make(map[string]bool)
m := make(map[int]bool)
o := Reihentitel{
Reihen: []Reihe{},
}

View File

@@ -8,10 +8,10 @@ type Relationen_Bände_Reihen struct {
}
type Relation_Band_Reihe struct {
ID string `xml:"ID"`
Band string `xml:"BAND"`
ID int `xml:"ID"`
Band int `xml:"BAND"`
Relation string `xml:"BEZIEHUNG"`
Reihe string `xml:"REIHE"`
Reihe int `xml:"REIHE"`
}
type Relationen_Inhalte_Akteure struct {
@@ -20,10 +20,10 @@ type Relationen_Inhalte_Akteure struct {
}
type Relation_Inhalt_Akteur struct {
ID string `xml:"ID"`
Inhalt string `xml:"INHALT"`
ID int `xml:"ID"`
Inhalt int `xml:"INHALT"`
Relation string `xml:"BEZIEHUNG"`
Akteur string `xml:"AKTEUR"`
Akteur int `xml:"AKTEUR"`
}
type Relationen_Bände_Akteure struct {
@@ -32,8 +32,8 @@ type Relationen_Bände_Akteure struct {
}
type Relation_Band_Akteur struct {
ID string `xml:"ID"`
Band string `xml:"BAND"`
ID int `xml:"ID"`
Band int `xml:"BAND"`
Relation string `xml:"BEZIEHUNG"`
Akteur string `xml:"AKTEUR"`
Akteur int `xml:"AKTEUR"`
}