-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to exclude one or more facet values from search results #4222
Comments
Maybe we can do something relatively "easy" like config.add_facet_field 'identifiers', label: 'Identifiers',
component: true,
query: {
has_orcids: { label: 'Has contributor ORCIDs',
fq: '+contributor_orcids_ssim:*' },
has_doi: { label: 'Has DOI', fq: '+doi_ssim:*' },
has_barcode: { label: 'Has barcode', fq: '+barcode_id_ssim:*' }
} see https://github.com/sul-dlss/argo/blob/main/app/controllers/catalog_controller.rb#L156-L163 OR We may be able to leverage Columbia's work. I think this may be part of their key: https://github.com/cul/clio-spectrum/blob/main/app/controllers/catalog_controller.rb#L260 I think we can do this in the URL (note the minus sign before the facet field name): https://argo-qa.stanford.edu/catalog?f[-collection_title_ssim][]=Arrowroot+Curry+Leaves |
From JCoyne:
|
I added a top 5 list of facets to the original description if it turns out it's more viable to enable this on a per-facet basis. |
@andrewjbtw @astridu I've started spiking on this in Blacklight, and I have an approach that has the baseline functionality working (for a very small sample size). I need technical feedback to make it scalable and palatable to the community, but once I get that, I'll want to turn to implementing the UI design so that I no longer need to manually hack the URL to drive this functionality. The UI design above looks great! I believe we need one additional design, namely for the little constraint buttons that render as you add more facets. So, for example: This example shows what the constraint buttons show when faceting for all docs that have English as a language and German as a language. How would this look when showing all docs that have English as a language EXCLUDING docs with German as a language? |
Yes, I can do that. Could I get it to you by 10/27, or do you need it sooner? |
@astridu No rush. 😄 Thank you! |
This is an update to #921
Users have requested the ability to exclude sets of search results based on facet values. The idea would be to:
Example limits:
See screenshot and link for the design, which includes an outline of how the interaction would work as a sequence of steps:
https://projects.invisionapp.com/share/B813BT2Q9MRH#/screens/474829031_exclude
Additional context
There are a few Blacklight installations with this functionality, though they have different UI implementations. For example, this search in Columbia's catalog shows a set of results where the format is "FOIA Document" and the subject is NOT "Clinton, Hillary Rodham". Note that the choice they made is to allow users to choose "IS" or "IS NOT" in the list of selected facets just above the search results. They do also show the "NOT" in the sidebar once it's selected but it doesn't look like it's possible to choose a NOT directly from the facet lists.
If this can only be done for certain facets
If this can only be enabled for certain facets, I would pick from these 5
The first three of those have essentially a fixed number of possible values, the other two are not similarly bounded.
The text was updated successfully, but these errors were encountered: