geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Tree for hierarchical keywords does not appear in the faceted search or when editing resource metadata

Open samkraw opened this issue 1 year ago • 3 comments

Expected Behavior

After adding hierarchies to keywords using the Hierarchical keyword section in the Admin panel, a tree representing the hierarchy is visible in the keyword filtering facet as well as when assigning keywords to a resource.

Actual Behavior

The hierarchy tree is not visible, keywords appear as a regular list.

Steps to Reproduce the Problem

  1. Create keywords in the hierarchical keyword section of the Admin panel
  2. assign one to be the child of another
  3. open the keyword filter dropdown to select a keyword

Specifications

  • GeoNode version: 4.2.x
  • Installation type (vanilla, geonode-project): vanilla
  • Installation method (manual, docker): docker
  • Platform: Ubuntu LTS
  • Additional details: hierarchical_keyword_tree_not_visible

samkraw avatar Jan 25 '24 04:01 samkraw

This is how the filter always behaved in GeoNode. A hierarchical view would need a dedicated widget and require a more advanced API. Keep in mind that there are plans to drop the hierarchical model for keywords, or at least a deep review of it since the way it is now causes problems with batch update routines, performance / indexing, etc.

giohappy avatar Feb 08 '24 13:02 giohappy

Keep in mind that there are plans to drop the hierarchical model for keywords

@giohappy do you have more details on that? Would this somehow affect terms/keywords from an uploaded thesaurus?

ridoo avatar Apr 02 '24 11:04 ridoo

@giohappy do you have more details on that? Would this somehow affect terms/keywords from an uploaded thesaurus?

@ridoo thesaurus uses a different model (ThesaurusKeyword). Here I was referring to HierarchicalKeyword

giohappy avatar Apr 04 '24 08:04 giohappy