mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
Some refinements; anonymous authors
This commit is contained in:
@@ -77,3 +77,12 @@ func AuthorsView(lib *xmlmodels.Library) *AgentsListView {
|
||||
|
||||
return &res
|
||||
}
|
||||
|
||||
// AnonymView creates a synthetic agent for works without associated authors
|
||||
func AnonymView(lib *xmlmodels.Library) *xmlmodels.Agent {
|
||||
return &xmlmodels.Agent{
|
||||
Identifier: xmlmodels.Identifier{ID: "anonym"},
|
||||
Names: []string{"anonym"},
|
||||
Org: false, // person, not organization
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user