Filters: how to exclude categories without records?

marcelf

Member
Hi all,

Im using the filters Subject and City in a list.

What I need is: If I select a filter in Subject, and the list retrieve the records, this list should update the cities filter, showing only the cities that has a record considering the subject filter.

I've test and it still showing all cities (that has at least one relation) but dont consider the actual selections in the others filters.

Do you if there is a way to change this behavior and the show categories in the filters that has a relation with all restrictions selected?

The image below shows the desired behavior:
http://dspace.mit.edu/discoverupdate-filters.png
Is it possible or how to implement this?

Thanks,
Marcel
 
The only way that would work for filters is if Cities was a CDD (cascading dropdown) observing Subject as the "watched" element.

-- hugh
 
But to use cascading dropdown you need a specific data model. It should apply for all filters types.

Reduce filter options after each click is a common feature in eCommerce sites or digital repositories.

Maybe could be possible to use the filters stored in the session, including it in the query of other filters, and updating all after each query done by the user, or any suggestions?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top