Skip to content

Commit

Permalink
Resolves GeoNode#6925: fix thesaurus show method by adding facet as f…
Browse files Browse the repository at this point in the history
…ilter
  • Loading branch information
mattiagiupponi committed Feb 10, 2021
1 parent 8e32647 commit feb9c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def resource_urls(request):
"""Global values to pass to templates"""
site = Site.objects.get_current()
thesaurus = Thesaurus.objects.all().exists()
thesaurus = Thesaurus.objects.filter(facet=True).all()
if hasattr(settings, 'THESAURUS'):
warnings.warn(
'Thesaurus settings is going to be'
Expand Down Expand Up @@ -176,7 +176,7 @@ def resource_urls(request):
False
),
THESAURI_FILTERS=[t['name'] for t in [settings.THESAURUS, ] if
t.get('filter')] if hasattr(settings, 'THESAURUS') else [thesaurus],
t.get('filter')] if hasattr(settings, 'THESAURUS') else [t.identifier for t in thesaurus],
MAP_CLIENT_USE_CROSS_ORIGIN_CREDENTIALS=getattr(
settings, 'MAP_CLIENT_USE_CROSS_ORIGIN_CREDENTIALS', False
),
Expand Down

0 comments on commit feb9c26

Please sign in to comment.