Some refinements; anonymous authors

This commit is contained in:
Simon Martens
2025-09-22 21:03:27 +02:00
parent f8d7b92be0
commit 9268402ebf
16 changed files with 177 additions and 428 deletions

View File

@@ -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
}
}