Alfresco共享高级搜索

Alfresco共享高级搜索,alfresco,advanced-search,Alfresco,Advanced Search,我有一些问题。我正在创建一个自定义模型ed:edocuments带有一个方面ed:zagdep它有一个属性ed:documentRegnum。 我正在自定义高级搜索表单并添加RegNum字段,但它不使用此字段搜索任何内容。 可能是什么?为什么搜索不起作用 我的模型代码ed model.xml(tomcat\shared\classes\alfresco\extension) 我的共享配置custom.xml(tomcat\shared\classes\alfresco\web扩展名) cm:内

我有一些问题。我正在创建一个自定义模型
ed:edocuments
带有一个方面
ed:zagdep
它有一个属性
ed:documentRegnum
。 我正在自定义高级搜索表单并添加RegNum字段,但它不使用此字段搜索任何内容。 可能是什么?为什么搜索不起作用

我的模型代码
ed model.xml
(tomcat\shared\classes\alfresco\extension)

我的
共享配置custom.xml
(tomcat\shared\classes\alfresco\web扩展名)


cm:内容
cm:文件夹

您只需在基于方面的属性上添加:
force=“true”
。请参见下面的代码

<show id="ed:documentRegnum" force="true" />

关于您安装Alfresco的一个问题,您是在谈论社区版(版本?)
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <!-- Registration of new models -->
    <bean id="extension.ed.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/ed-model.xml</value>
            </list>
        </property>
    </bean>
</beans>
<alfresco-config>
   <!-- Document Library config section -->
   <config evaluator="string-compare" condition="DocumentLibrary">
      <aspects>
         <!-- Aspects that a user can see -->
         <visible>
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="kb:referencable" />
            <aspect name="ed:zagdep" />
         </visible>
         <!-- Aspects that a user can add. Same as "visible" if left empty -->
         <addable>
         </addable>
         <!-- Aspects that a user can remove. Same as "visible" if left empty -->
         <removeable>
         </removeable>
      </aspects>
   </config>

   <!-- cm:content type (existing nodes) -->
   <config  evaluator="node-type" condition="cm:content">
      <forms>
         <!-- Default form configuration used on the document details and edit metadata pages -->
         <form>         
            <field-visibility>              
               <show id="ed:documentRegnum" />               
            </field-visibility>
         </form>
         <!-- Document Library pop-up Edit Metadata form -->
         <form id="doclib-simple-metadata">
            <field-visibility>               
               <show id="ed:documentRegnum" />                
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
         </form>
         <!-- Document Library Inline Edit form -->
         <form id="doclib-inline-edit">
            <field-visibility>    
               <show id="ed:documentRegnum" />               
            </field-visibility>
         </form>
      </forms>
   </config>
    <!-- Advanced search -->
    <config replace="true" evaluator="string-compare" condition="AdvancedSearch">
        <advanced-search>
            <!-- Forms for the advanced search type list -->
            <forms>
                <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
                <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form> 
            </forms>
        </advanced-search>
    </config>   
    <config evaluator="model-type" condition="cm:content">
    <forms>
        <!-- Search form -->
        <form id="search">
            <field-visibility>
                <show id="cm:name" />
                <show id="cm:title" force="true" />
                <show id="cm:description" force="true" />               
                <!-- ed:edocuments -->  
                <show id="ed:documentRegnum" />                
            </field-visibility>
            <appearance>
                <!-- ed:edocuments -->
                <field id="ed:documentRegnum" label-id="prop.ed_documentRegnum">
                    <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                </field>                
            </appearance>
        </form>
    </forms>
</config>
</alfresco-config>
<show id="ed:documentRegnum" force="true" />