mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-30 01:25:30 +00:00
Added arrays to XMLProvider types for faster iteration
This commit is contained in:
@@ -37,10 +37,15 @@ type Note struct {
|
||||
|
||||
type Identifier struct {
|
||||
ID string `xml:"id,attr"`
|
||||
KeyedItem
|
||||
}
|
||||
|
||||
func (i Identifier) GetIDs() []string {
|
||||
return []string{i.ID}
|
||||
func (i Identifier) Keys() []string {
|
||||
if len(i.keys) > 0 {
|
||||
return i.keys
|
||||
}
|
||||
i.keys = []string{i.ID}
|
||||
return i.keys
|
||||
}
|
||||
|
||||
type Reference struct {
|
||||
|
||||
Reference in New Issue
Block a user