03-19-2015 10:19 AM
_buildSearchParams: function Search__buildSearchParams(searchRepository, searchAllSites, searchTerm, searchTag, searchSort, page)
{
var site = searchAllSites ? "" : this.options.siteId;
// var params = YAHOO.lang.substitute("site={site}&term={term}&tag={tag}&maxResults={maxResults}&sort={sort}&query={query}&repo={repo}&rootNode={rootNode}&pageSize={pageSize}&startIndex={startIndex}",
// remove &repo parameter
var params = YAHOO.lang.substitute("site={site}&term={term}&tag={tag}&maxResults={maxResults}&sort={sort}&query={query}&rootNode={rootNode}&pageSize={pageSize}&startIndex={startIndex}",
{
site: encodeURIComponent(site),
// repo: searchRepository.toString(),
term: encodeURIComponent(searchTerm),
tag: encodeURIComponent(searchTag),
sort: encodeURIComponent(searchSort),
query: encodeURIComponent(this.options.searchQuery),
rootNode: encodeURIComponent(this.options.searchRootNode),
maxResults: this.options.maxSearchResults + 1, // to calculate whether more results were available
pageSize: this.options.pageSize,
startIndex: (page - 1) * this.options.pageSize
});
return params;
},
03-19-2015 10:48 AM
repo: searchRepository.toString(),
repo: "",
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.