Ametys proposes 3 modules to build the training offer.
plugins ODF -sync and ODF-Web are optional.
In the training offer, a certain number of fields are enumerated fields (list of defined values): type of diploma, field, level of study, place of training, ROME code, DGESIP code, ERASMUS code, SISE code, etc ...
The values and labels of these fields are described in XML files (therefore configurable).
Download the xml files for these listed fields and copy them into your application's WEB-INF/param/odf directory.
For each of the possible values for a field, the XML file contains 3 pieces of information:
Add the associated i18n keys to your application catalog(WEB-INF/i18n /application.xml and WEB-INF/i18n/application_en .xml).
In the file cms-ribbon-default.xml you need to import the ribbon specific to the training offer.
<import>plugin:[plugin]://cms-ribbon-[mode].xml</import>
Depending on the plugins ODF used and the import/synchro mode, the import differs. Refer to the table below to find out which file to import.
Plugin ODF |
Plugin ODF-Web | Plugin ODF-Sync | Import | ||
---|---|---|---|---|---|
Apogée | CDM-fr | CDM-fr global | |||
x |
|
|
|
|
plugin:odf://cms-ribbon.xml |
x | x |
|
|
|
plugin:odf-web://cms-ribbon.xml |
x |
| x |
|
|
plugin:odf-sync://cms-ribbon-apogee.xml |
x |
|
| x |
|
plugin:odf-sync://cms-ribbon-cdmfr.xml |
x |
|
|
| x |
plugin:odf-sync://cms-ribbon-cdmfr-global.xml |
x | x | x |
|
|
plugin:odf-sync://cms-ribbon-web-apogee.xml |
x | x |
| x |
|
plugin:odf-sync://cms-ribbon-web-cdmfr.xml |
x | x |
|
| x |
plugin:odf-sync://cms-ribbon-web-cdmfr-global.xml |
To integrate the training offer into the tree structure of your site (Plugin ODF -Web), you need to add a button in the ribbon to position the root of the training offer.
In the org.ametys.cms.page.Tab tab of your cms-ribbon-default.xml file, add the following button:
<control id="org.ametys.odf.web.page.Root"/>
Each application must have its own plugin defining the workflow actions available. You can find an example of plugin here http://viewvc.ametys.org/viewvc/trunk/templates/odfweb/trunk/webapp/cms/plugins /default-odf-workflow/
Workflow files depend on the plugins odf used. Refer to the table below to download the workflow files corresponding to your configuration.
Place workflow files in your application's WEB-INF/param directory
|
Plugin ODF |
Plugin ODF-Web | Plugin ODF-Sync |
---|---|---|---|
http://viewvc.ametys.org/viewvc/trunk/plugins/odf/tags/2.2.0/main/plugin-odf/doc/workflow/ | x |
|
|
http://viewvc.ametys.org/viewvc/trunk/plugins/odf-web/tags/2.2.0/main/plugin-odf-web/doc/workflow/ | x | x |
|
http://viewvc.ametys.org/viewvc/trunk/plugins/odf-sync/tags/2.2.0/main/plugin-odf-sync/doc/workflow/ | x |
| x |
http://viewvc.ametys.org/viewvc/trunk/plugins/odf-web/tags/2.2.0/main/plugin-odf-web/doc/workflow-sync/ | x | x | x |
The workflow file workflows.xml must reference the 4 workflow files:
<workflows> <workflow name="course" type="file" location="workflow-course.xml"/> <workflow name="program" type="file" location="workflow-program.xml"/> <workflow name="orgunit" type="file" location="workflow-orgunit.xml"/> <workflow name="person" type="file" location="workflow-person.xml"/> </workflows>
If you use plugin ODF -Web, disable the odf/link-resolver feature.
<plugins> <exclude> [...] <feature>odf/link-resolver</feature> </exclude> </plugin>
If you use plugin ODF -Sync, disable the feature odf/init
<plugins> <exclude> [...] <feature>odf/init</feature> </exclude> </plugin>
This chapter only applies to you if you are using plugin ODF -Sync
If you're using plugin ODF -Sync, you'll need to choose the import and synchronization mode (Apogee or CDM-fr) and set the parameters according to your application.
For each entity (training, teaching units, etc.), the WEB-INF/param/odf-synchro.xml file lists the fields that can be synchronized with the Apogée database or the CDM-fr file.
Download a sample odf-synchro file.xml
Import is performed from the institution's Apogée database. The import is carried out individually for each entity (Formations, Parcours, ELPs, Composants, Personnes, ...).
Synchronization is available for each entity individually or globally.
3 extension points to declare.
<org.ametys.plugins.odfsync.ODFSyncManager>org.ametys.plugins.odfsync.apogee.ApogeeODFSyncManager</org.ametys.plugins.odfsync.ODFSyncManager> <org.ametys.plugins.odfsync.apogee.ApogeeSynchronizationHelper>org.ametys.plugins.odfsync.apogee.DefaultApogeeSynchronizationHelper</org.ametys.plugins.odfsync.apogee.ApogeeSynchronizationHelper> <org.ametys.plugins.odfsync.apogee.ApogeeDAO>org.ametys.plugins.odfsync.apogee.DefaultApogeeDAO</org.ametys.plugins.odfsync.apogee.ApogeeDAO>
In the <exclude> ... </exclude>check that the features odf-sync/synchronization.apogee.datasource and odf-sync/odf.rights.sync.others are not disabled. If they are, remove them from this section.
<runtime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ametys.org/Runtime/2.0/runtime.xsd"> <plugins> <exclude> <feature>....</feature> <feature>...</feature> </exclude> </plugins> [...] </truntime>
Queries on the Apogee database are described in SQLMap mapping files. These must be located in the application's WEB-INF/param/odf/apogee directory.
Download a sample mapping file SQL
These files are used to convert Apogée codes into Ametys codes.
They must be placed in the WEB-INF/param/apogee/code directory of your application:
There are two Apogee-specific configuration parameters to initialize:
You will also need to configure access to the Apogée database.
In CDM-fr, import takes place from a XML file in CDM-fr format. All training offer entities (Courses, Paths, ELPs, Components, People, ...) defined in the file are imported if they do not already exist in Ametys.
Synchronization is available for a single course or globally.
There are 2 synchronization modes CDM-fr:
<org.ametys.plugins.odfsync.ODFSyncManager>org.ametys.plugins.odfsync.cdmfr.GlobalCDMFrODFSyncManager</org.ametys.plugins.odfsync.ODFSyncManager>
<org.ametys.plugins.odfsync.ODFSyncManager>org.ametys.plugins.odfsync.cdmfr.CDMFrODFSyncManager</org.ametys.plugins.odfsync.ODFSyncManager>
A single configuration parameter specific to the use of CDM-fr:
In this mode, the training offer is synchronized with another remote ODF application.
Training courses are published on the portal via web services.
<org.ametys.plugins.odfsync.ODFSyncManager>org.ametys.plugins.odfsync.cdmfr.RemoteCDMFrODFSyncManager</org.ametys.plugins.odfsync.ODFSyncManager>