Skip to content

Commit

Permalink
Add scope option to search (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Nov 3, 2023
1 parent e81745a commit d28483b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/readux/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ class ManifestSearchForm(forms.Form):
},
),
)
scope = forms.ChoiceField(
label="Limit search to",
required=False,
initial="all",
choices=(
("all", "All"),
("metadata", "Metadata only"),
("text", "Textual contents only"),
),
widget=forms.Select(
attrs={
"class": "uk-select",
},
),
)
language = FacetedMultipleChoiceField(
label="Language",
required=False,
Expand Down

0 comments on commit d28483b

Please sign in to comment.