Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaning.php |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | } |
165 | 165 | $cmtitle=Title::newFromText("Special:ConceptMapping"); |
166 | 166 | $titleText=$wgTitle->getPrefixedURL(); |
167 | | - $cmlink=$sk->makeLinkObj($cmtitle,"<small>link to other concepts</small>","set_$dc=$titleText"); |
| 167 | + $cmlink=$sk->makeLinkObj($cmtitle,"<small>Add link to other concepts</small>","set_$dc=$titleText&suppressWarnings=true"); |
168 | 168 | $html.="<tr><td>$cmlink</td></tr>\n"; |
169 | 169 | $html.="</table>\n"; |
170 | 170 | $html.="</div>\n"; |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php |
— | — | @@ -89,6 +89,7 @@ |
90 | 90 | $mappings=array(); |
91 | 91 | foreach ($sets as $key=>$set) { |
92 | 92 | $rq=$wgRequest->getText("set_".$key); |
| 93 | + $noerror=$wgRequest->getText("suppressWarnings"); |
93 | 94 | $rq=trim($rq); |
94 | 95 | $dmData=new DefinedMeaningData(); |
95 | 96 | $dmData->setDataset($set); |
— | — | @@ -103,13 +104,18 @@ |
104 | 105 | $id=$dmData->getId(); |
105 | 106 | $title=$dmData->getTitleText(); |
106 | 107 | } |
107 | | - |
108 | | - $wgOut->addHTML("$key: $rq ($title)"); |
| 108 | + if(!$noerror) { |
| 109 | + $wgOut->addHTML("$key: $rq ($title)"); |
| 110 | + } |
109 | 111 | if ($id!=null) { |
110 | 112 | $mappings[$key]=$id; |
111 | | - $wgOut->addHTML(' <span style="color:green">[OK]</span>'); |
| 113 | + if(!$noerror) { |
| 114 | + $wgOut->addHTML(' <span style="color:green">[OK]</span>'); |
| 115 | + } |
112 | 116 | } else { |
113 | | - $wgOut->addHTML(' <span style="color:red">[not present or malformed]</span>'); |
| 117 | + if(!$noerror) { |
| 118 | + $wgOut->addHTML(' <span style="color:red">[not present or malformed]</span>'); |
| 119 | + } |
114 | 120 | } |
115 | 121 | $wgOut->addHTML("<br>\n"); |
116 | 122 | } |