mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
Added Lookup functions to template to do reverse lookups on works, issues and pieces
This commit is contained in:
@@ -67,6 +67,10 @@ func (e *Engine) Funcs(app *app.KGPZ) error {
|
||||
e.AddFunc("GetPiece", app.Library.Pieces.Item)
|
||||
e.AddFunc("GetGND", app.GND.Person)
|
||||
|
||||
e.AddFunc("LookupPieces", app.Library.Pieces.ReverseLookup)
|
||||
e.AddFunc("LookupWorks", app.Library.Works.ReverseLookup)
|
||||
e.AddFunc("LookupIssues", app.Library.Issues.ReverseLookup)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user