Each <meta-data> element adds a single property to the Advanced Search screen. They are added in the order as defined in the config file.
The <type> attribute is the model type containing the property and the <property> attribute specifies the property to use. The display label for the property will also be taken from the repository model definiton.
Instead of <type> it is also possible to specify an aspect containing the property instead, for example:
The UI will render the appropriate control for the type of the property as defined in the Data Dictionary. The following property types with associated rendered components are currently supported:
d:text - Text field
d:boolean - Checkbox
d:noderef - Space Selector
d:category - Category Selector
d:datetime - Date Time range selectors
d:date - Date range selectors
d:int - Text field
d:long - Text field
d:double - Text field
d:float - Text field
The UI will also render the appropriate label from the data-dictionary. A display-label-id attribute is also available, this can be used to set an I18N message Id to use instead of the data-dictionary label.
In Alfresco 2.1 list-of-values constraint bound properties are supported and will display as a drop-down list of values for selection.
Alfresco ships with an example web client configuration file which contains a section showing how to enable the SOP type defined in the Data Dictionary Guide for searching. This file is called web-client-config-custom.xml.sample and can be found in /tomcat/shared/classes/alfresco/extension if you are using the Tomcat bundle or /jboss/server/default/conf/alfresco/extension if you are using the JBoss bundle.
If the example model is enabled rename the sample web client config file to web-client-config-custom.xml and uncomment the following section.