Removed reference to site store and updated path clauses in the Lucene queries. Fixed component definitions to work with the latest build.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Simon Buckle
2008-07-11 09:25:13 +00:00
parent 08d74f082d
commit cd93a049c3
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ function getUserEvents(user, range)
var site = availableSites[j];
if (site.isMember(user))
{
paths.push("PATH:\"/cm:sites/cm:" + site.shortName + "/cm:calendar/*\"");
paths.push("PATH:\"/app:company_home/st:sites/cm:" + site.shortName + "/cm:calendar/*\"");
}
}
@@ -52,7 +52,7 @@ function getUserEvents(user, range)
var dateClause = " +@ia\\:fromDate:[" + from + "T00:00:00 TO 2032\\-1\\-1T00:00:00]";
luceneQuery += dateClause;
}
results = search.luceneSearch("workspace://SiteStore", luceneQuery, "ia:fromDate", true);
results = search.luceneSearch(luceneQuery, "ia:fromDate", true);
}
return results;

View File

@@ -34,7 +34,7 @@ function getWikiPages(siteId)
}
var pages = [];
var wikiPages = search.luceneSearch("workspace://SiteStore", query);
var wikiPages = search.luceneSearch(query);
var page;
for (var i=0; i < wikiPages.length; i++)