Search Knowledge from IE
To discuss or ask questions about this article, select the discussion tab above.
Overview
This article provides instructions on how to add Knowledge searching directly from IE.
Procedures
Step 1. Create zKT_Search.html form
Create a new form called zKT_Search.html using the syntax below, and place in the the site\mods\www\wwwroot\html directory. <source lang="text"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>McGladrey IT Service Desk Solution</title>
<SCRIPT language=JAVASCRIPT> // The URLs coming from IE8 Search Provider will look like: // http://SERVERNAMEorIP/CAisd/sitemods/html/zKT_Search.html?word1+word2+word3 // // This file will extract the search terms, replace the + with %20, and redirect with the proper URL.
var url_string = String(document.location); var url_array = url_string.split('?'); var strReplaceAll = url_array[1]; var intIndexOfMatch = strReplaceAll.indexOf( "+" ); while (intIndexOfMatch != -1){ strReplaceAll = strReplaceAll.replace( "+", "%20" ) intIndexOfMatch = strReplaceAll.indexOf( "+" ); } // Replace SERVERNAMEorIP with attributes from your environment var url_server = "http://SERVERNAMEorIP/CAisd/pdmweb.exe"; var url_str_pt1 = "?OP=SEARCH+FACTORY=KD+QBE.IN.ebr_search_text="; var url_str_pt2 = "+QBE.EQ.ebr_search_type=KEYWORDS+QBE.EQ.ebr_match_type=ANY+DOMSET=KD_list_ebr_RELEVANCE"; var new_url = url_server + url_str_pt1 + strReplaceAll + url_str_pt2; window.location = new_url; </SCRIPT> </head> <body> </body> </html> </source>
Step 1. Create a reg file
Create a new form .reg file using the syntax below. Be sure to replace SERVERNAMEorIP with attributes from your own environment. <source lang="text"> Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\CASDM Solutions] "DisplayName"="Service Desk Solutions" "URL"="http://SERVERNAMEorIP/CAisd/sitemods/html/zKT_Search.html?{searchTerms}" "FaviconURL"="http://SERVERNAMEorIP/CAisd/sitemods/img/ServiceDeskIcon.ico" "FaviconURLFallback"="http://SERVERNAMEorIP/CAisd/sitemods/img/ServiceDeskIcon.ico" </source> The .reg file can be used to add the IE Search Provider plug-in. If you do not have an icon to reference, then simply removed the FaviconURL and FaviconURLFallback entries.