cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box in metadata

sharifu
Confirmed Champ
Confirmed Champ
I am trying to add combo box to my location field in the metadata. it does not work.

SpectrumModel.xml

<?xml version="1.0" encoding="UTF-8"?>

<!– Custom Model –>

<!– Note: This model is pre-configured to load at startup of the Repository.
   So, all custom –>
<!– types and aspects added here will automatically be registered –>

<model name="sp:spectrummodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Spectrum Custom Model</description>
   <author></author>
   <version>1.0</version>

   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0"
         prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>

   <namespaces>
      <!– Define a Namespace for my new definitions –>
      <namespace uri="sp.new.model" prefix="sp" />
   </namespaces>
<!–
   <constraint name="sp:allowedLocation" type="LIST">
      <parameter name="allowedValues">
         <list>
            <value>ABC</value>
            <value>DEF</value>
         </list>
      </parameter>
      <parameter name="caseSensitive">
         <value>true</value>
      </parameter>
   </constraint>
–>
   <!– Type and Aspect definitions go here –>
   <types>
      <type name="sp:contract">
         <title>Spectrum Contract Document</title>
         <parent>cm:content</parent>
         <!– <properties> <property name="sp:thirdParties"> <title>Third Parties</title>
            <type>d:text</type> </property> <property name="sp:location"> <title>Location</title>
            <type>d:text</type> </property> <property name="sp:responsibleEmp"> <title>Resposible
            Employee</title> <type>d:text</type> </property> <property name="sp:effectiveDate">
            <title>Effective Date</title> <type>d:date</type> </property> <property name="sp:expiryDate">
            <title>Expiry Date</title> <type>d:date</type> </property> </properties> –>
      </type>
   <!–
      <type name="sp:contractFields">
         <title>Contract Meta Data</title>
         <parent>cm:content</parent>
         <property name="sp:location">
            <title>Location</title>
            <type>d:text</type>
            <constraints>
               <constraint ref="sp:allowedLocation" />
            </constraints>
         </property>
      </type>
       –>
   </types>

   <aspects>
      <aspect name="sp:contractFields">
         <title>Contract Meta Data</title>
         <parent>cm:content</parent>
         <properties>
            <property name="sp:thirdParties">
               <title>Third Parties</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:location">
               <title>Location</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:responsibleEmp">
               <title>Responsible Spectrum Employee</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:contractRef">
               <title>Internal Reference</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:logNumber">
               <title>Log Number</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:effectiveDate">
               <title>Effective Date</title>
               <type>d:date</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:expiryDate">
               <title>Expiry Date</title>
               <type>d:date</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>


web-client-config-custom.xml

<alfresco-config>

   <!– Example of overriding the from email address –>
   <!–
   <config>
      <client>
         <from-email-address>someone@your-domain.com</from-email-address>
         <search-max-results>100</search-max-results>
      </client>
   </config>
   –>

   <!– Example of adding languages to the list in the login page –>
   <!–
   <config evaluator="string-compare" condition="Languages">
      <languages>
         <language locale="ca_ES">Catalan</language>
         <language locale="hr_HR">Croatian</language>
         <language locale="cs_CZ">Czech</language>
         <language locale="da_DK">Danish</language>
         <language locale="de_DE">German</language>
         <language locale="es_ES">Spanish</language>
         <language locale="el_GR">Greek</language>
         <language locale="fi_FI">Finnish</language>
         <language locale="fr_FR">French</language>
         <language locale="it_IT">Italian</language>
         <language locale="ja_JP">Japanese</language>
         <language locale="du_NL">Dutch</language>
         <language locale="pl_PL">Polish</language>
         <language locale="pt_PT">Portuguese</language>
         <language locale="pt_BR">Portuguese (Brazilian)</language>
         <language locale="ru_RU">Russian</language>
         <language locale="sv_SV">Swedish</language>
         <language locale="tr_TR">Turkish</language>
         <language locale="zh_CN">Simplified Chinese</language>
      </languages>
   </config>
   –>
  
   <!– Example of configuring advanced search –>
   <!–
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
         </content-types>
         <custom-properties>
            <meta-data aspect="app:simpleworkflow" property="app:approveStep" />
         </custom-properties>
      </advanced-search>
   </config>
   –>

   <!– Example of changing the sort direction for a view in the client –>
   <!–
   <config evaluator="string-compare" condition="Views">
      <views>
         <view-defaults>
            <topic>
               <sort-direction>ascending</sort-direction>
            </topic>
         </view-defaults>
      </views>
   </config>
   –>

   <!– Example of adding a custom icon to the Create Space dialog –>
   <!–
   <config evaluator="string-compare" condition="cm:folder icons">
      <icons>
         <icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
      </icons>
   </config>
   –>

   <!– The config below shows how to incorporate the example model–>
   <!– into the web client, for this to work you will need to –>
   <!– rename example-model-context.xml.sample to example-model-context.xml –>
   <!–
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="my:sop" />
      </content-types>
   </config>

   <config evaluator="node-type" condition="my:sop">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="false" />              
         <show-property name="my:publishedDate" />
         <show-association name="my:signOff" />
         <show-property name="my:authorisedBy" />
         <show-child-association name="my:processSteps" />
      </property-sheet>
   </config>

   <config evaluator="aspect-name" condition="my:imageClassification">
      <property-sheet>
         <show-property name="my:width"/>
         <show-property name="my:height"/>
         <show-property name="my:resolution"/>
      </property-sheet>
   </config>

   <config evaluator="aspect-name" condition="cm:storeSelector">
      <property-sheet>
         <show-property name="cm:storeName" />
      </property-sheet>
   </config>
   <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="cm:storeSelector"/>
      </aspects>
   </config>

   <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="my:imageClassification"/>
      </aspects>
   </config>

   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="my:sop" />
         </content-types>
         <custom-properties>
            <meta-data type="my:sop" property="my:authorisedBy" />
            <meta-data aspect="my:imageClassification" property="my:resolution" />
         </custom-properties>
      </advanced-search>
   </config>
   –>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="sp:contract" />
      </content-types>
   </config>

   <config evaluator="string-compare" condition="Action Wizards">
      <!– The list of types shown in the is-subtype condition
      –>
      <subtypes>
         <type name="sp:contract"/>
      </subtypes>

      <!– The list of content and/or folder types shown in the specialise-type action –>
      <specialise-types>
         <type name="sp:contract" display-label="Spectrum Contract"/>
      </specialise-types>

      <!– The list of aspects to show in the add/remove features action –>
      <!– and the has-aspect condition –>
      <aspects>
         <aspect name="sp:contractFields"/>
         <aspect name="generalclassifiable"/>
         <aspect name="complianceable"/>
         <aspect name="dublincore"/>
         <aspect name="effectivity"/>
         <aspect name="summarizable"/>
         <aspect name="versionable"/>
         <aspect name="templatable"/>
         <aspect name="emailed"/>
         <aspect name="emailserver:aliasable"/>
         <aspect name="taggable"/>
      </aspects>
   </config>

   <config evaluator="aspect-name" condition="sp:contractFields">
      <property-sheet>
         <show-property name="sp:thirdParties" display-label="Third Parties"/>
         <show-property name="sp:location" display-label="Location"/>
         <show-property name="sp:responsibleEmp" display-label="Responsible Spectrum Employee"/>
         <show-property name="sp:contractRef" display-label="Internal Reference"/>
         <show-property name="sp:logNumber" display-label="Log Number"/>
         <show-property name="sp:effectiveDate" display-label="Effective Date"/>
         <show-property name="sp:expiryDate" display-label="Expiry Date"/>
      </property-sheet>
   </config>



</alfresco-config>



custom-model-context.xml


<?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.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/SpectrumModel.xml</value>
            </list>
        </property>
    </bean>
         
</beans>




I am using v 3.4d, can anyone help?

I have tried following the following articles but it has not help. what am I doing wrong?

http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_by_Step_Model_Definition
http://wiki.alfresco.com/wiki/Constraints
2 REPLIES 2

sharifu
Confirmed Champ
Confirmed Champ
I have noticed the constraint name will have to be the same as the property name for it to work, which is not mentioned in any examples


<?xml version="1.0" encoding="UTF-8"?>

<!– Custom Model –>

<!– Note: This model is pre-configured to load at startup of the Repository.
   So, all custom –>
<!– types and aspects added here will automatically be registered –>

<model name="sp:spectrummodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Spectrum Custom Model</description>
   <author></author>
   <version>1.0</version>

   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0"
         prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>

   <namespaces>
      <!– Define a Namespace for my new definitions –>
      <namespace uri="sp.model" prefix="sp" />
   </namespaces>

   <constraints>
      <constraint name="sp:location" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>Draft</value>
               <value>In Review</value>
               <value>Approved</value>
            </list>
         </parameter>
      </constraint>
   </constraints>

   <!– Type and Aspect definitions go here –>
   <types>
      <type name="sp:contract">
         <title>Spectrum Contract Document</title>
         <parent>cm:content</parent>
      </type>
   </types>

   <aspects>
      <aspect name="sp:contractFields">
         <title>Contract Meta Data</title>
         <parent>cm:content</parent>
         <properties>
            <property name="sp:thirdParties">
               <title>Third Parties</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:location">
               <title>Location</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
               <constraints>
                  <constraint ref="sp:location" />
               </constraints>
            </property>
            <property name="sp:responsibleEmp">
               <title>Responsible Spectrum Employee</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:contractRef">
               <title>Internal Reference</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:logNumber">
               <title>Log Number</title>
               <type>d:text</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:effectiveDate">
               <title>Effective Date</title>
               <type>d:date</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
            <property name="sp:expiryDate">
               <title>Expiry Date</title>
               <type>d:date</type>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>

srowsell
Champ in-the-making
Champ in-the-making
I know that this is about a year old, but I'm having almost exactly the same problem, and this doesn't quite solve it.

Here's what I'm trying to do:  set up a content type with one of its properties constrained to a few values.  When I search for or edit this property, I want to be able to select from a dropdown box.

Here is my model so far:


<?xml version="1.0" encoding="UTF-8"?>
<model name="contract:contentmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description>DUCA Contracts Model</description>
   <author>Steve Rowsell</author>
   <version>1.0</version>
   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
   </imports>
   <namespaces>
      <namespace uri="duca.contracts.model" prefix="contract" />
   </namespaces>
  
   <constraints>
     <constraint name="contract:suppTypes" type="LIST">
       <parameter name="allowedValues">
          <list>
             <value>Addendum</value>
             <value>Fees</value>
             <value>SLA</value>
             <value>Schedule</value>
             <value>Other</value>
          </list>
       </parameter>
     </constraint>
    <constraint name="contract:departmentName" type="LIST">
       <parameter name="allowedValues">
          <list>
             <value>Accounting</value>
             <value>Audit</value>
             <value>Credit Administration</value>
             <value>Credit Management</value>
             <value>Deposits</value>
          <value>Facilities</value>
          <value>Human Resources</value>
             <value>Investment Solutions</value>
             <value>IT</value>
             <value>Marketing</value>
             <value>Operations</value>
          <value>Property Leases</value>
          <value>Sales &amp; Service</value>
          </list>
       </parameter>
     </constraint>
   </constraints>
  
   <types>
     <type name="contract:contract">
         <title>Duca Contract</title>
         <parent>cm:content</parent>
         <properties>
         <property name="contract:contractID">
               <title>Contract ID</title>
               <description>Contract ID</description>
               <type>d:int</type>
            </property>
         <property name="contract:contractName">
               <title>Contract Name</title>
               <description>Contract Name</description>
               <type>d:text</type>
            </property>
         <property name="contract:startDate">
               <title>Start Date</title>
               <description>Start Date</description>
               <type>d:date</type>
            </property>
         <property name="contract:expirationDate">
               <title>Expiration Date</title>
               <description>Expiration Date</description>
               <type>d:date</type>
            </property>
         <property name="contract:noticeDays">
               <title>Notice Days</title>
               <description>Length of notice period</description>
               <type>d:text</type>
            </property>
         <property name="contract:penaltyFee">
               <title>Penalty Fee</title>
               <description>Penalty Fee</description>
               <type>d:text</type>
            </property>
         <property name="contract:partyName">
               <title>Party Name</title>
               <description>Party Name</description>
               <type>d:text</type>
            </property>
         <property name="contract:departmentName">
               <title>Department Name</title>
               <description>Department Name</description>
               <type>d:text</type>
            <constraints>
                 <constraint ref="contract:departmentName" />
               </constraints>
            </property>
         <property name="contract:previousContractID">
               <title>Previous Contract ID</title>
               <description>Previous Contract ID</description>
               <type>d:text</type>
            </property>
         <property name="contract:isActive">
               <title>Active</title>
               <description>Active</description>
               <type>d:boolean</type>
            </property>
         </properties>
      </type>
   </types>
   <aspects>
      <aspect name="contract:suppDoc">
         <title>Contract Supporting Document</title>
         <properties>
            <property name="contract:documentType">
               <type>d:text</type>
               <constraints>
                 <constraint ref="contract:suppTypes" />
               </constraints>
            </property>
         </properties>
      </aspect>
     <aspect name="contract:inWorkflow">
         <title>Already in Workflow</title>
         <properties>
           
         </properties>
      </aspect>
   </aspects>
</model>


and here is the relevant part of the share-config-custom.xml:


<alfresco-config>
  
   <config evaluator="string-compare" condition="DocumentLibrary">
    <types>
      <type name="cm:content">
      <subtype name="contract:contract" />
      </type>
      <type name="cm:folder" />
     <type name="contract:contract" />
    </types>
   <aspects>
            <!– Aspects that a user can see –>
            <visible>
                <aspect name="contract:suppDoc" />
            <aspect name="contract:inWorkflow" />
            </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>
  
   <config evaluator="aspect" condition="contract:suppDoc">
      <forms>
        <form>
          <field-visibility>
            <show id="contract:documentType" />
          </field-visibility>
        </form>
      </forms>
   </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="contract:documentType" />
            </field-visibility>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="contract:documentType" />
            </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="contract:documentType" />
            </field-visibility>
         </form>
      </forms>
   </config>
  
   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>

<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>
      <form labelId="type.contract_contract" descriptionId="search.form.desc.contract_contract">contract:contract</form>
      </forms>
    </advanced-search>
  </config>

    
  <config evaluator="model-type" condition="contract:contract">
    <forms>
      <!– Search form –>
      <form id="search">
        <field-visibility>
          <show id="cm:name" />
          <show id="cm:title" force="true" />
          <show id="cm:description" force="true" />
          <show id="mimetype" />
          <show id="cm:modified" />
          <show id="cm:modifier" />
        <show id="contract:contractID" />
          <show id="contract:contractName" />
          <show id="contract:startDate" />
          <show id="contract:expirationDate" />
          <show id="contract:noticeDays" />
          <show id="contract:penaltyFee" />
          <show id="contract:partyName" />
        <show id="contract:departmentName" />
        <show id="contract:previousContractID" />
        <show id="contract:isActive" />
        </field-visibility>
        <appearance>
          <field id="mimetype">
            <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
          </field>
          <field id="cm:modifier">
            <control>
              <control-param name="forceEditable">true</control-param>
            </control>
          </field>
          <field id="cm:modified">
            <control template="/org/alfresco/components/form/controls/daterange.ftl" />
          </field>
          <field id="contract:contractID" label-id="prop.contract_contractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:contractName" label-id="prop.contract_contractName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:startDate" label-id="prop.contract_startDate">
            <control template="/org/alfresco/components/form/controls/daterange.ftl" />
          </field>
          <field id="contract:expirationDate" label-id="prop.contract_expirationDate">
            <control template="/org/alfresco/components/form/controls/daterange.ftl" />
          </field>
        <field id="contract:noticeDays" label-id="prop.contract_noticeDays">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:penaltyFee" label-id="prop.contract_penaltyFee">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:partyName" label-id="prop.contract_partyName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:departmentName" label-id="prop.contract_departmentName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:previousContractID" label-id="prop.contract_previousContractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:isActive" label-id="prop.contract_isActive">
            <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
          </field>       
        </appearance>
      </form>
    </forms>
  </config>

  <config evaluator="node-type" condition="contract:contract">
    <forms>
      <!– Search form –>
      <form>
        <field-visibility>
          <show id="cm:name" />
          <show id="cm:title" force="true" />
          <show id="cm:description" force="true" />
          <show id="mimetype" />
          <show id="cm:modified" />
          <show id="cm:modifier" />
        <show id="contract:contractID" />
          <show id="contract:contractName" />
          <show id="contract:startDate" />
          <show id="contract:expirationDate" />
          <show id="contract:noticeDays" />
          <show id="contract:penaltyFee" />
          <show id="contract:partyName" />
        <show id="contract:departmentName" />
        <show id="contract:previousContractID" />
        <show id="contract:isActive" />
        </field-visibility>
        <appearance>
          <field id="mimetype">
            <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
          </field>
          <field id="cm:modifier">
            <control>
              <control-param name="forceEditable">true</control-param>
            </control>
          </field>
          <field id="cm:modified">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
          <field id="contract:contractID" label-id="prop.contract_contractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:contractName" label-id="prop.contract_contractName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:startDate" label-id="prop.contract_startDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
          <field id="contract:expirationDate" label-id="prop.contract_expirationDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
        <field id="contract:noticeDays" label-id="prop.contract_noticeDays">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:penaltyFee" label-id="prop.contract_penaltyFee">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:partyName" label-id="prop.contract_partyName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:departmentName" label-id="prop.contract_departmentName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:previousContractID" label-id="prop.contract_previousContractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:isActive" label-id="prop.contract_isActive">
            <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
          </field>       
        </appearance>
      </form>
    
    
     <!– Document Library pop-up Edit Metadata form –>
      <form id="doclib-simple-metadata">
        <field-visibility>
          <show id="cm:name" />
          <show id="cm:title" force="true" />
          <show id="cm:description" force="true" />
          <show id="mimetype" />
          <show id="cm:modified" />
          <show id="cm:modifier" />
        <show id="contract:contractID" />
          <show id="contract:contractName" />
          <show id="contract:startDate" />
          <show id="contract:expirationDate" />
          <show id="contract:noticeDays" />
          <show id="contract:penaltyFee" />
          <show id="contract:partyName" />
        <show id="contract:departmentName" />
        <show id="contract:previousContractID" />
        <show id="contract:isActive" />
        </field-visibility>
        <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
        <appearance>
          <field id="cm:name">
            <control>
              <control-param name="maxLength">255</control-param>
            </control>
          </field>
          <field id="cm:title">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="cm:description">
            <control>
              <control-param name="activateLinks">true</control-param>
            </control>
          </field>
          <field id="cm:taggable">
            <control>
              <control-param name="compactMode">true</control-param>
              <control-param name="params">aspect=cm:taggable</control-param>
              <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
              <control-param name="createNewItemIcon">tag</control-param>
            </control>
          </field>
          <field id="cm:categories">
            <control>
              <control-param name="compactMode">true</control-param>
            </control>
          </field>
          <field id="contract:contractID" label-id="prop.contract_contractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:contractName" label-id="prop.contract_contractName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:startDate" label-id="prop.contract_startDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
          <field id="contract:expirationDate" label-id="prop.contract_expirationDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
        <field id="contract:noticeDays" label-id="prop.contract_noticeDays">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:penaltyFee" label-id="prop.contract_penaltyFee">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:partyName" label-id="prop.contract_partyName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:departmentName" label-id="prop.contract_departmentName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:previousContractID" label-id="prop.contract_previousContractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:isActive" label-id="prop.contract_isActive">
            <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
          </field>       
        </appearance>
      </form>
      <!– Document Library Inline Edit form –>
      <form id="doclib-inline-edit">
        <field-visibility>
          <show id="cm:name" />
          <show id="cm:title" force="true" />
          <show id="cm:description" force="true" />
          <show id="cm:content" force="true" />
        </field-visibility>
        <appearance>
          <field id="cm:name">
            <control>
              <control-param name="maxLength">255</control-param>
            </control>
          </field>
          <field id="cm:title">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="cm:content">
            <control>
              <control-param name="editorAppearance">explorer</control-param>
              <control-param name="forceEditor">true</control-param>
            </control>
          </field>
          <field id="contract:contractID" label-id="prop.contract_contractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:contractName" label-id="prop.contract_contractName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:startDate" label-id="prop.contract_startDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
          <field id="contract:expirationDate" label-id="prop.contract_expirationDate">
            <control template="/org/alfresco/components/form/controls/date.ftl" />
          </field>
        <field id="contract:noticeDays" label-id="prop.contract_noticeDays">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
          <field id="contract:penaltyFee" label-id="prop.contract_penaltyFee">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:partyName" label-id="prop.contract_partyName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:departmentName" label-id="prop.contract_departmentName">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:previousContractID" label-id="prop.contract_previousContractID">
            <control template="/org/alfresco/components/form/controls/textfield.ftl" />
          </field>
        <field id="contract:isActive" label-id="prop.contract_isActive">
            <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
          </field>       
        </appearance>
      </form>
    </forms>
  </config>
</alfresco-config>


The aspect shows up just as I want it to for entering properties, but not in the Advanced Search dialogue.

Any thoughts?