Cette page ne doit être appliquée que si le script de migration assistée vous demande de passer la migration manuelle code.20250310.ODF.CoefByEducationalPath
Sur un ELP, les coefficients par chemin pédagogique ont été ajouté au modèle standard.
Si vous avez modifié le modèle des ELPs pour définir un repeater pour les coefficients par chemin pédagogique, comparer la définition avec celle du modèle standard ci-après:
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<!-- Coefficient par chemin pédagogique -->
<attribute type="repeater" name="mccCoefficientByEducationalPath" initial-size="0">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DESC</description>
<header-label>{coefficient} - {path}</header-label>
<add-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_ADD</add-label>
<del-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DEL</del-label>
<widget-params>
<param name="mode">table</param>
</widget-params>
<attribute name="path" type="educational-path">
<label i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH_DESC</description>
<validation>
<mandatory/>
</validation>
<widget>edition.select-educational-path</widget>
</attribute>
<attribute name="coefficient" type="double">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_LABEL</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_DESCRIPTION</description>
<validation>
<mandatory/>
</validation>
<widget-params>
<param name="minValue">0</param>
</widget-params>
</attribute>
<disable-conditions>
<condition id="isEvaluated" operator="eq">false</condition>
</disable-conditions>
<restrict-to>
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</restrict-to>
</attribute> <!-- Coefficient par chemin pédagogique -->
<attribute type="repeater" name="mccCoefficientByEducationalPath" initial-size="0">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DESC</description>
<header-label>{coefficient} - {path}</header-label>
<add-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_ADD</add-label>
<del-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DEL</del-label>
<widget-params>
<param name="mode">table</param>
</widget-params>
<attribute name="path" type="educational-path">
<label i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH_DESC</description>
<validation>
<mandatory/>
</validation>
<widget>edition.select-educational-path</widget>
</attribute>
<attribute name="coefficient" type="double">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_LABEL</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_DESCRIPTION</description>
<validation>
<mandatory/>
</validation>
<widget-params>
<param name="minValue">0</param>
</widget-params>
</attribute>
<disable-conditions>
<condition id="isEvaluated" operator="eq">false</condition>
</disable-conditions>
<restrict-to>
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</restrict-to>
</attribute> Voir le code
<!-- Coefficient par chemin pédagogique -->
<attribute type="repeater" name="mccCoefficientByEducationalPath" initial-size="0">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DESC</description>
<header-label>{coefficient} - {path}</header-label>
<add-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_ADD</add-label>
<del-label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_BY_EDUCATIONAL_PATH_DEL</del-label>
<widget-params>
<param name="mode">table</param>
</widget-params>
<attribute name="path" type="educational-path">
<label i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH</label>
<description i18n="true">plugin.odf:PLUGINS_ODF_COURSE_EDUCATIONAL_PATH_DESC</description>
<validation>
<mandatory/>
</validation>
<widget>edition.select-educational-path</widget>
</attribute>
<attribute name="coefficient" type="double">
<label i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_LABEL</label>
<description i18n="true">plugin.odf-pilotage:PLUGINS_ODF_PILOTAGE_COURSE_MCC_COEFFICIENT_DESCRIPTION</description>
<validation>
<mandatory/>
</validation>
<widget-params>
<param name="minValue">0</param>
</widget-params>
</attribute>
<disable-conditions>
<condition id="isEvaluated" operator="eq">false</condition>
</disable-conditions>
<restrict-to>
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</restrict-to>
</attribute> Vérifier particulièrement le nom des attributs et leurs conditions de modifications (disable-conditions, restrict-to)
Si il n'y aucune différence, supprimer la surcharge du modèle.
Si une différence existe au niveau du nom des attributs, il faut migrer les données vers le modèle standard avant de supprimer la surcharge => demander de l'aide
Toute surcharge des rapports MCC pour afficher les coefficients par chemin pédagogique devient inutile puisque supporter par le noyau. Les fichiers concernés sont les fichiers WEB-INF/stylesheets/pilotage/report/mcc2[FORMAT].xsl pour les surcharges du type:
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<xsl:template match="course" mode="cell-course-coef">
<xsl:param name="rowspan"/>
<td class="centered" rowspan="{$rowspan}">
<xsl:call-template name="display-double">
<xsl:with-param name="value" select="odf:getValueForPath(@id, 'mccCoefficientByEducationalPath/coefficient', @path, 'mccCoefficient')" />
</xsl:call-template>
</td>
</xsl:template> <xsl:template match="course" mode="cell-course-coef">
<xsl:param name="rowspan"/>
<td class="centered" rowspan="{$rowspan}">
<xsl:call-template name="display-double">
<xsl:with-param name="value" select="odf:getValueForPath(@id, 'mccCoefficientByEducationalPath/coefficient', @path, 'mccCoefficient')" />
</xsl:call-template>
</td>
</xsl:template>
<xsl:template match="course" mode="cell-course-coef">
<xsl:param name="rowspan"/>
<td class="centered" rowspan="{$rowspan}">
<xsl:call-template name="display-double">
<xsl:with-param name="value" select="odf:getValueForPath(@id, 'mccCoefficientByEducationalPath/coefficient', @path, 'mccCoefficient')" />
</xsl:call-template>
</td>
</xsl:template>