Skip to content

Commit

Permalink
[Fixes #12501] Localized TKeywords are not properly parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed Aug 16, 2024
1 parent 3676baf commit 9235048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions geonode/resource/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def handle_metadata_keywords(self):
@staticmethod
def is_thesaurus_available(thesaurus, keyword):
is_available = ThesaurusKeyword.objects.filter(alt_label=keyword).filter(thesaurus__title=thesaurus["title"])
is_available = is_available or ThesaurusKeyword.objects.filter(keyword__label=keyword).filter(
thesaurus__title=thesaurus["title"]
)
return is_available

def _set_free_keyword(self, keywords):
Expand Down

0 comments on commit 9235048

Please sign in to comment.