Skip to content
Snippets Groups Projects
Commit 96fafae5 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Compare lowercase structural metadata

parent b7f3dd35
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class ElementSearch(SearchAPIView):
if structural_metadata:
search = search.filter(
'wildcard',
structural_metadata='*{}*'.format(structural_metadata)
structural_metadata='*{}*'.format(structural_metadata.lower())
)
if element_type:
......
......@@ -139,7 +139,7 @@ class ESElement(Document):
for element in Element.objects.get_ascending(instance.id)
],
structural_metadata=[
md.value
md.value.lower()
for md in instance.metadatas.filter(type=MetaType.Structural)
],
transcriptions=list(map(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment