gbif / portal16

GBIF.org website
https://www.gbif.org
Apache License 2.0
24 stars 15 forks source link

positive and neagtive filtering #317

Open gbif-portal opened 7 years ago

gbif-portal commented 7 years ago

positive and neagtive filtering

I need to see all phytoplankton datasets, except those from PANGEA, as they are small and many. I open the Publisher filter and I want to check several boxes there. Or check all and then uncheck the one I want to exclude. Just like Google Tables filers work. Seems like it does not work this way yet?

Would be a nice function to keep when moving from the old portal http://www.gbif.org/dataset/search?q=phytoplankton&type=OCCURRENCE&publishing_org=3693ff90-4c16-11d8-b290-b8a03c50a862&publishing_org=5fa89f68-9af0-4a0d-8998-ea39695c1db9&publishing_org=0e0fc0f0-828e-11d8-b7ed-b8a03c50a862&publishing_org=44862593-2fdd-4491-ab79-b500b8272aac


fbitem-0059f96b33a12ae38a9a2449c0865b3a3cdfe76c Reported by: @dschigel System: Firefox 52.0.0 / Windows 10 0.0.0 Referer: https://demo.gbif.org/dataset/search?q=phytoplankton Window size: width 1536 - height 741 API log&_a=(columns:!(request,response,clientip),filters:!(),index:'prod-varnish-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E499%20AND%20(request:%22%2F%2Fapi.gbif.org%22)')),sort:!('@timestamp',desc))&indexPattern=uat-varnish-&type=histogram) Site log&_a=(columns:!(request,response,clientip),filters:!(),index:'prod-varnish-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E399%20AND%20(request:%22%2F%2Fdemo.gbif.org%22)')),sort:!('@timestamp',desc))&indexPattern=uat-varnish-&type=histogram)

MortenHofft commented 7 years ago

Hi @dschigel

Would be a nice function to keep when moving from the old portal

I don't see this functionality in the existing portal. Am I missing something?

I like the idea of selecting all and negating, but there isn't a good way to do it in the API. We have 1,186 publishers. adding an add all, and then unselect the ones you aren't interested in isn't really feasibly as far as I can see. Adding them individually will create a far too long query for the browser, and since negations aren't an option in the API there is no way to do it.

I try to do it whenever possible (e.g. basis of record) screen shot 2017-03-21 at 10 32 32

I could in theory try to add such an option, when other terms limit the available options to a small subset, but it won't always work then so it isn't an idea solution

MortenHofft commented 7 years ago

What priority do you think this should have?