$res = ""; foreach ($newtags as $atag) { $escapedName = str_replace("'", "'", $atag["tag_name"]); $res .= "<a href='javascript:void(0);' class='" . $atag["tag_class"] . "' title='" . $escapedName . "' onClick='setSearchCrit(\"" . $escapedName . "\");'>" . str_replace(" ", " ", $atag["tag_name"]) . "</a> "; } } if ($action == "gettext") { $id = getRequestParam("id"); $crit = getRequestParam("search_crit"); //$word_variations = (getRequestParam("search_word_variations") == "1"); $word_variations = true; $query_lang = getRequestParam("search_querylanguage"); $queryField = getQueryField($search_language_code); $debug = false; $solr->setDebug($debug); $response = $solr->getText($id, $crit, $queryField, $query_lang, $word_variations, $debug); if ($response->getHttpStatus() == 200) { $numFound = $response->response->numFound; $teasers = get_object_vars($response->highlighting); if ($numFound > 0) { foreach ($response->response->docs as $doc) { $res .= buildOneDocDisplay($doc, $teasers, $queryField); } if ($debug) { $res .= $response->getRawResponse(); } } else { if ($debug) { $res .= $response->getRawResponse(); } }