Problem/Motivation
The detail page of the Category taxonomy lists related events, locations, artists, and others. But it doesn't take into account that there is a term hierarchy. So entities linked with a subcategory aren't shown.
Steps to reproduce
- Install OpenCulturas with default content
- Create a few events(, locations, artists, …) and assign them to the category Rock and pop music, which is a subcategory of Music.
- Open the detail page for the Music category (/en/categories/music)
Expected result
All entities created in step 2 will be shown.
Actual result
No entities are shown, because they are releated to a subcategory.
Proposed resolution
Use a hierarchy context filter with a depth of 1.
Remaining tasks
Write patch
- Review
- Commit
Comments
Comment #3
mrshowermanComment #4
hexabinaerMakes sense, absolutely! I reviewed the diff and opt for a merge.
Comment #6
tobiasbMerged into 2.1.x.
Comment #7
mrshowermanComment #9
hexabinaerFor the record:
For the initial version we had discussed both variations: results tagged with current term including/excluding child terms. There are arguments for both because it depends on how hierarchical tags are used. For example, when music events are always tagged with music and the suitable child term, the difference in drilling down would be "discovery" vs. "filtering".
I am changing the category to feature request just for the sake of respecting both scenarios as valid. Whoever finds this may get an idea of where to make changes for the "excluding child terms" scenario.