0

自定义共享项目结构


 /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>
4

1 回答 1

0

即使您应该将文件保存在与 Aikau 版本相同的文件夹顺序中。例如,

/custom-share/src/main/resources/META-INF/js/aikau/1.0.67.1/alfresco/documentlibrary/views/CustomSimpleView.js

在你的代码库中维护 aikau 的文件夹结构,让我们知道,它是怎么回事?

当您升级 aikau 版本时,您应该非常小心,并且您的代码库文件夹结构应该与 aikau 版本同步。

否则,您可以使用 ant 构建任务,从 build.properties 文件中读取 aikau 版本并发出您想要生成的所需文件夹结构。

于 2017-02-28T17:10:49.347 回答