Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Types.php |
— | — | @@ -102,8 +102,22 @@ |
103 | 103 | } |
104 | 104 | |
105 | 105 | public function getLongHTMLText($linker = NULL) { |
106 | | - /// TODO: support linking |
107 | | - return implode(', ', $this->getTypeLabels()); |
| 106 | + if ( ($linker === NULL) || ($linker === false) ) { |
| 107 | + return str_replace('_',' ',implode(', ', $this->getTypeLabels())); |
| 108 | + } else { |
| 109 | + $result = ''; |
| 110 | + $first = true; |
| 111 | + foreach ($this->getTypeLabels() as $type) { |
| 112 | + if ($first) { |
| 113 | + $first = false; |
| 114 | + } else { |
| 115 | + $result .= ', '; |
| 116 | + } |
| 117 | + $title = Title::newFromText($type, SMW_NS_TYPE); |
| 118 | + $result .= $linker->makeLinkObj( $title, $type); |
| 119 | + } |
| 120 | + return $result; |
| 121 | + } |
108 | 122 | } |
109 | 123 | |
110 | 124 | public function getXSDValue() { |