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