/** * Called right before a new search is executed. The BrowseEngine instance is passed as the first parameter (refine-able searches are * encapsulated in BrowseEngine objects.. You can use it to modify the search before it is executed. * * @param BrowseEngine $po_search * @return void */ protected function hookBeforeNewSearch($po_search) { // // ADD "curatorial_selection" CRITERIA // $t_list = new ca_lists(); $vn_curatorial_selection_id = $t_list->getItemIDFromList('curatorial_selection2', 'NYWF'); $po_search->setFacetGroup("nywf"); $po_search->addCriteria('curatorial_selection_facet', array($vn_curatorial_selection_id)); }