autolinking to numbers

autolinking to numbers

ដោយ Mary Cooch នៅ
ចំនួនតប៖ 3
រូបភាព Documentation writers រូបភាព Moodle HQ រូបភាព Particularly helpful Moodlers រូបភាព Testers រូបភាព Translators

Could someone confirm or deny please whether you can have glossary autolinking to numbers?

A colleague couldn't get their glossary entries to autolink even though it was set up -they were using digits such as 01 and 02 etc

I couldn't get them to autolink either but as soon as I added a word - Unit 10 or 02 Assessment objective  .. etc ... they worked fine

Are we doing it wrong or is this a known feature?

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Mary Cooch

Re: autolinking to numbers

ដោយ Frank Ralf នៅ
Hi Mary,

Autolinking does seem to work at least with some numbers (see screenshot). However, I stumbled across MDL-1446 ("Glossary filter should ignore concepts and aliases contanining integer numbers < 1000...") so it might indeed not work with small numbers.

hth
Frank


EDIT
This is the relevant code from /glossary/filter.php:

/// Rule out any small integers. See bug 1446
$currentint = intval($currentconcept);
if ($currentint && (strval($currentint) == $currentconcept) && $currentint < 1000) {
unset($concepts[$key]);
}
}
ឯកសារភ្ជាប់ Glossary autolinking numbers.png
មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (1)
ឆ្លើយតបទៅកាន់ Frank Ralf

Re: autolinking to numbers

ដោយ Mary Cooch នៅ
រូបភាព Documentation writers រូបភាព Moodle HQ រូបភាព Particularly helpful Moodlers រូបភាព Testers រូបភាព Translators

Thankyou ញញឹម Now I know this I can suggest workarounds

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Frank Ralf

Re: autolinking to numbers

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

I think this is a very sensible behavior of the Glossary module.

មធ្យមភាគនៃរង្វាយតម្លៃ: -