As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <!– The important part here is the name - Note: the use of the my: namespace which is defined further on in the document –> <model name="box:archive" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Aspect Boite archive</description> <author></author> <version>1.0</version> <!– Imports are required to allow references to definitions in other models –> <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> <namespace uri="http://www.boitearchive.nc/model/content/1.0" prefix="box"/> </namespaces> <constraints> <constraint name="box:length" type="LENGTH"> <parameter name="minLength"> <value>1</value> </parameter> <parameter name="maxLength"> <value>5</value> </parameter> </constraint> </constraints> <types> </types> <!– Definition Aspect: Boite archive –> <aspects> <aspect name="box:archive"> <title>Boite archive</title> <properties> <property name="box:number"> <title>Numéro boite</title> <type>d:text</type> <constraints> <constraint ref="box:length"/> </constraints> </property> </properties> </aspect> </aspects> </model>
<?xml version="1.0" encoding="UTF-8"?> <!– The important part here is the name - Note: the use of the my: namespace which is defined further on in the document –> <model name="box:archive" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Aspect Boite archive</description> <author></author> <version>1.0</version> <!– Imports are required to allow references to definitions in other models –> <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> <!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="http://www.boitearchive.nc/model/content/1.0" prefix="box"/> </namespaces> <constraints> <constraint name="box:length" type="LENGTH"> <parameter name="minLength"> <value>1</value> </parameter> <parameter name="maxLength"> <value>5</value> </parameter> </constraint> </constraints> <types> </types> <!– Definition of new Content Aspect: Boite archive –> <aspects> <aspect name="box:archivebox"> <title>Boite archive</title> <parent>cm:folder</parent> <properties> <property name="box:archiveboxid"> <title>Boîte archive N°</title> <type>d:text</type> <constraints> <constraint ref="box:length"/> </constraints> </property> </properties> </aspect> </aspects> </model>
<!– Pour affichage métadonnées CANL–> <config evaluator="model-type" condition="can:canl"> <forms> <form id="search"> <field-visibility> <show id="can:contractid" /> <show id="can:designation" /> <show id="can:documenttype" /> <show id="can:login" force="true" /> <show id="can:telnumber" force="true" /> <show id="can:batchnumber" force="true" /> <show id="cm:description" force="true" /> </field-visibility> </form> </forms> </config> <!– surcharge la conf presente dans \tomcat\webapps\share\WEB-INF\classes\alfresco\share-form-config.xml –> <!– configuration can'l –> <config evaluator="node-type" condition="can:canl"> <forms> <!– Default form configuration for the cm:content type –> <form> <field-visibility> <show id="can:contractid" /> <show id="can:designation" /> <show id="can:documenttype" /> <!– can:log aspect–> <show id="can:login" /> <!– can:lot aspect–> <show id="can:batchnumber" /> <show id="cm:description" force="true" /> <!– tags and categories –> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> <!– cm:dublincore aspect –> <show id="cm:publisher"/> <show id="cm:contributor"/> <show id="cm:type"/> <show id="cm:identifier"/> <show id="cm:dcsource"/> <show id="cm:coverage"/> <!–<show id="cm:rights"/>–> <show id="cm:subject"/> <!– cm:complianceable aspect –> <show id="cm:removeAfter" /> <!– cm:effectivity aspect –> <show id="cm:from"/> <show id="cm:to"/> <!– cm:summarizable aspect –> <show id="cm:summary" /> <!– cm:translatable aspect –> <show id="cm:translations" /> <!– cm:localizable aspect –> <show id="cm:locale" /> <!– cm:ownable aspect –> <show id="cm:owner" /> <!– cm:attachable aspect –> <show id="cm:attachments" /> <!– cm:emailed aspect –> <show id="cm:originator" /> <show id="cm:addressee" /> <show id="cm:addressees" /> <show id="cm:sentdate" /> <show id="cm:subjectline" /> <!– cm:geographic aspect –> <show id="cm:latitude" /> <show id="cm:longitude" /> <!– can:dsl aspect –> <show id="can:telnumber" /> <!– box:archivebox aspect boite archive–> <show id="box:archivebox"/> </field-visibility> </form> </forms> </config> <!– Pour affichage métadonnées –> <config evaluator="model-type" condition="mod:dta"> <forms> <form id="search"> <field-visibility> <show id="mod:service" /> <show id="mod:reference" /> <show id="mod:objet" /> <show id="mod:projet" /> </field-visibility> </form> </forms> </config> <!– surcharge la conf presente dans \tomcat\webapps\share\WEB-INF\classes\alfresco\share-form-config.xml –> <!– configuration sighma –> <config evaluator="node-type" condition="mod:dta"> <forms> <!– Default form configuration for the cm:content type –> <form> <field-visibility> <show id="cm:name" /> <show id="mod:service" /> <show id="mod:reference" /> <show id="mod:objet" /> <show id="mod:projet" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="mimetype" /> <show id="cm:author" force="true" /> <show id="size" for-mode="view" /> <show id="cm:creator" for-mode="view" /> <show id="cm:created" for-mode="view" /> <show id="cm:modifier" for-mode="view" /> <show id="cm:modified" for-mode="view" /> <!– tags and categories –> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> <!– cm:dublincore aspect –> <show id="cm:publisher"/> <show id="cm:contributor"/> <show id="cm:type"/> <show id="cm:identifier"/> <show id="cm:dcsource"/> <show id="cm:coverage"/> <!–<show id="cm:rights"/>–> <show id="cm:subject"/> <!– cm:complianceable aspect –> <show id="cm:removeAfter" /> <!– cm:effectivity aspect –> <show id="cm:from"/> <show id="cm:to"/> <!– cm:summarizable aspect –> <show id="cm:summary" /> <!– cm:translatable aspect –> <show id="cm:translations" /> <!– cm:localizable aspect –> <show id="cm:locale" /> <!– cm:ownable aspect –> <show id="cm:owner" /> <!– cm:attachable aspect –> <show id="cm:attachments" /> <!– cm:emailed aspect –> <show id="cm:originator" /> <show id="cm:addressee" /> <show id="cm:addressees" /> <show id="cm:sentdate" /> <show id="cm:subjectline" /> <!– exif:exif aspect –> <show id="exif:dateTimeOriginal" /> <show id="exif:pixelXDimension" /> <show id="exif:pixelYDimension" /> <show id="exif:exposureTime" /> <show id="exif:fNumber" /> <show id="exif:flash" /> <show id="exif:focalLength" /> <show id="exif:isoSpeedRatings" /> <show id="exif:manufacturer" /> <show id="exif:model" /> <show id="exif:software" /> <show id="exif:orientation" /> <show id="exif:xResolution" /> <show id="exif:yResolution" /> <show id="exif:resolutionUnit" /> <!– cm:geographic aspect –> <show id="cm:latitude" /> <show id="cm:longitude" /> </field-visibility> </form> </forms> </config> <!– cm:folder type (existing nodes) –> <config evaluator="node-type" condition="cm:folder"> <forms> <!– Default form configuration for the cm:folder type –> <form> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="box:archiveboxid"/> <!– tags and categories –> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> </field-visibility> <appearance> <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="box:archiveboxid"> <control template="/org/alfresco/components/form/controls/number.ftl"> <control-param name="maxLength">5</control-param> </control> </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="box:archiveboxid"/> <!– tags and categories –> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> </field-visibility> <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" /> <appearance> <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="box:archiveboxid"> <control template="/org/alfresco/components/form/controls/number.ftl"> <control-param name="maxLength">5</control-param> </control> </field> </appearance> </form> </forms> </config> <!– cm:folder type (creating nodes) –> <config evaluator="model-type" condition="cm:folder"> <forms> <!– Document Library Common form –> <form id="doclib-common"> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="box:archiveboxid"/> </field-visibility> <create-form template="../documentlibrary/forms/doclib-common.ftl" /> <appearance> <field id="cm:title"> <control template="/org/alfresco/components/form/controls/textfield.ftl" /> </field> <field id="box:archiveboxid"> <control template="/org/alfresco/components/form/controls/number.ftl"> <control-param name="maxLength">5</control-param> </control> </field> </appearance> </form> <config evaluator="string-compare" condition="DocumentLibrary" replace="true"> <tree> <evaluate-child-folders>true</evaluate-child-folders> <maximum-folder-count>-1</maximum-folder-count> </tree> <aspects> <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="cm:geographic" /> <aspect name="exif:exif" /> <aspect name="can:dsl" /> <aspect name="can:log" /> <aspect name="can:batch" /> <aspect name="box:archivebox"/> </visible> <!– ajouter un aspect ici si on souhaite uniquement pouvoir ajouter mais pas supprimer –> <addable> </addable> <!– ajouter un aspect ici si on souhaite uniquement pouvoir supprimer mais pas ajouter –> <removeable> </removeable> </aspects> <types> <type name="cm:content"> <subtype name="mod:dta" /> <subtype name="can:canl"/> </type> <type name="cm:folder"> </type> <!– pour pouvoir typer un document avec ce type –> <!–<type name="my:sop"></type>–> </types> <google-docs> <enabled>false</enabled> <creatable-types> <creatable type="doc">application/msword</creatable> <creatable type="xls">application/vnd.ms-excel</creatable> <creatable type="ppt">application/vnd.ms-powerpoint</creatable> </creatable-types> </google-docs> <file-upload> <adobe-flash-enabled>true</adobe-flash-enabled> </file-upload> </config> </alfresco-config>