Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: mod/referentiel/import instance.

mod/referentiel/import instance: Difference between revisions

From MoodleDocs
Line 82: Line 82:


        
        
== See also ==
* [[mod/referentiel/view|Skills Repository]]
Linked pages :
* [[mod/referentiel/activite|Activities]]
* [[mod/referentiel/certificat|Certificates]]
* [[mod/referentiel/task|Tasks]]
* [[mod/referentiel/export|Outcomes]]
[[Category:Developer]]
[[Category:Teacher]]
[[fr:mod/referentiel/import_instance]]




[[fr:mod/referentiel/import instance]]
[[fr:mod/referentiel/import instance]]

Revision as of 22:35, 1 April 2010

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:

nomprenommelvillecours1role1
HADDOCKArchibalda.haddock@moulinsart.beMoulinsartNavigationprofesseur
TOURNESOLTryphont.tournesol@moulinsart.beMoulinsartPhysiqueprofesseur
CASTAFIOREBiancala_castafiore@moulinsart.beMoulinsartChantprofesseur
 Tintintintin@moulinsart.beMoulinsartChantetudiant


The CSV is not really suited for nested data, as in a skills repository.


See also

Linked pages :