gbv / bartoc.org

Source code of BARTOC.org user interface
https://bartoc.org/
23 stars 10 forks source link

Support boolean search combination of languages #193

Open nichtich opened 1 year ago

nichtich commented 1 year ago

By now JSKOS server backend combines multiple languages via boolean OR. There should be a way to combine them via AND.

Current workaround is to get query result (bottom right icon </>) and process with addition tool such as jq (also possible online at https://jqplay.org/). For instance all glossaries with English AND French:

curl 'https://bartoc.org/api/voc?type=http%3A%2F%2Fw3id.org%2Fnkos%2Fnkostype%23glossary' | jq '.[]|select(.languages|any(index("en")) and any(index("fr")))'