Page MenuHomePhabricator

Glossary: Incompatibility with CrossReference
Closed, DeclinedPublic

Description

Author: david

Description:
From http://www.mediawiki.org/wiki/Extension:Glossary#Incompatibility_with_CrossReference

CrossReference does not work properly with the Glossary extension because Glossary will parse the text before CrossReference does, mangling the cross references in the process. Glossary should not work for <a> elements (hyperlinks). To solve this problem, inside Glossary.php, find:

if ($node->nodeType == XML_TEXT_NODE) {

And replace that line with the following code:

$parent_node = $node->parentNode;
if ($parent_node && $parent_node->nodeType == XML_ELEMENT_NODE) {
  $tag_name = $parent_node->tagName;
}
if ($node->nodeType == XML_TEXT_NODE && $tag_name != 'a') {

Version: unspecified
Severity: major

Details

Reference
bz20009

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:46 PM
bzimport set Reference to bz20009.
bzimport added a subscriber: Unknown Object (MLST).

http://www.mediawiki.org/wiki/Extension:Glossary says

"This extension has been archived.

This extension is obsolete.
The following other choices are available:

Lingo
Terminology"