我正在使用Alfresco Enterprise 6.2。与实时搜索类似,我正在为文档库中的文件夹创建搜索动作。
我已经如下更新了custom-actions.js:
onActionSearch: function dla_onActionSearch(record){
window.open(Alfresco.constants.PAGECONTEXT +'dp/ws/faceted-search?', "_self");
}
我还在faceted-search.get.js
中添加了文件夹范围,如下所示。我已经对值folder1
进行了硬编码,以测试其是否有效:
scopeOptions.push({
id: "FCTSRCH_SET_FOLDER_SCOPE",
name: "alfresco/menus/AlfCheckableMenuItem",
config: {
label: "folder",
value: "folder1",
group: "SEARCHLIST_SCOPE",
publishTopic: "ALF_SEARCHLIST_SCOPE_SELECTION",
checked: false,
hashName: "scope",
publishPayload: {
label: "folder",
value: "folder1"
}
}
});
但是在执行搜索时,它不会考虑文件夹范围。相反,它将“ folder1”视为站点。如何在文件夹范围内正确执行搜索?
请检查下面的小部件,它始终将范围视为siteId。
https://dev.alfresco.com/resource/docs/aikau-jsdoc/AlfSearchList.js_.html