opensearch.jsp revision 1186
812N/ASee LICENSE.txt included in this distribution for the specific
812N/Afile and include the License file at LICENSE.txt.
1186N/Ainclude file="pageconfig.jspf"
1186N/Ainclude file="projects.jspf"
1186N/A /* ---------------------- opensearch.jsp start --------------------- */
1186N/A cfg = PageConfig.get(request);
1186N/A int port = request.getServerPort();
1186N/A port = url.length(); // mark
1186N/A url.setLength(port); // rewind
1186N/A Set<String> projects = cfg.getRequestedProjects();
1186N/A text.append(name).append(',');
1186N/A Util.appendQuery(url, "project", name);
1186N/A if (text.length() != 0) {
812N/A<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
1186N/A <ShortName>OpenGrok <%= text.toString() %></ShortName>
1186N/A <Description>Search in OpenGrok <%= text.toString() %></Description>
1186N/A<%-- <Url type="application/x-suggestions+json" template="suggestionURL"/>--%>
1186N/A/* ---------------------- opensearch.jsp end --------------------- */