Bug #13299

Language facet: if unique records count matches count of only other language, language facet should not display

Added by Dan Gillean about 2 years ago. Updated about 2 years ago.

Status:VerifiedStart date:04/29/2020
Priority:MediumDue date:
Assignee:-% Done:


Category:Search / Browse
Target version:Release 2.6.0
Google Code Legacy ID: Tested version:2.5, 2.6
Sponsored:No Requires documentation:


Currently in our facet filters, if there is a filter with zero or only one facet, then the whole filter is hidden, since it is not useful to the end user to have nothing to facet against, or a single facet common to all the current results.

With the language facet, this doesn't happen because there is always a separate count of "Unique records," in addition to the current language of the available records (e.g. English) - so there are at least 2 facets always present in this facet filter, even in a monolingual site with all other cultures removed (via Admin > Settings > i18n languages) and the language menu hidden.

Some users have reported finding this confusing for their researchers, and they would prefer that the facet does not display unnecessarily. Given that it is not currently displaying useful data for monolingual sites (and given the 0 or 1 hiding behavior of other facets), I consider this a bug.

To reproduce

  • Purge your site
  • Log in and navigate to Admin > Settings > i18n languages and remove all languages except English
  • Import a dataset of English-only records
  • Navigate to Browse > Archival descriptions
Error encountered
  • The language facet filter displays, even though there is only one culture at use in the site
Expected outcome
  • When there is only one language in use, and the unique records count matches exactly the count of the language, the Languages facet filter should not display as it provides no useful function to the end user


#1 Updated by Dan Gillean about 2 years ago

  • Assignee set to Dan Gillean
  • Target version set to Release 2.6.0

#2 Updated by Dan Gillean about 2 years ago

  • Status changed from New to Code Review
  • Assignee changed from Dan Gillean to José Raddaoui Marín

#3 Updated by Dan Gillean about 2 years ago

  • Status changed from Code Review to Verified
  • Assignee deleted (José Raddaoui Marín)

Also available in: Atom PDF