[Résolu] webclient.properties ignoré?

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

[Résolu] webclient.properties ignoré?

salut à tous,


j'ai commencé à construire un custom content model qui a jusqu'à maintenant deux premiers aspècts.

les aspècts sont definés dans un modèle "globale" (wwu), et ils sont utilisés pour un content type (wwuXmdp:scientificpubl) dans un autre model (wwuXmdp).

les aspècts fonctionnent, mais les lables qui sont définis dans le webclient.properties ne sont pas utilisés p.e.dans la page "file properties". au lieu de "Titel" il n'y a que "dc:title_title", p.e.


le model global qui définit les deux aspects:

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

<!– Definition of new Model –>
<model name="wwu:wwuGenericModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>WWU Repository Content Model - Generic Definitions</description>
   <author>WWU Münster, ULB</author>
   <version>0.1</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 –>
   <namespaces>
      <namespace uri="http://www.ulb.uni-muenster.de/wwuGenericModel/content/1.0" prefix="wwu" />
   </namespaces>
   
   
    <!– Definition of new constraints: werte der dropdown-listen –>
    <constraints>

        <constraint name="wwu:dc-title_ddb-type_constraints" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value></value>
                    <value>translated</value>
                    <value>authorizedHeading</value>
                    <value>other</value>
                </list>
            </parameter>
        </constraint>
       
        <constraint name="wwu:dcterms-alternative_ddb-type_constraints" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value></value>
                    <value>translated</value>
                </list>
            </parameter>
        </constraint>
       
        <constraint name="wwu:lang_ISO639_constraints" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value>deu</value>
                    <value>eng</value>
                    <value>epo</value>
                    <value>jpn</value>
                    <value>…</value>
                </list>
            </parameter>
        </constraint>              

    </constraints>

   <types>
   </types>


   <aspects>
      
       <!– die für XMetaDissPlus u.a. benöitgten Aspects –>
      <aspect name="wwu:dc-title">
            <title>Titel</title>
         <properties>
            <property name="wwu:dc-title_title">
               <type>d:text</type>
                    <mandatory>true</mandatory>
            </property>
                <property name="wwu:dc-title_xsi-type">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <default>ddb:titleISO639-2</default>
                </property>
                <property name="wwu:dc-title_ddb-type">
                    <type>d:text</type>
                    <constraints><constraint ref="wwu:dc-title_ddb-type_constraints" /></constraints> 
                </property>
                <property name="wwu:dc-title_lang">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <constraints><constraint ref="wwu:lang_ISO639_constraints" /></constraints> 
                </property>
         </properties>
      </aspect>
               
        <aspect name="wwu:dcterms-alternative">
            <title>Unter-/Alternativtitel</title>
         <properties>
            <property name="wwu:dcterms-alternative_title">
               <type>d:text</type>
                    <mandatory>true</mandatory>
            </property>
                <property name="wwu:dcterms-alternative_xsi-type">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <default>ddb:talternativeISO639-2</default>
                </property>
                <property name="wwu:dcterms-alternative_ddb-type">
                    <type>d:text</type>
                    <constraints><constraint ref="wwu:dcterms-alternative_ddb-type_constraints" /></constraints> 
                </property>
                <property name="wwu:dcterms-alternative_lang">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <constraints><constraint ref="wwu:lang_ISO639_constraints" /></constraints> 
                </property>
         </properties>
      </aspect>
       
   </aspects>
</model>


le modèle qui utilise les aspects:
<?xml version="1.0" encoding="UTF-8"?>

<!– Definition of new Model –>
<model name="wwuXmdp:wwuXmdpModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>WWU Repository Content Model - XMetaDiss(Plus)</description>
   <author>WWU Münster, ULB</author>
   <version>0.1</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" />
      <!– Import WWU Generic Content Domain Model Definitions –>
        <import uri="http://www.ulb.uni-muenster.de/wwuGenericModel/content/1.0" prefix="wwu" />
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://www.ulb.uni-muenster.de/wwuXmdpModel/content/1.0" prefix="wwuXmdp" />
   </namespaces>
   
   <types>
      <!– Definition of new Content Type: wissenschaftliche Publikation nach XMetaDissPlus: scientificpubl –>
      <type name="wwuXmdp:scientificpubl">
        <title>wissenschaftliche Publikation</title>
        <parent>cm:content</parent>
        <properties>
        </properties>
        <mandatory-aspects>
            <aspect>cm:versionable</aspect>
            <aspect>cm:summarizable</aspect>
            <aspect>cm:replaceable</aspect>
            <aspect>cm:basable</aspect>
            <aspect>cm:partable</aspect>
            <aspect>cm:referencing</aspect>
            <aspect>cm:transformable</aspect>
            <aspect>wwu:dc-title</aspect>
            <aspect>wwu:dcterms-alternative</aspect>
        </mandatory-aspects>
       </type>
  </types>
</model>

the web-client-custom-config:
<alfresco-config>

<config evaluator="string-compare" condition="Content Wizards">
    <content-types>
        <type name="wwuXmdp:scientificpubl" />
    </content-types>
</config>
     
<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
    <subtypes>
         <type name="wwuXmdp:scientificpubl"/>
    </subtypes>
</config>
       
<!– Displays the properties in view details page –>
<config evaluator="node-type" condition="wwuXmdp:scientificpubl">
    <property-sheet>
        <separator name="sepCust1" display-label="Titel" component-generator="HeaderSeparatorGenerator"/>
        <show-property name="wwu:dc-title_title" displayLabelId="wwu:dc-title_title" />
        <show-property name="wwu:dc-title_xsi-type" displayLabelId="wwu:dc-title_xsi-type" />
        <show-property name="wwu:dc-title_ddb-type" displayLabelId="wwu:dc-title_ddb-type" />
        <show-property name="wwu:dc-title_lang" displayLabelId="wwu:dc-title_lang" />
        <show-property name="wwu:dcterms-alternative_title" displayLabelId="wwu:dcterms-alternative_title" />
        <show-property name="wwu:dcterms-alternative_xsi-type" displayLabelId="wwu:dcterms-alternative_xsi-type" />
        <show-property name="wwu:dcterms-alternative_ddb-type" displayLabelId="wwu:dcterms-alternative_ddb-type" />
        <show-property name="wwu:dcterms-alternative_lang" displayLabelId="wwu:dcterms-alternative_lang" />
        <separator name="sepCust2" display-label="…" component-generator="HeaderSeparatorGenerator"/>
        <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" />              
    </property-sheet>
</config>   
</alfresco-config>

le webclient.properties:
# web client custom I18N message properties

# wwuXmdp:scientificpubl
wwu:dc-title_title=Titel
wwu:dc-title_xsi-type=XSI-Typ
wwu:dc-title_ddb-type=DDB-Typ
wwu:dc-title_lang=Sprachcode
wwu:dcterms-alternative_title=Unter-/Alternativ-Titel
wwu:dcterms-alternative_xsi-type=XSI-Typ
wwu:dcterms-alternative_ddb-type=DDB-Typ
wwu:dcterms-alternative_lang=Sprachcode


est-ce que quelqu'un peut m'expliquer ce qu'il y a d'incorrect pour que les lables sont ignorés?
:?:


viola
4 Replies
Highlighted
Member II

Re: [Résolu] webclient.properties ignoré?

j'ai juste reçu cette réponse sur le forum anglais:
changing displayLabelId to display-label-id might work as well

et maintenant ça marche. Smiley Happy



viola
Highlighted
Member II

Re: [Résolu] webclient.properties ignoré?

Bonjour,

j'ai quelques problèmes avec l'utilisation de webclient.properties multiples… Pouvez-vous m'indiquer où vous avez placé le votre, et comment vous l'avez éventuellement déclaré dans votre configuration ?
Highlighted
Member II

Re: [Résolu] webclient.properties ignoré?

je n'ai qu'un seul webclient.properties qui se trouve dans l'espace "company home" > "data" > "'Web Client Extension"
(comme décrit dans http://wiki.alfresco.com/wiki/Dynamic_Models).


viola
Highlighted
Member II

Re: [Résolu] webclient.properties ignoré?

Merci pour cette réponse…
Pour ma part le problème se pose malheureusement avec la version 2.1 et l'utilisation de modules amp.