mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-30 01:25:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			476 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			476 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package xmlmodels
 | |
| 
 | |
| import (
 | |
| 	"encoding/json"
 | |
| 	"encoding/xml"
 | |
| )
 | |
| 
 | |
| type Agent struct {
 | |
| 	XMLName  xml.Name `xml:"akteur"`
 | |
| 	Names    []string `xml:"name"`
 | |
| 	SortName string   `xml:"sortiername"`
 | |
| 	Life     string   `xml:"lebensdaten"`
 | |
| 	GND      string   `xml:"gnd"`
 | |
| 	Org      bool     `xml:"org,attr"`
 | |
| 	Identifier
 | |
| 	AnnotationNote
 | |
| }
 | |
| 
 | |
| func (a Agent) Name() string {
 | |
| 	return "agent"
 | |
| }
 | |
| 
 | |
| func (a Agent) String() string {
 | |
| 	data, _ := json.MarshalIndent(a, "", "  ")
 | |
| 	return string(data)
 | |
| }
 | 
