mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-28 16:55:32 +00:00
IDs: string -> int
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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{},
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user