Currently on the home page, if you click on the country or language subtitles for the document, it actually executes a filter search for the country or language.
Note that this is currently non-inclusive.i.e. if you click on country you get the country filter listing, and if you clock on a language subtitle in any of the listings you get a brand new filter search filtered by language (but not filtered by country).
This needs to be incremental - click on country subtitle, you get a filtered listing by country ; then filter by any language subtitle it needs to retain the country filter and the language filter to it.
This should work in the following way:
Lets assume the user first clicked on the countries link and got filtered for countries, the filter in the URL param would look like:
{'countries':['tg']}
Next if the user clicks on the language link shown, the filter in the URL param changes to:
{"langs":["fra"]}
Instead what we want is an incremental applying of filters, so when the user clicks on the language link shown, the filter in the URL param should become:
This Issue originated from a comment: https://github.com/gawati/gawati-portal-ui/issues/37#issuecomment-372627033
Currently on the home page, if you click on the country or language subtitles for the document, it actually executes a filter search for the country or language.
Note that this is currently non-inclusive.i.e. if you click on country you get the country filter listing, and if you clock on a language subtitle in any of the listings you get a brand new filter search filtered by language (but not filtered by country).
This needs to be incremental - click on country subtitle, you get a filtered listing by country ; then filter by any language subtitle it needs to retain the country filter and the language filter to it.
This should work in the following way:
Lets assume the user first clicked on the countries link and got filtered for countries, the filter in the URL param would look like:
Instead what we want is an incremental applying of filters, so when the user clicks on the language link shown, the filter in the URL param should become: