Exemplo n.º 1
0
 /**
  * Get information on the current state of the boolean checkbox facets.
  *
  * @return array
  */
 public function getCheckboxFacets()
 {
     // Grab checkbox facet details using the standard method:
     $facets = parent::getCheckboxFacets();
     // Special case -- if we have a "holdings only" or "expand query" facet,
     // we want this to always appear, even on the "no results" screen, since
     // setting this facet actually EXPANDS rather than reduces the result set.
     if (isset($facets['holdingsOnly'])) {
         $facets['holdingsOnly']['alwaysVisible'] = true;
     }
     if (isset($facets['queryExpansion'])) {
         $facets['queryExpansion']['alwaysVisible'] = true;
     }
     // Return modified list:
     return $facets;
 }