Adding a way to avoid displaying nothing in facet for opac and client staff when using elasticsearch as SearchEngine. Test plan: 1) Do a search, like 'a' 2) Look in the bottom of the sidebar on the left and see that there is an empty language
Created attachment 141245 [details] [review] Bug 31668: Avoid displaying nothing in facet This patch displays 'No information provided' if a facet value/description cannot be found, rather than displaying an empty/hidden facet Test plan: 1) Do a search, like 'a' 2) Look in the bottom of the sidebar on the left and see that there is an empty language 3) Apply patch 4) Update database 5) Do the same research 6) See that there is now "No information provided" Signed-off-by: Alexis Ripetti <alexis.ripetti@inLibro.com>
At the moment I believe this is not fully functional. With this patch, we display a text, the count displays correctly, but when clicking on the link, we find 'all', as the empty search with ln: doesn't work right. There are a lot of reasons why a library might not have added language information, like dealing with old/migrated data. For the moment I prefer Nick's solution on bug 29561 that removes those empty facets from display - so they won't appear at all if empty. If I misunderstood something, please let me know!
Bug 29561 has been pushed and obsoletes this need, closing as duplicate *** This bug has been marked as a duplicate of bug 29561 ***