Index: trunk/extensions/Wikidata/LocalApp.php.sample |
— | — | @@ -0,0 +1,10 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +#### EXAMPLE LOCALAPP SETTINGS HERE |
| 5 | +#### COPY TO LocalApp.php IF NEEDED |
| 6 | + |
| 7 | +# When using an OmegaWiki dump: |
| 8 | +# Add the default class "Lexical Item" to all DefinedMeanings |
| 9 | +$wgDefaultClassMids = array(402295); |
| 10 | + |
| 11 | +?> |
\ No newline at end of file |
Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -1,5 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +# DO NOT EDIT THIS FILE DIRECTLY. INSTEAD, COPY RELEVANT |
| 5 | +# CONFIGURATION VARIABLES TO LocalApp.php AND EDIT THEM |
| 6 | +# THERE. |
| 7 | + |
4 | 8 | $wgDefaultGoPrefix='Expression:'; |
5 | 9 | $wgHooks['BeforePageDisplay'][]='addWikidataHeader'; |
6 | 10 | $wgHooks['GetEditLinkTrail'][]='addWikidataEditLinkTrail'; |
— | — | @@ -30,14 +34,11 @@ |
31 | 35 | |
32 | 36 | # These are the user groups |
33 | 37 | $wgGroupPermissions['wikidata-omega']['editwikidata-uw']=true; |
34 | | -$wgGroupPermissions['wikidata-omega']['editwikidata-moo']=true; |
35 | | -$wgGroupPermissions['wikidata-omega']['editwikidata-tt']=false; |
36 | | -$wgGroupPermissions['wikidata-test']['editwikidata-tt']=true; |
37 | 38 | $wgGroupPermissions['wikidata-copy']['wikidata-copy']=true; |
38 | 39 | |
39 | 40 | # The permission needed to do ... |
40 | 41 | $wgCommunityEditPermission="editwikidata-tt"; # only used for copy for now |
41 | | -$wgCommunity_dc="tt"; |
| 42 | +$wgCommunity_dc="uw"; |
42 | 43 | $extra_debugging=true; |
43 | 44 | |
44 | 45 | # The site prefix allows us to have multiple sets of customized |
— | — | @@ -57,6 +58,7 @@ |
58 | 59 | require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php"); |
59 | 60 | require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialCopy.php"); |
60 | 61 | require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialExportTSV.php"); |
| 62 | +require_once("{$IP}/extensions/Wikidata/LocalApp.php"); |
61 | 63 | |
62 | 64 | function addWikidataHeader() { |
63 | 65 | global $wgOut,$wgScriptPath; |
— | — | @@ -206,9 +208,6 @@ |
207 | 209 | 'size' => 10, |
208 | 210 | 'options' => $datasetarray |
209 | 211 | ); |
210 | | - $wgPropertyToColumnFilters = array( |
211 | | - new PropertyToColumnFilter("partOfSpeech", "Part of speech", array(358760)) |
212 | | - ); |
213 | 212 | |
214 | 213 | global |
215 | 214 | $messageCacheOK; |