Index: trunk/extensions/Wikidata/WiktionaryZ/Editor.php |
— | — | @@ -739,15 +739,14 @@ |
740 | 740 | $definedMeaningAsLink = definedMeaningAsLink($value); |
741 | 741 | $escapedDefinition = htmlspecialchars($definition); |
742 | 742 | |
743 | | - if ($this->truncate || strlen($definition) >= $this->truncateAt) |
| 743 | + if ($this->truncate && strlen($definition) >= $this->truncateAt) |
744 | 744 | $escapedDefinition = '<span title="'. $escapedDefinition .'">'. htmlspecialchars(substr($definition, 0, $this->truncateAt)) . '...</span>'; |
745 | 745 | |
746 | 746 | return $definedMeaningAsLink . ": " . $escapedDefinition; |
747 | 747 | } |
748 | 748 | |
749 | 749 | public function getEditHTML($idPath, $value) { |
750 | | - //Not editable |
751 | | - return null; |
| 750 | + return ""; |
752 | 751 | } |
753 | 752 | |
754 | 753 | public function add($idPath) { |
— | — | @@ -921,30 +920,18 @@ |
922 | 921 | protected function suggestType() { |
923 | 922 | return "class"; |
924 | 923 | } |
925 | | - |
926 | | -// public function getViewHTML($idPath, $value) { |
927 | | -// return definedMeaningAsLink($value); |
928 | | -// } |
929 | 924 | } |
930 | 925 | |
931 | 926 | class CollectionReferenceEditor extends DefinedMeaningReferenceEditor { |
932 | 927 | protected function suggestType() { |
933 | 928 | return "collection"; |
934 | 929 | } |
935 | | - |
936 | | -// public function getViewHTML($idPath, $value) { |
937 | | -// return collectionAsLink($value); |
938 | | -// } |
939 | 930 | } |
940 | 931 | |
941 | 932 | class TextAttributeEditor extends DefinedMeaningReferenceEditor { |
942 | 933 | protected function suggestType() { |
943 | 934 | return "text-attribute"; |
944 | 935 | } |
945 | | - |
946 | | -// public function getViewHTML($idPath, $value) { |
947 | | -// return definedMeaningAsLink($value); |
948 | | -// } |
949 | 936 | } |
950 | 937 | |
951 | 938 | class RecordListEditor extends RecordEditor { |