mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- 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:
@@ -137,6 +137,7 @@
|
|||||||
<props>
|
<props>
|
||||||
<prop key="atom">text/xml</prop>
|
<prop key="atom">text/xml</prop>
|
||||||
<prop key="rss">text/xml</prop>
|
<prop key="rss">text/xml</prop>
|
||||||
|
<prop key="opensearchdescription">text/xml</prop>
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
@@ -126,6 +126,7 @@ public class PageTag extends TagSupport
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
String reqPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
|
||||||
Writer out = pageContext.getOut();
|
Writer out = pageContext.getOut();
|
||||||
|
|
||||||
if (Application.inPortalServer() == false)
|
if (Application.inPortalServer() == false)
|
||||||
@@ -143,12 +144,12 @@ public class PageTag extends TagSupport
|
|||||||
{
|
{
|
||||||
out.write("Alfresco Web Client");
|
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");
|
out.write("<body>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
String reqPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
|
|
||||||
|
|
||||||
// CSS style includes
|
// CSS style includes
|
||||||
out.write(STYLES_START);
|
out.write(STYLES_START);
|
||||||
out.write(reqPath);
|
out.write(reqPath);
|
||||||
|
@@ -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>
|
|
Reference in New Issue
Block a user