Difference between revisions of "Import glossary entries"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Import glossary entries.

(See also: [http://moodle.org/mod/glossary/view.php?id=851 Glossary of common terms] link)
m
Line 30: Line 30:
 
*Using Moodle [http://moodle.org/mod/glossary/view.php?id=851 Glossary of common terms] with entries download link for importing to other Moodle sites
 
*Using Moodle [http://moodle.org/mod/glossary/view.php?id=851 Glossary of common terms] with entries download link for importing to other Moodle sites
  
 +
[[de:Glossareinträge_importieren]]
 
[[fr:Importer/exporter un glossaire]]
 
[[fr:Importer/exporter un glossaire]]

Revision as of 09:59, 13 January 2009

Template:Glossaries

Importing entries

To import glossary entries via an XML file:

  1. Follow the "Import entries" link at the top right of the main glossary page.
  2. Browse for the exported entries XML file on your computer.
  3. Select the destination for the new entries, either the current glossary or a new one.
  4. If you want to import category information, click the checkbox.
  5. Click the "Save changes" button. You'll then see a report of the entries and categories added to the glossary. If you enabled duplicate entries when you created the glossary, the import process will add all of the new definitions. Otherwise, it will not allow you to import any duplicate entries.

Troubleshooting

Possible causes of problems importing entries:

    • If there are mistakes in the XML file such as the <entries> tag being missing or the <info> tag being in the wrong place. May happen if you have constructed the XML file manually or with some sort of tool like mailmerge in Word and your template is wrong.
    • If there are top bit set characters in the text of the entities like concepts, definitions or keywords. Replace things like & with &amp;
    • If there are tabs or spaces between entries. Not sure if spaces cause problems but best to remove any between the end of one tag and start of the next. e.g. Search and replace > < with >< via a text editor.
  • In most cases the import is halted if any of these errors occur.
  • Duplicates in the entries which clash with entries already when merging a glossary is usually not a problem.
  • Warnings like
    Warning: exec() has been disabled for security reasons in /moodle/lib/uploadlib.php on line 603
    may not be the problem when importing but may distract one from dealing with problems with the format of the XML file.
  • HTML and XHTML tags written within CONCEPT or DEFINITION elements will fail on import, showing "Array" instead of the desired content. To remedy this, try writing the (X)HTML tags within <![CDATA[ ]]> markup.

Restoring a course backup

An alternative method of importing glossary entries is to restore a Moodle course backup file containing a glossary. This method includes categories, images and attachments within glossary entries and if you also select users then the authors of entries are also imported if they were originally included in the backup.

See also