mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Better reverse link resoving
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package xmlmodels
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Agent struct {
|
||||
@@ -16,6 +16,11 @@ type Agent struct {
|
||||
AnnotationNote
|
||||
}
|
||||
|
||||
func (a Agent) String() string {
|
||||
return fmt.Sprintf("ID: %s\nNames: %v\nSortName: %s\nLife: %s\nGND: %s\nAnnotations: %v\nNotes: %v\n", a.ID, a.Names, a.SortName, a.Life, a.GND, a.Annotations, a.Notes)
|
||||
func (a Agent) Name() string {
|
||||
return "agent"
|
||||
}
|
||||
|
||||
func (a Agent) String() string {
|
||||
data, _ := json.MarshalIndent(a, "", " ")
|
||||
return string(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user