GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.43k stars 1.12k forks source link

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

Open samkraw opened 7 months ago

samkraw commented 7 months ago

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

giohappy commented 7 months ago

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.

ridoo commented 5 months ago

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?

giohappy commented 5 months ago

@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