InseeFr / Eno

Questionnaire generator
MIT License
13 stars 24 forks source link

[EnoV2] Business - begin question - label incomplet ? (suite issue 565) #595

Closed AnneHuSKa closed 1 year ago

AnneHuSKa commented 1 year ago

Dans https://github.com/InseeFr/Eno/blob/main/src/main/resources/xslt/post-processing/lunatic-xml/begin-question/begin-question.xml il semble manquer un type pour le Label Identification car le json produit pour business est

[ 
   { "id" : "BEGIN-QUESTION-SEQ",
    "componentType" : "Sequence",
    "page" : "1",
    "label" : 
    {  },
    "conditionFilter" : 
    { "value" : "true",
     "type" : "VTL" },
    "hierarchy" : 
    { "sequence" : 
     { "id" : "BEGIN-QUESTION-SEQ",
      "page" : "1",
      "label" : 
      { "value" : "\"Identification\"",
       "type" : "VTL|MD" } } } },

et donc la visu est ko :

image


Extrait de https://github.com/InseeFr/Eno/blob/main/src/main/resources/xslt/post-processing/lunatic-xml/begin-question/begin-question.xml :

 <components xsi:type="Sequence" componentType="Sequence" id="BEGIN-QUESTION-SEQ">
        <label>"Identification"</label>      
        <conditionFilter>
            <value>true</value>
            <type>VTL</type>
        </conditionFilter>
        <hierarchy>
            <sequence id="BEGIN-QUESTION-SEQ">
                <label>
                    <value>"Identification"</value>
                    <type>VTL|MD</type>
                </label>
            </sequence>
        </hierarchy> 

image

AnneHuSKa commented 1 year ago

image

2.4.3-v2-fix-begin-end-pages-business-pages

AnneHuSKa commented 1 year ago

https://github.com/InseeFr/Eno-WS/pull/124