mod/referentiel/import instance: Difference between revisions
From MoodleDocs
Jean FRUITET (talk | contribs) |
Jean FRUITET (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 87: | Line 87: | ||
Linked pages : | Linked pages : | ||
* [[mod/referentiel/activite|Activities]] | * [[mod/referentiel/activite|Activities]] | ||
* [[mod/referentiel/task|Tasks]] | * [[mod/referentiel/task|Tasks]] | ||
* [[mod/referentiel/export|Outcomes]] | * [[mod/referentiel/export|Outcomes]] | ||
* [[mod/referentiel/bareme|Scales]] | |||
* [[mod/referentiel/certificat|Certificates]] | |||
[[Category: | [[Category:Contributed code]] | ||
[[Category:Teacher]] | [[Category:Teacher]] | ||
[[Category: Skills repository (Referentiel)]] | |||
[[fr:mod/referentiel/import_instance]] | [[fr:mod/referentiel/import_instance]] |
Latest revision as of 16:45, 5 July 2015
Import a skills repository
If you have a repository backup in XML format (produced by the export function) you can restore it in your Moodle course.
Then, two situations can occur:
- This is a new skills repository for this Moodle space; it becomes available for this (local != 0) course or for all the (local == 0) courses;
- If there is an identical local version (same name, same code) – the skills repository is already existing in Moodle:
- If you choose to overwrite the existing version, it will be replaced by the imported version;
- If you choose to keep the existing version; the import process will be canceled;
Importation / exportation Formats
- XML is a textual data format representing the information as a tag hierarchies and nested data. It allows the backup and restore of skills repositories, activities and certificates.
<referentiel> <id>2</id> <name>Test</name> <domaine> <id>3</id> <code_domaine>test1</code_domaine> <description_domaine> <text>Description Test1</text> </description_domaine> <ref_referentiel>2</ref_referentiel> <competence> <id>8</id> <code_competence>Test1.1</code_competence> <description_competence> <text>Description Test1.1</text> </description_competence> <item> <id>28</id>Test1.1.1
<description_item> <text>Description Test1.1.1</text> </description_item> </item> <item> <id>30</id>Test1.1.2
<description_item> <text>Description Test1.1.2</text> </description_item> </item> </competence> </domaine> </referentiel>
- The XHTML format is an export-type format intended for Web page display.
- The CSV is a textual format of tabular data (like in a spreadsheet).
The CSV uses a separator, in general ';' between the cells of a table.
For example:
nom;prenom;mell;ville;cours1;role1;cours2;role2; HADDOCK;Archibald;a.haddock@moulinsart.be;Moulinsart;Navigation;professeur; TOURNESOL;Tryphon;t.tournesol@moulinsart.be;Moulinsart;Physique;professeur; CASTAFIORE;Bianca;la_castafiore@moulinsart.be;Moulinsart;Chant;professeur; ;Tintin;tintin@moulinsart.be;Moulinsart;Chant;etudiant;
This gives a table:
nom | prenom | mel | ville | cours1 | role1 |
---|---|---|---|---|---|
HADDOCK | Archibald | a.haddock@moulinsart.be | Moulinsart | Navigation | professeur |
TOURNESOL | Tryphon | t.tournesol@moulinsart.be | Moulinsart | Physique | professeur |
CASTAFIORE | Bianca | la_castafiore@moulinsart.be | Moulinsart | Chant | professeur |
Tintin | tintin@moulinsart.be | Moulinsart | Chant | etudiant |
The CSV is not really suited for nested data, as in a skills repository.
See also
Linked pages :