- Allow addition of Alfresco OpenSearch to browser just by going to Alfresco Web Client.

- Remove obsolete /services/index.html page

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5934 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2007-06-13 14:29:38 +00:00
parent 93e6410090
commit 6bdd49ffc7
3 changed files with 5 additions and 23 deletions

View File

@@ -137,6 +137,7 @@
<props>
<prop key="atom">text/xml</prop>
<prop key="rss">text/xml</prop>
<prop key="opensearchdescription">text/xml</prop>
</props>
</property>
</bean>

View File

@@ -126,6 +126,7 @@ public class PageTag extends TagSupport
try
{
String reqPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
Writer out = pageContext.getOut();
if (Application.inPortalServer() == false)
@@ -143,12 +144,12 @@ public class PageTag extends TagSupport
{
out.write("Alfresco Web Client");
}
out.write("</title></head>");
out.write("</title>");
out.write("<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"" + reqPath + "/wcservice/api/search/keyword/description.xml\" title=\"Alfresco Keyword Search\"/>");
out.write("</head>");
out.write("<body>\n");
}
String reqPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
// CSS style includes
out.write(STYLES_START);
out.write(reqPath);

View File

@@ -1,20 +0,0 @@
<html>
<head>
<title>Alfresco Web Services API (REST style)</title>
<link rel="search" type="application/opensearchdescription+xml" title="Alfresco Text Search" href="/alfresco/service/search/textsearchdescription.xml">
</head>
<body>
<h1>Alfresco Web Services API (REST style)</h2>
<a href="/alfresco/service/search/textsearchdescription.xml">Alfresco Text Search (OpenSearch description)</a>
<br>
<br>
<ul>
<li><a href="/alfresco/service/search/text?q=alfresco tutorial&format=atom">Search for 'alfresco tutorial' (ATOM response)</a></li>
<li><a href="/alfresco/service/search/text?q=alfresco tutorial&format=xml">Search for 'alfresco tutorial' (XML response)</a></li>
<li><a href="/alfresco/service/search/text?q=alfresco tutorial">Search for 'alfresco tutorial' (HTML response)</a></li>
<ul>
</body>
</html>