(search) Toggle for showing recent results

Actually persist the value of the toggle between searches too...
This commit is contained in:
Viktor Lofgren 2024-01-09 11:36:49 +01:00
parent aff690f7d6
commit 41cccfd2aa
2 changed files with 7 additions and 9 deletions

View File

@ -18,14 +18,11 @@ public class DecoratedSearchResults {
private final String focusDomain;
private final int focusDomainId;
private final SearchFilters filters;
public String getQuery() {
return params.query();
}
public String getProfile() {
return params.profile().filterId;
}
public String getJs() {
return params.js().value;
}
// These are used by the search form
public String getQuery() { return params.query(); }
public String getProfile() { return params.profile().filterId; }
public String getJs() { return params.js().value; }
public String getAdtech() { return params.adtech().value; }
public String getRecent() { return params.recent().value; }
}

View File

@ -8,6 +8,7 @@
<input type="hidden" name="js" value="{{js}}">
<input type="hidden" name="adtech" value="{{adtech}}">
<input type="hidden" name="profile" value="{{profile}}">
<input type="hidden" name="recent" value="{{recent}}">
<input type="submit" form="search-form" title="Execute Search" value="Search">
</div>