more bugs fixed, more bugs created

This commit is contained in:
Simon Martens
2025-02-20 17:16:57 +01:00
parent 37a65ec902
commit cdf8d74cf7
9 changed files with 97 additions and 53 deletions

View File

@@ -27,6 +27,7 @@ type ReihePage struct {
pagemodels.Page
}
// TODO: data richtig seutzen, damit die Reihe mit dem template _reihe angezeigt wird
func (p *ReihePage) Setup(router *router.Router[*core.RequestEvent], app core.App, engine *templating.Engine) error {
router.GET(URL_REIHE, func(e *core.RequestEvent) error {
id := e.Request.PathValue("id")

View File

@@ -150,6 +150,10 @@ func (p *ReihenPage) PlaceRequest(app core.App, engine *templating.Engine, e *co
return p.Get(e, engine, data)
}
// BUG: Umlaute werden nicht korrekt gesucht
// BUG: alternative treffer haben keine relations
// TODO: Suche nach Musenalm-ID
// TODO: Suchverhalten bei gefilterten Personen, Orten und Jahren
func (p *ReihenPage) SearchRequest(app core.App, engine *templating.Engine, e *core.RequestEvent) error {
search := e.Request.URL.Query().Get(PARAM_SEARCH)
data := map[string]interface{}{}