« Importer des questions » : différence entre les versions

De MoodleDocs
Aller à :navigation, rechercher
Ligne 29 : Ligne 29 :
* Importez le fichier sélectionné.
* Importez le fichier sélectionné.


==Question import formats==
==Formats d'importation des questions==


=== [[GIFT]] ===  
===[[GIFT]]===  
Moodle 'proprietary' text format for import and export. Reasonably comprehensive.
Format texte « propriétaire » de Moodle pour l'importation et l'exportation. Raisonnablement complet.


=== [[Moodle XML format|Moodle XML]] ===
===[[Format XML Moodle|XML Moodle]]===
Moodle 'proprietary' xml format for import and export. Very comprehensive.
Format XML « propriétaire » de Moodle pour l'importation et l'exportation. Très complet.


====How do you create XML files to enable import of images?====
====Comment créer des fichiers XML permettant l'importation d'images?====
Discussion: http://moodle.org/mod/forum/discuss.php?d=181211
Discussion [http://moodle.org/mod/forum/discuss.php?d=181211] (en anglais)
=====OPTION 1=====
Check out http://www.slideshare.net/tjuly/adding-images-to-moodle-quiz-and-import-via-xml


This describes a use of a text to XML conversion process using http://vletools.com/questions/quiz  
Visitez cette page [http://www.slideshare.net/tjuly/adding-images-to-moodle-quiz-and-import-via-xml] (en anglais)


Please add any further comments here:
Elle décrit le processus de conversion texte -> XML au moyen de http://vletools.com/questions/quiz.


=====OPTION 2=====
===[[Aiken]]===  
Ce format est un moyen facile d'écrire des questions à choix multiples à importer.


=== [[Aiken]] ===  
===Blackboard===  
This format is an easy way of writing multiple-choice questions for import.
Ce format vous permet d'importer des banques de questions [question pools] depuis Blackboardvers Moodle au moyen du format d'exportation '''POOL''' de Blackboard.  


=== Blackboard ===
Veuillez noter que vous devez d'abord décompresser le fichier zip d'exportation et fournir à Moodle le fichier .dat approprié.
Using this format you can import Blackboard question pools into Moodle using the Blackboard "POOL" type export format.


Note that you must first unpack the exported zip file and provide Moodle with the appropriate .dat file.
Depuis Moodle 2.3.2, ce format n'est plus utile puisque tous les fichiers qu'il permet d'importer peuvent aussi être importés avec le format Blackboard V6+. Il disparaîtra dans une future version de Moodle.


Note that this version does not work with Blackboard Version 6 and newer. (Use this format for ExamView 5 or 6)
===Blackboard V6+===
Ce format d'importation est inutilisable en Moodle 2.3 et 2.3.1.
Depuis Moodle 2.3.2, ce format d'importation a été amélioré.


Starting with Moodle 2.3.2 this format has no more use as all the files it can import can also be imported using the the Blackboard V6+ format. it will be deprecated in a future Moodle version.
Il permet maintenant d'importer à la fois les fichiers .dat contenant seulement les questions ou les fichiers zip contenant les questions et leurs médias associés (images, sons, ...).
Si vos questions contiennent des images, elles seront également importées.


=== Blackboard V6+ ===
Certains tutoriels sur Internet expliquent que vous devez modifier les fichiers pour recréer les liens de vos images. '''Ce n'est plus nécessaire.'''. Les images sont importées sans besoin d'édition.
This import format is broken in Moodle 2.3 and 2.3.1.
Starting with Moodle 2.3.2, this import format has been rewritten and enhanced.


It can now import both .dat files containing just questions text or zip archives containing questions and associated medias (images, sounds, ...).
Aussi, les fichiers '''POOL''' et '''QTI''' Blackboard sont supportés et les questions produites avec les logiciels ''TestGen'' et ''Examview'' enregistrés en tant que fichiers Blackboard sont importés.
If your questions contains images they are imported too.
Si les fichiers zip contiennent plusieurs fichiers ressources, toutes les questions de tous les fichiers sont importées. Les tests Blackboard non utilisés sont aussi supportés.


Some tutorials on the web explain that you need to edit files to re-link images. '''This is no more needed'''. Images are imported without any editing.
'''NOTE :''' Dans Moodle 2.3 et 2.3.1, comme le format Blackboard V6+ est inutilisable, il existe une solution de contournement pour importer des questions enregistrées en fichiers Blackboard. [http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder] peut aussi être utilisé pour convertir des questions ExamView en format Moodle XML.
Les images sont supportées et inclues dans le fichier XML Moodle lorsque vous utilisez [http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder].


Also both Blackboard POOL and QTI files are supported and questions produced with TestGen and Examview softwares and saved as Blackboard files are imported.
1. Créez un test avec des questions dans le générateur de tests ''Examview'' version 6.2.1 ou dans un autre générateur de questions capable d'enregistrer les questions en fichier Blackboard comme ''TestGen''.
If the zip archives contains several resources files all questions from all files are imported. Undeployed Blackboard quiz are also supported.


'''NOTE:''' In Moodle 2.3 and 2.3.1, as the Blackboard V6+ is broken  there is a workaround to import questions saved as Blackboard files.
2. Exportez le test en format Blackboard 6.0-7.0.
[http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder] discussed below in [https://docs.moodle.org/23/en/Import_questions#See_also See Also] can be used to convert ExamView exports to Moodle XML.
Images are supported and included within the Moodle XML when using [http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder].


1. Create a quiz with questions in Examview Test Generator v. 6.2.1 or another question generator able to save questions as Blackboard files like TestGen.
3. Utilisez [http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder] pour convertir les questions ''ExamView'' en format Blackboard 6.0-7.0 vers un format XML accepté par Moodle 2.3 et 2.3.1.


2. Export the quiz to Blackboard 6.0-7.0 format
4. Dans les Réglages de votre cours, cliquez sur '''Banque de questions''', puis sur '''Importer'''. Assurez-vous d'utiliser le format XML Moodle. Vous pourriez avoir à paramétrer l'option '''Stopper en cas d'erreur''' à '''Non'''.


3. Use the aforementioned [http://www.nashcc.edu/moodlexmlbuilder MoodleXMLBuilder] to convert from '''ExamView Export to Blackboard 6.0-7.0''' into the XML format that Moodle 2.3 and 2.3.1 accepts.
PVI : pour installer MoodleXMLBuilder, vous devrez vous connecter comme administrateur. Vous aurez également besoin de java et vous devrez exécuter l'application MoodleXMLBuilder.exe à partir de son répertoire d'installation. Pour Windows 7, il s'agit de C:\Program Files (x86)\MoodleXMLBuilder\MoodleXMLBuilder.exe.


4. From the ''Settings'' tab for your course choose ''Question bank'' and then ''Import''. Make sure you use the Moodle XML format. You may also need to set ''Stop on error'' to ''No''.
===[[Question cloze à réponses intégrées|Questions Cloze à réponses intégrées]] ===
Ce format de question permet de créer des questions multiples à choix multiple avec réponses intégrées. Elles peuvent être difficiles à créer, mais elles sont un moyen unique de poser des questions.


FYI To install MoodleXMLBuilder you may need to be logged into an administrator account or select "Run as administrator" from the right-click menu. You'll also need java and you will need to run the MoodleXMLBuilder.exe application from its install directory (the installer doesn't seem to create a Start menu entry). For Windows 7 it was C:\Program Files (x86)\MoodleXMLBuilder\MoodleXMLBuilder.exe.
===Examview===  
 
=== Course Test Manager ===
This format enables you to import questions from the Course Test Manager from Course Technology.
 
=== [[Embedded Answers (Cloze) question type|Embedded Answers (Cloze)]] ===
This format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions.
 
=== Examview ===  
ExamView 4 supported an XML export format that Moodle can import.
ExamView 4 supported an XML export format that Moodle can import.


Ligne 125 : Ligne 115 :
3. Import this zip file in Moodle using "Blackboard V6+" format. see the above paragraph about the Blackboard V6+ import format for more informations.
3. Import this zip file in Moodle using "Blackboard V6+" format. see the above paragraph about the Blackboard V6+ import format for more informations.


===[[Hot Potatoes]]===
===[[Format Learnwise|Learnwise]]===
A freeware program that can export questions into Moodle.
 
----
 
'''Note 1'''.- All types of Hot Potatoes question types can be imported into Moodle, but ''JCross'' and ''JMix'' questions will be changed to Short Answer questions.
 
*Can be imported into the ''Quiz questions'' bank:
**Cloze questions (''JCloze'');
**Match questions (''JMatch'');
**Multiple Choice questions (''JQuiz'')
**Short Answer questions (''JQuiz'', ''JCross'' and ''JMix'')
 
*Can be imported into Moodle's ''Lesson'' module:
**Match questions (''JMatch'');
**Multiple Choice questions (''JQuiz'')
 
'''Note 2'''.- For Hot Potatoes' Multiple Choice question type (''JQuiz''), the ''Multiple-choice'' ''Short answer'' and ''Multi-select'' question-type will imported as they are. ''Hybrid'' questions will be imported as ''MultiChoice'' questions, i.e. they will not start as Short Answer questions and then change to Multiple Choice questions after several wrong responses.
 
'''Note 3'''.- For Moodle v2.2 and v2.3 you must install the Hot Potatoes plugin first. See https://moodle.org/mod/forum/discuss.php?d=204421
 
===Learnwise===
This format can import multiple choice questions saved in Learnwise's XML format.
This format can import multiple choice questions saved in Learnwise's XML format.


===[[Missing word question format|Missing word]]===
===[[Format Mot manquant|Mot manquant]]===
This format is only used for  multiple choice questions and short answer questions, similar to GIFT.
This format is only used for  multiple choice questions and short answer questions, similar to GIFT.


=== [[WebCT format]] ===  
=== [[Format WebCT|WebCT]] ===  
This format supports importing multiple choice and short answers questions from WebCT's text format.  
This format supports importing multiple choice and short answers questions from WebCT's text format.  


'''Caution:''' Keep in mind that WebCT allows more than one "blank" per short answer question; whereas, Moodle will only accommodate one blank per question. Questions that used multiple short answers in a question will not convert successfully.
'''Caution:''' Keep in mind that WebCT allows more than one "blank" per short answer question; whereas, Moodle will only accommodate one blank per question. Questions that used multiple short answers in a question will not convert successfully.
=== [[Word table format]] ===
This format supports importing all question types (except calculated) from structured tables in Microsoft Word files.
Further details at [[https://moodle.org/plugins/pluginversions.php?plugin=qformat_wordtable Contributed plugins page for the Word table plugin]] or [[https://moodle.org/mod/data/view.php?d=13&rid=4012&filter=1 Old modules and plugins database]]


==Importing from other programs==
==Importing from other programs==

Version du 15 avril 2013 à 18:20

Dans Moodle, les questions peuvent être importées en différents formats dans les catégories de la banque de questions et dans la leçon. Parmi eux, certains formats de logiciels de tests propriétaires et d'autres fichiers textes et formats Moodle.

Importer des questions depuis un fichier

Il est possible d'importer des questions depuis un fichier dans votre réseau/ordinateur ou depuis un fichier qui a été enregistré ou versé dans votre cours. L'encodage sous-jacent du fichier est très important.

Note : Le format Moodle XML est le type de format recommandé puisqu'il permet d'importer un maximum de données sur les questions (telles que la rétroaction).

Processus d'importation dans la banque de questions

La banque de questions permet une grande flexibilité lors de l'importation de questions. Pour importer des questions dans la banque de questions, allez dans le bloc Réglages et cliquez sur Banque de questions, puis cliquez sur le lien Importer.

  • Format de fichier : choisissez le format de fichier à importer
  • Généraux : choisissez la catégorie où les questions doivent être importées et déterminez si les données sur le contexte et la catégorie qui pourraient figurer dans le fichier GIFT ou XML doivent être utilisées.
  • Choisissez ce qui doit arriver s'il n'y a aucune note ou si le système rencontre une erreur.
  • Choisissez le fichier à importer.
    • Si vous importez les questions depuis votre réseau/ordinateur, cliquez sur le bouton Choisir un fichier, puis sur Parcourir pour importer un fichier de votre ordinateur. Cliquez sur le bouton Importation pour importer les questions.
    • Si vous importez les questions depuis un fichier se trouvant déjà parmi les fichiers du cours, cliquez sur le bouton Choisir un fichier, puis sur Fichiers récents ou sur Fichiers privés, trouvez le fichier, puis cliquez sur le bouton Importation pour importer les questions.

Processus d'importation dans la leçon

Les types de questions qui peuvent être importés dans une leçon sont similaires à ceux de la banque de questions.

Une question de leçon peut seulement être importée depuis un fichier dans l'ordinateur de l'enseignant.

  • Allez dans la leçon et cliquez sur l'onglet Modifier, puis cliquez sur Agrandir.

Vues modifier leçon.jpg

  • Choisissez la position où les questions devraient être insérées dans la leçon.
  • Cliquez sur le lien Importer des questions entre les pages.
  • Choisissez le type de fichier.
  • Utilisez le bouton Parcourir pour chercher le fichier dans votre ordinateur.
  • Importez le fichier sélectionné.

Formats d'importation des questions

GIFT

Format texte « propriétaire » de Moodle pour l'importation et l'exportation. Raisonnablement complet.

XML Moodle

Format XML « propriétaire » de Moodle pour l'importation et l'exportation. Très complet.

Comment créer des fichiers XML permettant l'importation d'images?

Discussion [1] (en anglais)

Visitez cette page [2] (en anglais)

Elle décrit le processus de conversion texte -> XML au moyen de http://vletools.com/questions/quiz.

Aiken

Ce format est un moyen facile d'écrire des questions à choix multiples à importer.

Blackboard

Ce format vous permet d'importer des banques de questions [question pools] depuis Blackboardvers Moodle au moyen du format d'exportation POOL de Blackboard.

Veuillez noter que vous devez d'abord décompresser le fichier zip d'exportation et fournir à Moodle le fichier .dat approprié.

Depuis Moodle 2.3.2, ce format n'est plus utile puisque tous les fichiers qu'il permet d'importer peuvent aussi être importés avec le format Blackboard V6+. Il disparaîtra dans une future version de Moodle.

Blackboard V6+

Ce format d'importation est inutilisable en Moodle 2.3 et 2.3.1. Depuis Moodle 2.3.2, ce format d'importation a été amélioré.

Il permet maintenant d'importer à la fois les fichiers .dat contenant seulement les questions ou les fichiers zip contenant les questions et leurs médias associés (images, sons, ...). Si vos questions contiennent des images, elles seront également importées.

Certains tutoriels sur Internet expliquent que vous devez modifier les fichiers pour recréer les liens de vos images. Ce n'est plus nécessaire.. Les images sont importées sans besoin d'édition.

Aussi, les fichiers POOL et QTI Blackboard sont supportés et les questions produites avec les logiciels TestGen et Examview enregistrés en tant que fichiers Blackboard sont importés. Si les fichiers zip contiennent plusieurs fichiers ressources, toutes les questions de tous les fichiers sont importées. Les tests Blackboard non utilisés sont aussi supportés.

NOTE : Dans Moodle 2.3 et 2.3.1, comme le format Blackboard V6+ est inutilisable, il existe une solution de contournement pour importer des questions enregistrées en fichiers Blackboard. MoodleXMLBuilder peut aussi être utilisé pour convertir des questions ExamView en format Moodle XML. Les images sont supportées et inclues dans le fichier XML Moodle lorsque vous utilisez MoodleXMLBuilder.

1. Créez un test avec des questions dans le générateur de tests Examview version 6.2.1 ou dans un autre générateur de questions capable d'enregistrer les questions en fichier Blackboard comme TestGen.

2. Exportez le test en format Blackboard 6.0-7.0.

3. Utilisez MoodleXMLBuilder pour convertir les questions ExamView en format Blackboard 6.0-7.0 vers un format XML accepté par Moodle 2.3 et 2.3.1.

4. Dans les Réglages de votre cours, cliquez sur Banque de questions, puis sur Importer. Assurez-vous d'utiliser le format XML Moodle. Vous pourriez avoir à paramétrer l'option Stopper en cas d'erreur à Non.

PVI : pour installer MoodleXMLBuilder, vous devrez vous connecter comme administrateur. Vous aurez également besoin de java et vous devrez exécuter l'application MoodleXMLBuilder.exe à partir de son répertoire d'installation. Pour Windows 7, il s'agit de C:\Program Files (x86)\MoodleXMLBuilder\MoodleXMLBuilder.exe.

Questions Cloze à réponses intégrées

Ce format de question permet de créer des questions multiples à choix multiple avec réponses intégrées. Elles peuvent être difficiles à créer, mais elles sont un moyen unique de poser des questions.

Examview

ExamView 4 supported an XML export format that Moodle can import.

Follow these steps to import questions from ExamView 4.0.8

1. Create a new test using ExamView

2. After selecting the types of questions and how many of each Click on File - Export – Change Save As Type to ExamView XML

3. After creating the export of your ExamView test login to your Moodle site

4. Go to the course you wish to add the quiz to and Turn Editing On

5. Scroll down to the topic or week you wish to add a Quiz Click add an activity – highlight quiz, Enter a name and introduction for the quiz and any other applicable information.

6. Click save and display

7. Editing quiz - click Edit then Import, click the radio button next to ExamView

8. Browse to the location you saved the file highlight and click open, then click the upload this file button.

9. Review the questions imported, click continue, click on Quiz, select all and click add to quiz

10. Save Changes, click on the preview tab view the test and the quiz is ready.

If you are using a newer version of ExamView, you should export your questions from Examview choosing the Blackboard format:

1. In ExamView choose one of the two Blackboard export options, either Blackboard option can be imported into Moodle, however it is recommended to choose the Blackboard 7.1+ option

2. Save the zip archive ExamView creates

3. Import this zip file in Moodle using "Blackboard V6+" format. see the above paragraph about the Blackboard V6+ import format for more informations.

Learnwise

This format can import multiple choice questions saved in Learnwise's XML format.

Mot manquant

This format is only used for multiple choice questions and short answer questions, similar to GIFT.

WebCT

This format supports importing multiple choice and short answers questions from WebCT's text format.

Caution: Keep in mind that WebCT allows more than one "blank" per short answer question; whereas, Moodle will only accommodate one blank per question. Questions that used multiple short answers in a question will not convert successfully.

Importing from other programs

Diploma 6

Diploma 6 also supports an XML export format that Moodle can import. If you are using a newer version of Diploma, here are the steps to to export from Diploma and import to Moodle. The steps are the same as those for Examview (see above).

  • Export with the Blackboard LS 6.0 – 6.2 format.
  • Upload the zip file to your course files and unzip the file. Do not use the unzip feature in the quiz module – it won’t work. This will create a .dat file and a folder of images (if any of your questions included images).
  • Import the .dat file using the plain Blackboard (not the Blackboard 6.0 – 6.2) format. The images are not imported at the same time, but they are available in that other folder that was in the zip file.

As with Examview, any questions that include images must be edited to reestablish the links to those images.

  • First, click the edit tool next to a question in the question list. If there are any images in the question, you will see a placeholder with the image file name in it.
  • Click on the placeholder, and then the insert image tool of the text editor.
  • Navigate to the folder containing the image.
  • Find the file with the same name as the one in the placeholder, and select it. Type the alternate text, and then click “OK” to relink the image, and then “OK” again to return to the question list.

See also: [3] and [http://www.screencast.com/t/zydIQ55f ]

Old formats

  • AON -This format is the same as the missing word format, except it creates matching questions from the multiple choice questions. Please note that from Moodle 1.8 it will no longer be part of the standard Moodle.

Character encoding

It is important that the imported file is encoded in the UTF-8 standard.

If this is not adhered to you may get import errors and/or strange characters in the imported materials. If the file is not UTF-8, an external tool must be used to change the encoding. Note that if only basic 'latin' characters are used, then the coding issue can generally be ignored. Be particularly careful when creating questions using Microsoft Word. For reasons best known to themselves, Microsoft used their own encoding for some characters (incompatible with UTF-8) and this is likely to break the import.

Note:If you are having problems with the first question (or category modifier) in the file being misinterpreted (this particularly applies to GIFT format) it might be your editor adding a "Byte-Order-Mark" character at the beginning of the file. This is particularly common in Windows programs (e.g. Notepad) and is another good reason to steer clear of Microsoft products for text editing (as apposed to word processing). There are plenty of free or low cost text editors available for download. The BOM is neither recommended or required as UTF8 does not have byte order issues.

Match grades

Imported grades must exactly match one of the fixed list of valid grades, as follows:

100, 90, 80, 75, 70, 66.666, 60, 50, 40, 33.333, 30, 25, 20, 16.666, 14.2857, 12.5, 11.111, 10, 5, 0

negative values of the above list are also permitted.

There are two settings for this switch. They affect how the import routine treats values that do not exactly match one of the values in the above list

  • Error if grade not listed - If a question contains any grades not found in the list an error is displayed and that question will not be imported.
  • Nearest grade if not listed - If a grade is found that does not match a value in the list, the grade is changed to the closest matching value in the list

Note: some custom import formats write directly to the database and may bypass this check.

Tips and tricks

  • TIP: It may be easier and faster to type many questions into a single text file, than to create a series of Quiz or Lesson question pages. Some teachers report that once they master creating questions in one of the formats to import, they do not have to wait for their Moodle site screen to refresh and the process of selecting the next question type to create.
  • TIP: Want to use questions from your quiz in a Lesson? Export the question category in say a GIFT format, then use a text editor to delete questions, or perhaps use a search and replace function to change names or places.

See also