Skip to content

Commit

Permalink
Don't show facets where all results match: No information gain.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Oct 28, 2011
1 parent c11c332 commit ddc7c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IslandoraSolrResults.inc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class IslandoraSolrResults {
'!name' => replaceSlashes($name)
));

$disable_link = (array_search($filter, $fq) !== FALSE);
$disable_link = (array_search($filter, $fq) !== FALSE) || $number == $solrQueryProcessor->solrResult->response->numFound;

//$disable_link = strpos($islandora_fq, $key . ':"' . . '"') !== FALSE; //we don't want a link for this facet as we already used it
if ($islandora_fq && $islandora_fq != '-') {//there are existing facets in the query
Expand Down

0 comments on commit ddc7c79

Please sign in to comment.