mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
apiPath to servicePath rename completion.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4603 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -310,17 +310,17 @@ public class TextSearchService implements APIService
|
||||
" <opensearch:startIndex>${search.startIndex}</opensearch:startIndex>\n" +
|
||||
" <opensearch:itemsPerPage>${search.itemsPerPage}</opensearch:itemsPerPage>\n" +
|
||||
" <opensearch:Query role=\"request\" searchTerms=\"${search.searchTerms}\" startPage=\"${search.startPage}\"/>\n" +
|
||||
" <link rel=\"alternate\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage}&format=html\" type=\"text/html\"/>\n" +
|
||||
" <link rel=\"self\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"first\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=1&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"alternate\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage}&format=html\" type=\"text/html\"/>\n" +
|
||||
" <link rel=\"self\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"first\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=1&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
"<#if search.startPage > 1>" +
|
||||
" <link rel=\"previous\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage - 1}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"previous\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage - 1}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
"</#if>" +
|
||||
"<#if search.startPage < search.totalPages>" +
|
||||
" <link rel=\"next\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage + 1}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"next\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage + 1}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
"</#if>" +
|
||||
" <link rel=\"last\" href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.totalPages}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"${request.apiPath}/search/text/textsearchdescription.xml\"/>\n" +
|
||||
" <link rel=\"last\" href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.totalPages}&format=atom\" type=\"application/atom+xml\"/>\n" +
|
||||
" <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"${request.servicePath}/search/text/textsearchdescription.xml\"/>\n" +
|
||||
"<#list search.results as row>" +
|
||||
" <entry>\n" +
|
||||
" <title>${row.name}</title>\n" +
|
||||
@@ -339,7 +339,7 @@ public class TextSearchService implements APIService
|
||||
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" +
|
||||
" <head profile=\"http://a9.com/-/spec/opensearch/1.1/\">\n" +
|
||||
" <title>Alfresco Text Search: ${search.searchTerms}</title>\n" +
|
||||
" <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"${request.apiPath}/search/text/textsearchdescription.xml\" title=\"Alfresco Text Search\"/>\n" +
|
||||
" <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"${request.servicePath}/search/text/textsearchdescription.xml\" title=\"Alfresco Text Search\"/>\n" +
|
||||
" <meta name=\"totalResults\" content=\"${search.totalResults}\"/>\n" +
|
||||
" <meta name=\"startIndex\" content=\"${search.startIndex}\"/>\n" +
|
||||
" <meta name=\"itemsPerPage\" content=\"${search.itemsPerPage}\"/>\n" +
|
||||
@@ -359,15 +359,15 @@ public class TextSearchService implements APIService
|
||||
" </li>\n" +
|
||||
"</#list>" +
|
||||
" </ul>\n" +
|
||||
" <a href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=1\">first</a>" +
|
||||
" <a href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=1\">first</a>" +
|
||||
"<#if search.startPage > 1>" +
|
||||
" <a href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage - 1}\">previous</a>" +
|
||||
" <a href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage - 1}\">previous</a>" +
|
||||
"</#if>" +
|
||||
" <a href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage}\">${search.startPage}</a>" +
|
||||
" <a href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage}\">${search.startPage}</a>" +
|
||||
"<#if search.startPage < search.totalPages>" +
|
||||
" <a href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.startPage + 1}\">next</a>" +
|
||||
" <a href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.startPage + 1}\">next</a>" +
|
||||
"</#if>" +
|
||||
" <a href=\"${request.apiPath}/search/text?q=${search.searchTerms}&p=${search.totalPages}\">last</a>" +
|
||||
" <a href=\"${request.servicePath}/search/text?q=${search.searchTerms}&p=${search.totalPages}\">last</a>" +
|
||||
" </body>\n" +
|
||||
"</html>\n";
|
||||
|
||||
@@ -425,7 +425,7 @@ public class TextSearchService implements APIService
|
||||
|
||||
Map<String, Object> searchModel = new HashMap<String, Object>(7, 1.0f);
|
||||
Map<String, Object> request = new HashMap<String, Object>();
|
||||
request.put("apiPath", "http://localhost:8080/alfresco/service");
|
||||
request.put("servicePath", "http://localhost:8080/alfresco/service");
|
||||
request.put("path", "http://localhost:8080/alfresco");
|
||||
searchModel.put("request", request);
|
||||
searchModel.put("search", result);
|
||||
|
Reference in New Issue
Block a user