This page should only be applied if the assisted migration script asks you to pass the manual migration code.20250310.ODF.CoefByEducationalPath
On an ELP, coefficients per pedagogical path have been added to the standard model.
If you've modified the ELPs template to define a repeater for coefficients per learning path, compare the definition with that of the standard template below:
Oops! Copy to clipboard failed. Open the code and copy it manually.<!-- 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> Pay particular attention to attribute names and modification conditions (disable-conditions, restrict-to)
If there is no difference, remove the model overload.
If there is a difference in attribute names, migrate the data to the standard model before removing the overload => ask for help
Any overloading of MCC reports to display coefficients by pedagogical path becomes useless since it is supported by the kernel. The files concerned are WEB-INF/stylesheets/pilotage/report/mcc2[FORMAT].xsl for overloads of this type:
Oops! Copy to clipboard failed. Open the code and copy it manually.<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>