mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-30 09:35:31 +00:00
Speed up startup
This commit is contained in:
@@ -15,24 +15,14 @@ type Works struct {
|
||||
}
|
||||
|
||||
type Work struct {
|
||||
ID string `xml:"id,attr"`
|
||||
XMLName xml.Name `xml:"werk"`
|
||||
URLs []URL `xml:"url"`
|
||||
Citation []string `xml:"zitation"`
|
||||
Akteur []AgentRef `xml:"akteur"`
|
||||
Identifier
|
||||
AnnotationNote
|
||||
}
|
||||
|
||||
type AgentRef struct {
|
||||
Ref string `xml:"ref,attr"`
|
||||
Category string `xml:"Kat,attr"`
|
||||
Value string `xml:",chardata"`
|
||||
}
|
||||
|
||||
type URL struct {
|
||||
Address string `xml:"address,attr"`
|
||||
Value string `xml:",chardata"`
|
||||
}
|
||||
|
||||
func (w Works) Append(data Works) Works {
|
||||
w.Work = append(w.Work, data.Work...)
|
||||
return w
|
||||
|
||||
Reference in New Issue
Block a user