mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Abschluss einfache Inhaltsuche
This commit is contained in:
@@ -67,6 +67,39 @@ func (p *BeitraegeFilterParameters) FieldSetBeitraege() []dbmodels.FTS5QueryRequ
|
||||
return ret
|
||||
}
|
||||
|
||||
func (p BeitraegeFilterParameters) ToQueryParams() string {
|
||||
r := ""
|
||||
if p.Agent != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_AGENT + "=" + p.Agent
|
||||
}
|
||||
if p.Type != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_TYPE + "=" + p.Type
|
||||
}
|
||||
if p.Year != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_YEAR + "=" + p.Year
|
||||
}
|
||||
if p.OnlyScans {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_ONLYSCANS + "=on"
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
func (p BeitraegeFilterParameters) ToQueryParamsWOScans() string {
|
||||
r := ""
|
||||
if p.Agent != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_AGENT + "=" + p.Agent
|
||||
}
|
||||
if p.Type != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_TYPE + "=" + p.Type
|
||||
}
|
||||
if p.Year != "" {
|
||||
r += "&" + FILTER_PARAM_BEIAEGE_YEAR + "=" + p.Year
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
type SearchResultBeitraege struct {
|
||||
Queries []dbmodels.FTS5QueryRequest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user