05-01-2012 05:55 AM
<config evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>
<!– Forms for the advanced search type list –>
<forms>
<!–
The 'form' config element contains the name of the model type
of the form to display.
The element supports the following optional attributes:
id = form id, the id of "search" will be assumed if not set
label = label text to display - defaults to model type if not set
labelId = I18N message id of label text to display
description = description text to display
descriptionId = I18N message id of description text to display
<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>
–>
<form label="Contract Document" description="Spectrum Contract Document">sp:contract</form>
</forms>
</advanced-search>
</config>
<!– Customisation to support contract metadata search
<config evaluator="model-type" condition="cm:content">
–>
<config evaluator="model-type" condition="sp:contract">
<forms>
<form id="search">
<field-visibility>
<show id="cm:name" />
<show id="cm:title" force="true" />
<show id="cm:description" force="true" />
<show id="sp:thirdParties" force="true" />
<show id="sp:location" force="true" />
<show id="sp:responsibleEmp" force="true" />
<show id="sp:contractRef" force="true" />
<show id="sp:logNumber" force="true" />
<show id="sp:effectiveDate" />
<show id="sp:expiryDate" />
</field-visibility>
<appearance>
<field id="sp:thirdParties" label-id="Third Parties" />
<field id="sp:location" label-id="Location" />
<field id="sp:responsibleEmp" label-id="Responsible Spectrum Employee" />
<field id="sp:contractRef" label-id="Internal Reference" />
<field id="sp:logNumber" label-id="Log Number" />
<field id="sp:effectiveDate" label-id="Effective Date">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="sp:expiryDate" label-id="Expiry Date">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
05-01-2012 06:01 AM
force="true"
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.