]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb
Disable Wikibase custom searchbox
[chef.git] / cookbooks / wiki / templates / default / mw-ext-Wikibase.inc.php.erb
index 8767afd0bac89ce12e4699b0392628f3befa5921..1ec5b1b9e2877aeeb69e93e80f0d609e1253e6a9 100644 (file)
@@ -40,8 +40,8 @@ call_user_func( function() {
     // Make sure we use the same keys on repo and clients, so we can share cached objects.
     $wgWBRepoSettings['sharedCacheKeyPrefix'] = $wgDBname . ':WBL/' . rawurlencode( WBL_VERSION );
 
-    // Tell MediaWiki to search the item namespace
-    // $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true;
+    // Include Wikibase items in the regular search result by default
+    $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true;
 
     // the special group includes all the sites in the specialSiteLinkGroups,
     // grouped together in a 'Pages linked to other sites' section.
@@ -83,3 +83,7 @@ $wgGroupPermissions['data-admin']['property-create'] = true;
 
 // See https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#Define_links_for_external_identifiers
 $wgWBRepoSettings['formatterUrlProperty'] = 'P8';
+
+// Disable Wikibase searchbox with this hack (hopefully Wikibase will implement support for it soon)
+// See https://phabricator.wikimedia.org/T205560
+$wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [];