Configuration of Advanced Search in share

cancel
Showing results for 
Search instead for 
Did you mean: 
del007
Active Member II

Configuration of Advanced Search in share

Hello,

I would like to configure Advanced Search in share app (in share-config-custom.xml). I have some problems I can't solve. In our alfresco we have several custom types and aspects defined in amp files and also over Model Manager in share.

  • Types and aspects defined in amps contains "." in property id (for example sapSmiley FrustratedAPDoc.id). When I add this property to Advance Search, everythink looks good but search doesn't get any results. I find out in web browser address line that property is encoded like this: prop_sap_SAPDoc%23dot%23id. After replace %23dot%23 with "." (prop_sap_SAPDoc.id) in web browser address line documents are finded successfuly. Is it possible to config share to not replace "." in property ids?
  • Advance Search based on type properties defined in Model Manager works without any problems. But searching based on aspect property (defined in Model Manager) doesn't work for me. In this case Advance Search form even shows property id (web:webDocumentLanguageLangCode) instead of the defined property label ( "Language Code").
    asLangAsp.png
    Configuration in share-config-custom.xml (... /tomcat/shared/classes/alfresco/web-extension) contains:
        <config evaluator='string-compare' condition='AdvancedSearch'>
        	<advanced-search>
        		<forms>
        			<form id="webDocLangSearch" descriptionId="Search for webdocuments based on language aspect" labelId="WebDocument Lang aspect">web:webDocument</form>
        		</forms>
        	</advanced-search>
        </config>
        <form id="webDocLangSearch">
        	<field-visibility>
                	<show id="web:webDocumentLanguageLangCode" forse="true"/>
        	</field-visibility>
        	<appearance>
        		<field id="web:webDocumentLanguageLangCode">
        			<control template="/org/alfresco/components/form/controls/textfield.ftl" />
        		</field>
        	</appearance>
        </form>
    Is it possible to make advance search based on apect property defined over Model Manager in share? Is there necessary to use a different approach?
1 Reply
angelborroy
Alfresco Employee

Re: Configuration of Advanced Search in share