自定义共享项目结构
/custom-share/src/main/resources/META-INF/js/alfresco/services/SearchService.js
/custom-share/src/main/resources/META-INF/js/alfresco/menus/CustomBulkSearchMenu.js
/custom-share/src/main/resources/META-INF/js/alfresco/documentlibrary/views/CustomSimpleView.js
faceted-search.get.js
services.push("alfresco/services/NavigationService",
"alfresco/services/SearchService",
"alfresco/services/ActionService",
"alfresco/services/DocumentService",
"alfresco/dialogs/AlfDialogService",
"alfresco/services/CrudService",
"alfresco/services/NotificationService");
widgets.unshift(accessMenu);
widgets.push(main);
model.jsonModel = getFooterModel(services, widgets);
model.jsonModel.groupMemberships = user.properties["alfUserGroups"];
我已经覆盖了 SearchService.js 并在自定义共享项目中编写了一些自定义小部件文件以在多面搜索中进行更改,但是当我快速搜索时,它仍在查看 Aikau jar 中的文件并在日志中看到以下错误但没有查看自定义项目中编写的文件。我们使用的是 alfresco 5.1;
2017-02-28 02:03:03,734 ERROR [extensions.surf.DependencyAggregator] [http-bio-8081-exec-7] Could not find compressed file: js/aikau/1.0.67.1/alfresco/menus/CustomBulkSearchMenu.js
2017-02-28 02:03:04,179 ERROR [extensions.surf.DependencyAggregator]
[http-bio-8081-exec-7] Could not find compressed file:
js/aikau/1.0.67.1/alfresco/documentlibrary/views/CustomSimpleView.js
search-extensions.xml
*********************
<extension>
<modules>
<module>
<id>Search Enhancements</id>
<auto-deploy>true</auto-deploy>
<customizations>
<customization>
<targetPackageRoot>org.alfresco</targetPackageRoot>
<sourcePackageRoot>com.company.search</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>