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