ufal / lindat-kontext

An alternative web front-end for the Manatee corpus search engine
GNU General Public License v2.0
5 stars 1 forks source link

corplist: hide or grey-out unsused keywords, or show corpus count for each keyword #233

Open Ansa211 opened 5 years ago

Ansa211 commented 5 years ago

Currently, all keywords specified in the <keywords> part of corplist.xml are shown on the corplist page. It would be useful if only keywords that are actually used on some corpus would be shown, or if unused keywords were greyed out. This applies especially to staging instances, where it is useful to keep the whole set of keywords for reference but it is equally useful to keep only a subset of corpora on which one is working, e.g. https://lindat.mff.cuni.cz/services/kontext-staging/ansa/corpora/corplist (Afrikaans keyword is shown although it does not correspond to any corpus).

Screenshot from 2019-06-20 15-35-12

Alternatively, the issue could be addressed by giving the number of matching corpora for each keyword, as is done on the pml-tq corpus selection page http://lindat.mff.cuni.cz/services/pmltq/#!/treebanks

before


after