Summary: When exporting/importing .xml files directly from the Moodle glossary, the .xml export shows the desired setting for not Autolinking Categories, but the import ignores this setting (for Categories only – works as expected for Concepts).
Issue: When you set Autolinking for categories to "NO" within a glossary, then export the glossary terms, you can see in the .xml code that the "0" setting is applied to the category USEDYNALINK tags. However, when you import the .xml file into a glossary, the USEDYNALINK setting for categories is ignored and automatically set to "yes" (or "1"). This means, if you have imported 30 categories for example, then you have to manually edit each category and change the Yes to No.
Steps to repeat
- Enable the glossary auto linking filter
- Add a Glossary activity – give it the name of "test" and a description of "A Cat is an Animal" – and save & display.
- Make sure the glossary "Display format" (under appearance) is set to "Full with author"
- Click "Browse by Category" and click "Edit Categories"
- Click Add Category – give it the name of of "Animal" –ensure Automatically Link is set to NO – and save.
- Click Add a New Entry – give it a concept of "Cat" – and a definition of "Feline" – select the category "Animal" and under Autolinking, ensure Automatically Link is NOT checked – and save changes.
- Click "Browse by Category" and click "Edit Categories"
- Verify that NO words in the glossary description "A Cat is an Animal" are linked.
- Click Export entries / Export entries to file
- Open the XML file and verify the "USEDYNALINK" tags for both the concept and definition are set to "0"
- Delete the Glossary activity.
- Add a new Glossary activity – give it the name of "test 2" and a description of "A Cat is an Animal" – and save & display.
- Click Import entries – drag the .xml file into the dropbox – check the box to "Import categories" – submit / continue.
- Note that in your glossary's description area (the "A Cat is an Animal" sentence), Cat is not autolinked, but Animal is autolinked.