Last modified: 2013-04-09 09:07:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22009, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20009 - Glossary: Incompatibility with CrossReference
Glossary: Incompatibility with CrossReference
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Glossary (Other open bugs)
unspecified
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-30 12:19 UTC by David Hicks
Modified: 2013-04-09 09:07 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David Hicks 2009-07-30 12:19:24 UTC
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') {
Comment 1 Andre Klapper 2013-04-09 09:07:13 UTC
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"

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links