public function handleLiterature(&$data, $searchName) { require_once 'ServiceUtil.php'; $util = new ServiceUtil(); $result = $util->expandTerm($searchName); $terms = $util->parseExpandedTerm($result, $searchName); $litResult = $util->searchLiteratureByYearUsingSolr($terms, 0, 25000000, "year", "*"); $litMap = $util->processLiteratureObj($litResult); //var_dump($litMap); $data['litMap'] = $litMap; $count = count($litMap); $data['count'] = $count; $data['page_title'] = "Literature:" . str_replace("%20", " ", $searchName); $data['enable_config'] = true; }